Remove old simulation
This commit is contained in:
parent
69dbe3b7c6
commit
e0bf76bf63
|
@ -1,18 +0,0 @@
|
||||||
#include "Valu.h"
|
|
||||||
#include "verilated.h"
|
|
||||||
#include <iostream>
|
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
|
||||||
VerilatedContext *vctx = new VerilatedContext;
|
|
||||||
|
|
||||||
Valu *valu = new Valu(vctx);
|
|
||||||
valu->A = 0x2137;
|
|
||||||
valu->B = 0x1234;
|
|
||||||
|
|
||||||
valu->op = 0b000;
|
|
||||||
valu->eval();
|
|
||||||
printf("A = %04x + B = %04x = O = %04x\n", valu->A, valu->B, valu->O);
|
|
||||||
valu->op = 0b001;
|
|
||||||
valu->eval();
|
|
||||||
printf("A = %04x - B = %04x = O = %04x\n", valu->A, valu->B, valu->O);
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user