digilent_cmod_a7: Propagate variant and toolchain

This commit is contained in:
Bastian Löher 2022-01-16 11:31:08 +01:00
parent 296c99f065
commit bccbd95526
1 changed files with 5 additions and 2 deletions

View File

@ -63,8 +63,11 @@ class Platform(XilinxPlatform):
default_clk_name = "clk12" default_clk_name = "clk12"
default_clk_period = 1e9/12e6 default_clk_period = 1e9/12e6
def __init__(self): def __init__(self, variant="a7-35", toolchain="vivado"):
XilinxPlatform.__init__(self, "xc7a35t-cpg236-1", _io, _connectors, toolchain="vivado") device = {
"a7-35": "xc7a35t-cpg236-1"
}[variant]
XilinxPlatform.__init__(self, device, _io, _connectors, toolchain=toolchain)
def do_finalize(self,fragment): def do_finalize(self,fragment):
XilinxPlatform.do_finalize(self, fragment) XilinxPlatform.do_finalize(self, fragment)