Skip to content

Commit

Permalink
Set environment variables for cocotb 2.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Nov 26, 2024
1 parent 602f134 commit 4502827
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion edalize/flows/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,9 @@ def run(self, args=None):
# Get run command from simulator
(cmd, args, cwd) = run_tool.run()
cocotb_module = self.flow_options.get("cocotb_module")
env = {"MODULE": cocotb_module} if cocotb_module else {}
env = (
{"MODULE": cocotb_module, "COCOTB_TEST_MODULES": cocotb_module}
if cocotb_module
else {}
)
self._run_tool(cmd, args=args, cwd=cwd, env=env)

0 comments on commit 4502827

Please sign in to comment.