Monitor: wide 132x64 screen showing everything at once

On the 132x64 screen the monitor shows PC and all integer registers, all
float registers (hex and decimal) with FCSR decoded, mstatus/mepc/mcause/
mtval/cycle/instret and the breakpoint, 24 rows of disassembly beside the
stack, and 14 rows of memory, with changed registers highlighted; the 80x32
layout is unchanged. R takes float register names. The CPU's trap CSRs
start at 0, so reading them before the first trap no longer hangs the
simulated bus. send-hex accepts the prompt on any row.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
brad ArantandClaude Opus 5.5 committed 2026-12-02 00:00:43 -08:00
1 parent 1e44ce4383
commit addf0157fc
10 files changed
+3644 -3373

No files matched your search

+4 -2
View File
@@ -247,11 +247,13 @@ module rv32_cpu #(
// ------------------------------------------------------------------
// CSRs
reg mie_b, mpie_b; // mstatus
reg [31:0] mie_r, mtvec, mscratch, mepc, mcause, mtval;
// 0 at power-up (no logic: the flip-flops' initial state), so the
// monitor shows 0 rather than whatever they held before the first trap
reg [31:0] mie_r = 0, mtvec = 0, mscratch = 0, mepc = 0, mcause = 0, mtval = 0;
reg [63:0] mcycle, minstret;
reg tsel, mte, mpte;
reg nmie, stepped;
reg [31:0] mnscratch, mnepc, mncause;
reg [31:0] mnscratch = 0, mnepc = 0, mncause = 0;
reg [1:0] t_m, t_x, t_s, t_l;
reg [31:0] t_a0, t_a1;
reg [31:0] irq_r;