-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When building the verilated model, the linker complains about missing python symbols in some cases. We get around this by telling the linker to ignore unknown symbols.
- Loading branch information
Showing
4 changed files
with
55 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#Auto generated by Edalize | ||
|
||
all: post_build | ||
|
||
pre_build: | ||
|
||
Vtop.mk: design.vc sv_file.sv vlog_file.v vlog05_file.v vlog_incfile another_sv_file.sv | pre_build | ||
$(EDALIZE_LAUNCHER) verilator -f design.vc `cocotb-config --share`/lib/verilator/verilator.cpp | ||
|
||
Vtop: Vtop.mk c_file.c cpp_file.cpp | ||
$(EDALIZE_LAUNCHER) make -f Vtop.mk | ||
|
||
post_build: Vtop | ||
|
||
pre_run: | ||
|
||
run: pre_run | ||
|
||
post_run: run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
--Mdir . | ||
--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" | ||
+incdir+. | ||
-CFLAGS -I. | ||
sv_file.sv | ||
vlog_file.v | ||
vlog05_file.v | ||
another_sv_file.sv | ||
--top-module top_module | ||
|
||
--exe | ||
c_file.c | ||
cpp_file.cpp | ||
-Gvlogparam_bool=1 | ||
-Gvlogparam_int=42 | ||
-Gvlogparam_str=\"hello\" | ||
-Dvlogdefine_bool=1 | ||
-Dvlogdefine_int=42 | ||
-Dvlogdefine_str=hello |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters