mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Includes: Refactor verilated.h and deprecate verilated_heavy.h (#2701).
This commit is contained in:
@@ -49,7 +49,7 @@ class EmitCConstPool final : public EmitCConstInit {
|
||||
ofp->puts("// DESCRIPTION: Verilator output: Constant pool\n");
|
||||
ofp->puts("//\n");
|
||||
ofp->puts("\n");
|
||||
ofp->puts("#include \"verilated_heavy.h\"\n");
|
||||
ofp->puts("#include \"verilated.h\"\n");
|
||||
return ofp;
|
||||
}
|
||||
|
||||
|
||||
@@ -303,7 +303,7 @@ class EmitCHeader final : public EmitCConstInit {
|
||||
// Include files
|
||||
puts("\n");
|
||||
ofp()->putsIntTopInclude();
|
||||
puts("#include \"verilated_heavy.h\"\n");
|
||||
puts("#include \"verilated.h\"\n");
|
||||
if (v3Global.opt.mtasks()) puts("#include \"verilated_threads.h\"\n");
|
||||
if (v3Global.opt.savable()) puts("#include \"verilated_save.h\"\n");
|
||||
if (v3Global.opt.coverage()) puts("#include \"verilated_cov.h\"\n");
|
||||
|
||||
+1
-1
@@ -181,7 +181,7 @@ class EmitCImp final : EmitCFunc {
|
||||
puts("// See " + topClassName() + ".h for the primary calling header\n");
|
||||
|
||||
// Include files
|
||||
puts("\n#include \"verilated_heavy.h\"\n");
|
||||
puts("\n#include \"verilated.h\"\n");
|
||||
if (v3Global.dpi()) puts("#include \"verilated_dpi.h\"\n");
|
||||
puts("\n");
|
||||
for (const string& name : headers) puts("#include \"" + name + ".h\"\n");
|
||||
|
||||
@@ -56,7 +56,7 @@ class EmitCModel final : public EmitCFunc {
|
||||
// Include files
|
||||
puts("\n");
|
||||
ofp()->putsIntTopInclude();
|
||||
puts("#include \"verilated_heavy.h\"\n");
|
||||
puts("#include \"verilated.h\"\n");
|
||||
if (v3Global.opt.mtasks()) puts("#include \"verilated_threads.h\"\n");
|
||||
if (v3Global.opt.savable()) puts("#include \"verilated_save.h\"\n");
|
||||
if (v3Global.opt.coverage()) puts("#include \"verilated_cov.h\"\n");
|
||||
|
||||
+1
-1
@@ -389,7 +389,7 @@ void EmitCSyms::emitSymHdr() {
|
||||
|
||||
puts("\n");
|
||||
ofp()->putsIntTopInclude();
|
||||
puts("#include \"verilated_heavy.h\"\n");
|
||||
puts("#include \"verilated.h\"\n");
|
||||
if (v3Global.needTraceDumper()) {
|
||||
puts("#include \"" + v3Global.opt.traceSourceLang() + ".h\"\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user