mirror of
https://github.com/verilator/verilator.git
synced 2025-04-30 12:36:53 +00:00
Tests: Fix sc_main compilation errors.
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
This commit is contained in:
parent
047a08c999
commit
43d07235c9
@ -19,7 +19,12 @@ void check(const char* bus, int got, int exp) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
#ifdef SYSTEMC_VERSION
|
||||||
|
int sc_main(int, char**)
|
||||||
|
#else
|
||||||
|
int main()
|
||||||
|
#endif
|
||||||
|
{
|
||||||
Verilated::debug(0);
|
Verilated::debug(0);
|
||||||
tb = new VM_PREFIX ("tb");
|
tb = new VM_PREFIX ("tb");
|
||||||
|
|
||||||
|
@ -12,7 +12,12 @@ double sc_time_stamp() {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
#ifdef SYSTEMC_VERSION
|
||||||
|
int sc_main(int, char**)
|
||||||
|
#else
|
||||||
|
int main()
|
||||||
|
#endif
|
||||||
|
{
|
||||||
Verilated::debug(0);
|
Verilated::debug(0);
|
||||||
tb = new VM_PREFIX ("tb");
|
tb = new VM_PREFIX ("tb");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user