Commentary

This commit is contained in:
Wilson Snyder 2012-09-24 18:28:19 -04:00
parent c378d32c85
commit 55c23360d9

View File

@ -1058,6 +1058,7 @@ We'll compile this example into C++.
Verilated::commandArgs(argc, argv);
Vour* top = new Vour;
while (!Verilated::gotFinish()) { top->eval(); }
delete top;
exit(0);
}
EOF
@ -1125,6 +1126,7 @@ This is an example similar to the above, but using SystemPerl.
top = new Vour("top"); // SP_CELL (top, Vour);
top->clk(clk); // SP_PIN (top, clk, clk);
while (!Verilated::gotFinish()) { sc_start(1, SC_NS); }
delete top;
exit(0);
}
EOF
@ -1423,6 +1425,7 @@ example:
top->final(); // Done simulating
// // (Though this example doesn't get here)
delete top;
}
Note signals are read and written as member variables of the lower module.