if fpga == 'sim':
clk_freq = 100e6
if fpga == 'versa_ecp5':
- clk_freq = 55e6
+ clk_freq = 50e6 # crank right down to test hyperram
# select a firmware file
firmware = None
else:
uart_pins = Record([('tx', 1), ('rx', 1)], name="uart_0")
- # get DDR resource pins
+ # get DDR resource pins, disable if clock frequency is below 50 mhz for now
ddr_pins = None
- if platform is not None and fpga in ['versa_ecp5', 'arty_a7', 'isim']:
+ if (clk_freq > 50e6 and platform is not None and
+ fpga in ['versa_ecp5', 'arty_a7', 'isim']):
ddr_pins = platform.request("ddr3", 0,
dir={"dq":"-", "dqs":"-"},
xdr={"rst": 4, "clk":4, "a":4,
hyperram_ios = HyperRAMResource(0, cs_n="B13",
dq="E14 C10 B10 E12 D12 A9 D11 D14",
rwds="C14", rst_n="E13", ck_p="D13",
- attrs=Attrs(IOSTANDARD="LVCMOS33"))
+ attrs=Attrs(IO_TYPE="LVCMOS33"))
platform.add_resources(hyperram_ios)
hyperram_pins = platform.request("hyperram")
else: