mirror of
https://github.com/verilator/verilator.git
synced 2025-01-06 06:37:45 +00:00
Fix including verilated.h before systemperl
This commit is contained in:
parent
56d8ddbaaf
commit
29c9804843
@ -137,7 +137,7 @@ INST_PROJ_FILES = \
|
||||
include/verilated.[chv]* \
|
||||
include/verilated.mk \
|
||||
include/verilatedos.[chv]* \
|
||||
include/verilated_sc.[chv]* \
|
||||
include/verilated_*.[chv]* \
|
||||
|
||||
INST_PROJ_BIN_FILES = \
|
||||
verilator_bin \
|
||||
|
@ -181,6 +181,12 @@ void EmitCSyms::emitSymHdr() {
|
||||
puts("#define _"+symClassName()+"_H_\n");
|
||||
puts("\n");
|
||||
|
||||
if (optSystemPerl()) puts("#include \"systemperl.h\"\n");
|
||||
else if (optSystemC()) puts("#include \"systemc.h\"\n");
|
||||
|
||||
if (optSystemPerl() || optSystemC()) {
|
||||
puts("#include \"verilated_sc.h\"\n");
|
||||
}
|
||||
if (v3Global.needHeavy()) {
|
||||
puts("#include \"verilated_heavy.h\"\n");
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user