You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
--- make.py.orig 2019-09-30 19:28:08.962681010 -0600
|
|
+++ make.py 2019-09-30 19:31:38.401563193 -0600
|
|
@@ -149,6 +149,15 @@
|
|
def load(self):
|
|
os.system("ujprog build/ulx3s/gateware/top.svf")
|
|
|
|
+# TrellisBoard support ------------------------------------------------------------------------------------
|
|
+
|
|
+class Trellis(Board):
|
|
+ def __init__(self):
|
|
+ from litex_boards.targets import trellisboard
|
|
+ Board.__init__(self, trellisboard.EthernetSoC, {"serial", "ethernet"})
|
|
+
|
|
+ os.system("openocd -f prog/trellisboard.cfg -c \"transport select jtag; init; svf build/trellisboard/gateware/top.svf; exit\"")
|
|
+
|
|
# De0Nano support ------------------------------------------------------------------------------------
|
|
|
|
class De0Nano(Board):
|
|
@@ -175,6 +184,7 @@
|
|
# Lattice
|
|
"versa_ecp5": VersaECP5,
|
|
"ulx3s": ULX3S,
|
|
+ "trellisboard": Trellis,
|
|
# Altera/Intel
|
|
"de0nano": De0Nano,
|
|
}
|
|
@@ -202,7 +212,7 @@
|
|
for board_name in board_names:
|
|
board = supported_boards[board_name]()
|
|
soc_kwargs = {}
|
|
- if board_name in ["versa_ecp5", "ulx3s"]:
|
|
+ if board_name in ["versa_ecp5", "ulx3s", "trellisboard"]:
|
|
soc_kwargs["toolchain"] = "trellis"
|
|
soc_kwargs["cpu_variant"] = "linux+no-dsp"
|
|
if board_name in ["de0nano"]:
|