Fix including verilated.h before systemperl

This commit is contained in:
Wilson Snyder 2010-02-04 21:46:48 -05:00
parent 56d8ddbaaf
commit 29c9804843
2 changed files with 7 additions and 1 deletions

View File

@ -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 \

View File

@ -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 {