summaryrefslogtreecommitdiff
path: root/rtl/core
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-11-15 19:10:34 -0600
committerAlejandro Soto <alejandro@34project.org>2023-11-16 16:43:59 -0600
commit87a42e555bf952047e287f4c7810cd538595d5af (patch)
treed08db58fc3484bae6d63e5b2d69e66bf8c11cf95 /rtl/core
parentba803067cb54edece9ffa8b92f9bb97317d082e5 (diff)
rtl/smp: implement SMP dead/alive handling
Diffstat (limited to '')
-rw-r--r--rtl/core/core.sv4
1 files changed, 4 insertions, 0 deletions
diff --git a/rtl/core/core.sv b/rtl/core/core.sv
index ce51a71..cf63b2d 100644
--- a/rtl/core/core.sv
+++ b/rtl/core/core.sv
@@ -9,6 +9,7 @@ module core
input wire step,
input wire cpu_halt,
+ output wire cpu_alive,
output wire cpu_halted,
output wire breakpoint,
@@ -27,6 +28,8 @@ module core
generate
if (ID < `CONFIG_CPUS) begin: enable
+ assign cpu_alive = 1;
+
ptr addr;
word data_wr;
logic start, write;
@@ -57,6 +60,7 @@ module core
.*
);
end else begin
+ assign cpu_alive = 0;
assign cpu_halted = 1;
assign breakpoint = 0;