efinix: add gpio MIPI_CLKIN to ifacewriter

This commit is contained in:
Franck Jullien 2021-12-21 12:39:22 +01:00
parent 55268af279
commit 2174a9219b

View file

@ -174,6 +174,11 @@ design.create("{2}", "{3}", "./../gateware", overwrite=True)
cmd += "\n"
return cmd
if mode == "MIPI_CLKIN":
cmd += 'design.create_mipi_input_clock_gpio("{}")\n'.format(name)
cmd += 'design.assign_pkg_pin("{}","{}")\n\n'.format(name, block["location"])
return cmd
if mode == "OUTPUT_CLK":
cmd += 'design.create_clockout_gpio("{}")\n'.format(name)
cmd += 'design.set_property("{}","OUT_CLK_PIN","{}")\n'.format(name, name)