Skip to content

Commit

Permalink
coraz7: unify to accomodate both models
Browse files Browse the repository at this point in the history
  • Loading branch information
astro authored and sbourdeauducq committed Nov 11, 2020
1 parent cc6e76e commit a5cc037
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,16 @@
("user_dio", 12, Pins("K19"), IOStandard("LVCMOS33")),
]

DEVICE_VARIANTS = {
"07s": "xc7z007s-clg400-1",
"10": "xc7z010-clg400-1",
}

# Digilent Cora Z7-07S, and Z7-10
class Platform(XilinxPlatform):
default_clk_name = "sys_clk"
default_clk_period = 8

def __init__(self):
XilinxPlatform.__init__(self, "xc7z007s-clg400-1", _io, toolchain="vivado")
def __init__(self, device_variant="10"):
device = DEVICE_VARIANTS[device_variant]
XilinxPlatform.__init__(self, device, _io, toolchain="vivado")

0 comments on commit a5cc037

Please sign in to comment.