summaryrefslogtreecommitdiff
path: root/eater_cpu/eater_computer.sv
diff options
context:
space:
mode:
authoruvok2026-01-19 20:16:34 +0100
committeruvok2026-01-19 20:16:34 +0100
commitda54b3b6d3db776eb57ca502822558577e6c4c4e (patch)
treef0b9263d3a9b2ee8e74e6c3451fc77c2ab87095a /eater_cpu/eater_computer.sv
parent1f0fc1edcea04e5c1f04803f0bdda337c2245f09 (diff)
Add halt state and flag
Diffstat (limited to 'eater_cpu/eater_computer.sv')
-rw-r--r--eater_cpu/eater_computer.sv3
1 files changed, 3 insertions, 0 deletions
diff --git a/eater_cpu/eater_computer.sv b/eater_cpu/eater_computer.sv
index 18b6833..6569831 100644
--- a/eater_cpu/eater_computer.sv
+++ b/eater_cpu/eater_computer.sv
@@ -9,6 +9,8 @@ module eater_computer(
input wire clk_in,
// Whether to automatically run (vs manual control)
input wire auto_run_in,
+
+ output wire halt,
// current content of the bus
output wire [7:0] debug_bus
);
@@ -47,6 +49,7 @@ wire CpuControlFlags automatic_flags;
wire CpuControlFlags flags;
assign flags = auto_run_in ? automatic_flags : manual_flags;
+assign halt = flags.halt;
/* verilator public_off */