From 5d3d64d703fd8c1ef94bd3b67a2e3e43414df604 Mon Sep 17 00:00:00 2001 From: Julian Blake Kongslie Date: Mon, 5 Apr 2021 10:16:58 -0700 Subject: Remove some old debug messages. --- hdl/top.sv | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/hdl/top.sv b/hdl/top.sv index 71a5a48..2615db8 100644 --- a/hdl/top.sv +++ b/hdl/top.sv @@ -92,12 +92,10 @@ always_ff @(posedge clk) begin acc = 0; state = state.first; end else begin - `ifdef DEBUG $display("s=%0d pc=%x (acc=%x) (mem %b:%x)", state, pc, acc, `mem_read_valid, `mem_read_data); `endif if (`tx_ready) tx_valid = 0; case (state) FETCH: begin - `ifdef DEBUG $display("\tfetch"); `endif mem_valid = 1; mem_address = {2'b0, pc}; mem_write = 0; @@ -114,7 +112,6 @@ always_ff @(posedge clk) begin state = FETCH; {opcode, operand} = `mem_read_data; sign_extended_operand = {{(DATA_BITS-8){operand[7]}}, operand}; - `ifdef DEBUG $display("\tdecode %x:%x", opcode, operand); `endif case (opcode) 'h0: begin if (operand[0]) acc = 0; @@ -169,7 +166,6 @@ always_ff @(posedge clk) begin mem_valid = 0; mem_write = 0; state = FETCH; - `ifdef DEBUG $display("\tagen"); `endif case (opcode) 'h2: begin mem_valid = 1; @@ -199,7 +195,6 @@ always_ff @(posedge clk) begin mem_write = 0; end state = FETCH; - `ifdef DEBUG $display("\tstall"); `endif case (opcode) 'h0: begin if (operand[6]) begin @@ -221,13 +216,8 @@ always_ff @(posedge clk) begin endcase end - HALT: begin - $display("Reached halt state."); - $finish; - end + HALT: $finish; endcase - - `ifdef DEBUG if (mem_valid) $display("\tmem addr=%x w=%b", mem_address, mem_write); `endif end end -- cgit v1.2.3