Skip to content

Commit

Permalink
Fix cocotb LDFLAGS for Verilator
Browse files Browse the repository at this point in the history
  • Loading branch information
olofk committed Aug 22, 2024
1 parent 628c772 commit 9696c99
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion edalize/flows/sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def configure_tools(self, flow):
[
"--vpi",
"--public-flat-rw --prefix Vtop",
'-LDFLAGS "-Wl,-rpath,`cocotb-config --lib-dir` -L`cocotb-config --lib-dir` -lcocotbvpi_verilator -lgpi -lcocotb -lgpilog -lcocotbutils -Wl,--unresolved-symbols=ignore-in-shared-libs"',
'-LDFLAGS "-Wl,-rpath,`cocotb-config --lib-dir` -L`cocotb-config --lib-dir` -lcocotbvpi_verilator"',
],
),
}
Expand Down
2 changes: 1 addition & 1 deletion tests/flows/sim/with_cocotb/design.vc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
--cc
--vpi
--public-flat-rw --prefix Vtop
-LDFLAGS "-Wl,-rpath,`cocotb-config --lib-dir` -L`cocotb-config --lib-dir` -lcocotbvpi_verilator -lgpi -lcocotb -lgpilog -lcocotbutils -Wl,--unresolved-symbols=ignore-in-shared-libs"
-LDFLAGS "-Wl,-rpath,`cocotb-config --lib-dir` -L`cocotb-config --lib-dir` -lcocotbvpi_verilator"
+incdir+.
-CFLAGS -I.
sv_file.sv
Expand Down

0 comments on commit 9696c99

Please sign in to comment.