Define VERILATOR in addition to verilator

This commit is contained in:
Wilson Snyder
2010-01-14 19:24:48 -05:00
parent 8203c79f76
commit 16926edf18
7 changed files with 82 additions and 26 deletions
+1
View File
@@ -62,6 +62,7 @@ protected:
s_preprocp->debug(debug());
// Default defines
FileLine* prefl = new FileLine("INTERNAL_VERILATOR_DEFINE",0);
s_preprocp->defineCmdLine(prefl,"VERILATOR", "1"); // LEAK_OK
s_preprocp->defineCmdLine(prefl,"verilator", "1"); // LEAK_OK
s_preprocp->defineCmdLine(prefl,"verilator3", "1"); // LEAK_OK
s_preprocp->defineCmdLine(prefl,"systemc_clock", "/*verilator systemc_clock*/"); // LEAK_OK