diff options
| author | uvok | 2026-01-19 20:16:34 +0100 |
|---|---|---|
| committer | uvok | 2026-01-19 20:16:34 +0100 |
| commit | da54b3b6d3db776eb57ca502822558577e6c4c4e (patch) | |
| tree | f0b9263d3a9b2ee8e74e6c3451fc77c2ab87095a /eater_cpu/eater_computer.sv | |
| parent | 1f0fc1edcea04e5c1f04803f0bdda337c2245f09 (diff) | |
Add halt state and flag
Diffstat (limited to 'eater_cpu/eater_computer.sv')
| -rw-r--r-- | eater_cpu/eater_computer.sv | 3 |
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 */ |
