diff options
| author | uvok | 2026-01-08 20:49:03 +0100 |
|---|---|---|
| committer | uvok | 2026-01-08 20:49:03 +0100 |
| commit | 6f93b00c4d133b6735725c851fb0db43478f30d8 (patch) | |
| tree | 683ac7313b31fef6269172ec105ff8bffca1c343 /nandgame/Vcomputer__main.cpp | |
| parent | eb4810b57bf7cd2c941c4bfd5447953fa6441e56 (diff) | |
include ALU in output
Diffstat (limited to 'nandgame/Vcomputer__main.cpp')
| -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 |
