Skip to content

Commit

Permalink
build/vhd2v_converter.py: fix params vs instance when conversion is d…
Browse files Browse the repository at this point in the history
…isabled
  • Loading branch information
trabucayre committed Dec 19, 2024
1 parent 6228d2b commit 8254a34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion litex/build/vhd2v_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ def do_finalize(self):

# platform able to synthesis verilog and vhdl -> no conversion
if self._platform.support_mixed_language and not self._force_convert:
ip_params = self._params
if self._params:
ip_params = self._params
else:
ip_params = self._instance.items
for file in self._sources:
self._platform.add_source(file, library=self._work_package)
else: # platform is only able to synthesis verilog -> convert vhdl to verilog
Expand Down

0 comments on commit 8254a34

Please sign in to comment.