Skip to content

Commit 89d96a3

Browse files
authored
Merge pull request #629 from trabucayre/genesys_toolchain_arg
targets/digilent_genesys2.py: added toolchain option (#624)
2 parents 4e2d8bd + b2b8a3c commit 89d96a3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

litex_boards/targets/digilent_genesys2.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ def __init__(self, platform, sys_clk_freq):
4747
# BaseSoC ------------------------------------------------------------------------------------------
4848

4949
class BaseSoC(SoCCore):
50-
def __init__(self, sys_clk_freq=100e6,
50+
def __init__(self, sys_clk_freq=100e6, toolchain="vivado",
5151
with_ethernet = False,
5252
with_etherbone = False,
5353
with_led_chaser = True,
5454
with_can = False,
5555
**kwargs):
56-
platform = digilent_genesys2.Platform()
56+
platform = digilent_genesys2.Platform(toolchain=toolchain)
5757

5858
# CRG --------------------------------------------------------------------------------------
5959
self.crg = _CRG(platform, sys_clk_freq)
@@ -115,6 +115,7 @@ def main():
115115

116116
soc = BaseSoC(
117117
sys_clk_freq = args.sys_clk_freq,
118+
toolchain = args.toolchain,
118119
with_ethernet = args.with_ethernet,
119120
with_etherbone = args.with_etherbone,
120121
with_can = args.with_can,

0 commit comments

Comments
 (0)