From 6f93b00c4d133b6735725c851fb0db43478f30d8 Mon Sep 17 00:00:00 2001 From: uvok Date: Thu, 8 Jan 2026 20:49:03 +0100 Subject: include ALU in output --- nandgame/Vcomputer__main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- cgit v1.2.3