]>
Commit | Line | Data |
---|---|---|
1 | #include "Vsystem.h" | |
2 | #include <stdio.h> | |
3 | ||
4 | Vsystem *top; | |
5 | ||
6 | unsigned int main_time = 0; | |
7 | ||
8 | double sc_time_stamp () | |
9 | { | |
10 | return main_time; | |
11 | } | |
12 | ||
13 | int 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 | } |