Skip to content

Commit

Permalink
efinix: ifacewriter: fix in output
Browse files Browse the repository at this point in the history
fix in OUTPUT

Signed-off-by: Fin Maaß <[email protected]>
  • Loading branch information
maass-hamburg committed Nov 13, 2024
1 parent 405825d commit 5135f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion litex/build/efinix/ifacewriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ def generate_gpio(self, block, verbose=True):
cmd += 'design.create_output_gpio("{}")\n'.format(name)
cmd += 'design.assign_pkg_pin("{}","{}")\n'.format(name, block["location"][0])
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"]):
cmd += 'design.assign_pkg_pin("{}[{}]","{}")\n'.format(name, i, pad)

Expand Down

0 comments on commit 5135f0e

Please sign in to comment.