diff options
Diffstat (limited to 'nandgame')
| -rw-r--r-- | nandgame/Vcomputer__main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/nandgame/Vcomputer__main.cpp b/nandgame/Vcomputer__main.cpp index ebac129..981bf9d 100644 --- a/nandgame/Vcomputer__main.cpp +++ b/nandgame/Vcomputer__main.cpp @@ -2,7 +2,9 @@ // DESCRIPTION: Verilator output: main() simulation loop, created with --main #include "Vcomputer___024root.h" +#include "Vcomputer_alu.h" #include "Vcomputer_computer.h" +#include "Vcomputer_instruction_decode.h" #include "Vcomputer_my_mem__D10_DB10000.h" #include "verilated.h" #include "Vcomputer.h" @@ -70,6 +72,7 @@ int main(int argc, char** argv, char**) { #if NCUR initscr(); + curs_set(0); #endif int ncur_offset = 3; @@ -128,6 +131,12 @@ int main(int argc, char** argv, char**) { topp->computer->reg_pA_int, topp->computer->result_int ); + PRINT_ME(7 + ncur_offset, NCUR_X, "ALU"); + PRINT_ME(8 + ncur_offset, NCUR_X, + "X: %5" PRId16 "\tY: %5" PRId16 , + topp->computer->CPU->my_alu->int_op_x, + topp->computer->CPU->my_alu->int_op_y + ); // Evaluate model topp->eval(); // Advance time |
