From d6df438880cbde09e709dce1d9d29283e3a1af90 Mon Sep 17 00:00:00 2001 From: uvok Date: Sun, 18 Jan 2026 17:47:55 +0100 Subject: eater: Make ALUresult verilator-public --- eater_cpu/eater_alu.sv | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/eater_cpu/eater_alu.sv b/eater_cpu/eater_alu.sv index 39aa37d..b1ed7ea 100644 --- a/eater_cpu/eater_alu.sv +++ b/eater_cpu/eater_alu.sv @@ -14,7 +14,8 @@ module eater_alu ( output wire [7:0] bus_out ); -wire [7:0] result = subtract_n_add_in ? (A_in - B_in) : (A_in + B_in); +wire [7:0] result /* verilator public */; +assign result = subtract_n_add_in ? (A_in - B_in) : (A_in + B_in); // wire [7:0] xormask = {8{subtract_n_add_in}}; // wire [7:0] B_neg_if = B_in ^ xormask; // wire [7:0] result2 = A_in + B_neg_if + subtract_n_add_in; -- cgit v1.2.3