mirror of
https://github.com/verilator/verilator.git
synced 2025-01-19 12:54:02 +00:00
Commentary
This commit is contained in:
parent
e81abdb616
commit
7cc7afca04
@ -1972,7 +1972,7 @@ We'll compile this example into C++.
|
|||||||
Vour* top = new Vour;
|
Vour* top = new Vour;
|
||||||
while (!Verilated::gotFinish()) { top->eval(); }
|
while (!Verilated::gotFinish()) { top->eval(); }
|
||||||
delete top;
|
delete top;
|
||||||
exit(0);
|
return 0;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -2043,7 +2043,7 @@ This is an example similar to the above, but using SystemC.
|
|||||||
top->clk(clk);
|
top->clk(clk);
|
||||||
while (!Verilated::gotFinish()) { sc_start(1, SC_NS); }
|
while (!Verilated::gotFinish()) { sc_start(1, SC_NS); }
|
||||||
delete top;
|
delete top;
|
||||||
exit(0);
|
return 0;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -2704,7 +2704,7 @@ accesses the above signal "readme" would be:
|
|||||||
read_and_check();
|
read_and_check();
|
||||||
}
|
}
|
||||||
delete top;
|
delete top;
|
||||||
exit(0);
|
return 0;
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user