Remove old simulation
This commit is contained in:
parent
69dbe3b7c6
commit
0adb95447e
|
@ -1,37 +0,0 @@
|
|||
#include "Vrot.h"
|
||||
#include "verilated.h"
|
||||
#include "verilated_vcd_c.h"
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
VerilatedContext* contextp = new VerilatedContext;
|
||||
contextp->commandArgs(argc, argv);
|
||||
|
||||
Vrot* rot = new Vrot{contextp};
|
||||
|
||||
Verilated::traceEverOn(true);
|
||||
VerilatedVcdC* tracer = new VerilatedVcdC;
|
||||
|
||||
if (argc == 2) {
|
||||
rot->trace(tracer, 10);
|
||||
tracer->open(argv[1]);
|
||||
}
|
||||
|
||||
|
||||
while (!contextp->gotFinish() && contextp->time() < 100000) {
|
||||
contextp->timeInc(1);
|
||||
rot->clk = 1;
|
||||
rot->eval();
|
||||
tracer->dump(contextp->time());
|
||||
|
||||
contextp->timeInc(1);
|
||||
rot->clk = 0;
|
||||
rot->eval();
|
||||
tracer->dump(contextp->time());
|
||||
}
|
||||
|
||||
tracer->close();
|
||||
|
||||
delete rot;
|
||||
delete contextp;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user