Merge nyus:/storage/git/firearm
[firearm.git] / testbench.cpp
CommitLineData
3a57f3e5
JW
1#include "Vsystem.h"
2#include <stdio.h>
3
4Vsystem *top;
5
6unsigned int main_time = 0;
7
8double sc_time_stamp ()
9{
10 return main_time;
11}
12
13int main()
14{
15 top = new Vsystem;
16
17 top->clk = 0;
18 while (!Verilated::gotFinish())
19 {
20 top->clk = !top->clk;
21
22 top->eval();
23// if (top->clk == 1)
24// printf("%d: Bubble: %d. PC: %08x. Ins'n: %08x\n", main_time/2, top->bubbleshield, top->pc, top->insn);
25
26 main_time++;
27 }
28}
This page took 0.019138 seconds and 4 git commands to generate.