From e9e7a6a5f0341bc310cb0a12712aa44c6517d267 Mon Sep 17 00:00:00 2001 From: Raphael Jacquot Date: Fri, 15 Mar 2019 10:20:21 +0100 Subject: [PATCH] add nice message for rom on CONFIGURE command --- saturn_hp48gx_rom.v | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/saturn_hp48gx_rom.v b/saturn_hp48gx_rom.v index 84f3ad2..bc475e6 100644 --- a/saturn_hp48gx_rom.v +++ b/saturn_hp48gx_rom.v @@ -164,10 +164,11 @@ always @(posedge i_clk) begin `ifdef SIM $write("ROM-GX-R %0d: [%d] ", i_phase, i_cycle_ctr); case (last_cmd) - `BUSCMD_PC_READ: $write("PC_READ <= rom[%5h]: %h", local_pc, imm_nibble); - `BUSCMD_DP_READ: $write("DP_READ <= rom[%5h]: %h", local_dp, imm_nibble); - `BUSCMD_LOAD_PC: $write("LOAD_PC - pc %5h, %h pos %0d", local_pc, i_bus_nibble_in, addr_pos_ctr); - `BUSCMD_LOAD_DP: $write("LOAD_DP - dp %5h, %h pos %0d", local_dp, i_bus_nibble_in, addr_pos_ctr); + `BUSCMD_PC_READ: $write("PC_READ <= rom[%5h]: %h", local_pc, imm_nibble); + `BUSCMD_DP_READ: $write("DP_READ <= rom[%5h]: %h", local_dp, imm_nibble); + `BUSCMD_LOAD_PC: $write("LOAD_PC - pc %5h, %h pos %0d", local_pc, i_bus_nibble_in, addr_pos_ctr); + `BUSCMD_LOAD_DP: $write("LOAD_DP - dp %5h, %h pos %0d", local_dp, i_bus_nibble_in, addr_pos_ctr); + `BUSCMD_CONFIGURE: $write("CONFIGURE - rom is not configurable"); default: $write("last_command %h nibble %h - UNHANDLED", last_cmd, i_bus_nibble_in); endcase if (addr_pos_ctr == 4) begin