summaryrefslogtreecommitdiff
path: root/hdl
diff options
context:
space:
mode:
authorJulian Blake Kongslie2021-04-05 13:32:41 -0700
committerJulian Blake Kongslie2021-04-05 13:32:41 -0700
commit8c0b7ea39d57cb6c80cf66207291837d95c71940 (patch)
tree2f9403a5a97b78e820893064d01f6591afb96d5f /hdl
parentUse the assembler for allocating static storage in the Fib program. (diff)
downloadnoncpu-8c0b7ea39d57cb6c80cf66207291837d95c71940.tar.xz
Change the null byte from no-op to halt.
Diffstat (limited to 'hdl')
-rw-r--r--hdl/top.sv2
1 files changed, 1 insertions, 1 deletions
diff --git a/hdl/top.sv b/hdl/top.sv
index 54cfdc5..a1cdbf7 100644
--- a/hdl/top.sv
+++ b/hdl/top.sv
@@ -133,7 +133,7 @@ always_ff @(posedge clk) begin
133 if (operand[1]) ++acc; 133 if (operand[1]) ++acc;
134 if (operand[2]) --acc; 134 if (operand[2]) --acc;
135 if (operand[6]) state = MEMORY; 135 if (operand[6]) state = MEMORY;
136 if (operand[7]) state = HALT; 136 if (operand == 0) state = HALT;
137 end 137 end
138 'h1: acc = sign_extended_operand; 138 'h1: acc = sign_extended_operand;
139 'h2, 'h3: begin 139 'h2, 'h3: begin