git.joshuawise.com
/
firearm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
Execute.v: Execute multiplication happily
[firearm.git]
/
testbench.cpp
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
}
This page took
0.017003 seconds
and
4
git commands to generate.