Merge pull request #1138 from fjullien/efinix_add_ifacewriter_mipi_clkin

efinix: add gpio MIPI_CLKIN to ifacewriter
This commit is contained in:
enjoy-digital 2021-12-21 15:34:51 +01:00 committed by GitHub
commit 72126f90a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

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)