From e0bf76bf6375a23506e3adfaf639649ef03c578c Mon Sep 17 00:00:00 2001 From: xenia Date: Fri, 12 Jan 2024 18:36:11 +0100 Subject: [PATCH] Remove old simulation --- simulation/test_alu.cpp | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 simulation/test_alu.cpp diff --git a/simulation/test_alu.cpp b/simulation/test_alu.cpp deleted file mode 100644 index ed77946..0000000 --- a/simulation/test_alu.cpp +++ /dev/null @@ -1,18 +0,0 @@ -#include "Valu.h" -#include "verilated.h" -#include - -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); -}