From da54b3b6d3db776eb57ca502822558577e6c4c4e Mon Sep 17 00:00:00 2001 From: uvok Date: Mon, 19 Jan 2026 20:16:34 +0100 Subject: Add halt state and flag --- eater_cpu/eater_computer.sv | 3 +++ 1 file changed, 3 insertions(+) (limited to 'eater_cpu/eater_computer.sv') 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 */ -- cgit v1.2.3