Skip to content

Commit

Permalink
icarus: Fix vlogparam passing with multiple toplevels
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Nov 16, 2022
1 parent 457f7d0 commit 3606d9d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions edalize/icarus.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@ def configure_main(self):
f.write("+define+{}={}\n".format(key, self._param_value_str(value, "")))

for key, value in self.vlogparam.items():
f.write(
"+parameter+{}.{}={}\n".format(
self.toplevel, key, self._param_value_str(value, '"')
for top in self.toplevel.split(" "):
f.write(
"+parameter+{}.{}={}\n".format(
top, key, self._param_value_str(value, '"')
)
)
)
for id in incdirs:
f.write("+incdir+" + id + "\n")
timescale = self.tool_options.get("timescale")
Expand Down

0 comments on commit 3606d9d

Please sign in to comment.