efinix: ifacewriter: fix in output

fix in OUTPUT

Signed-off-by: Fin Maaß <f.maass@vogl-electronic.com>
This commit is contained in:
Fin Maaß 2024-10-23 11:10:16 +02:00
parent d6eec8e76d
commit 70f4a349e5
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ design.create("{2}", "{3}", "./../gateware", overwrite=True)
cmd += 'design.create_output_gpio("{}")\n'.format(name) cmd += 'design.create_output_gpio("{}")\n'.format(name)
cmd += 'design.assign_pkg_pin("{}","{}")\n'.format(name, block["location"][0]) cmd += 'design.assign_pkg_pin("{}","{}")\n'.format(name, block["location"][0])
else: else:
cmd += 'design.create_input_gpio("{}",{},0)\n'.format(name, block["size"]-1) cmd += 'design.create_output_gpio("{}",{},0)\n'.format(name, block["size"]-1)
for i, pad in enumerate(block["location"]): for i, pad in enumerate(block["location"]):
cmd += 'design.assign_pkg_pin("{}[{}]","{}")\n'.format(name, i, pad) cmd += 'design.assign_pkg_pin("{}[{}]","{}")\n'.format(name, i, pad)