diff options
| author | uvok | 2026-01-18 17:47:55 +0100 |
|---|---|---|
| committer | uvok | 2026-01-18 17:47:55 +0100 |
| commit | d6df438880cbde09e709dce1d9d29283e3a1af90 (patch) | |
| tree | f474eff3cc692a1c038ea55bfd11b41c2248a5c0 /eater_cpu/eater_alu.sv | |
| parent | 78e6336d254eedde5edaf60d8030a304238f82cd (diff) | |
eater: Make ALUresult verilator-public
Diffstat (limited to 'eater_cpu/eater_alu.sv')
| -rw-r--r-- | eater_cpu/eater_alu.sv | 3 |
1 files changed, 2 insertions, 1 deletions
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; |
