From 86901bfbbdd54e1262489fbeaa144394f3abb3fd Mon Sep 17 00:00:00 2001 From: uvok Date: Fri, 16 Jan 2026 14:22:26 +0100 Subject: eater: Add ALU while doing so, add always_out port for regs --- eater_cpu/eater_alu.sv | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 eater_cpu/eater_alu.sv (limited to 'eater_cpu/eater_alu.sv') diff --git a/eater_cpu/eater_alu.sv b/eater_cpu/eater_alu.sv new file mode 100644 index 0000000..b0fa9ae --- /dev/null +++ b/eater_cpu/eater_alu.sv @@ -0,0 +1,17 @@ +// represents the Ben Eater 8bit computer - ALU + +`timescale 1us/1us + +module eater_alu ( + input clk_in, + input en_output_in, + + input [7:0] A_in, + input [7:0] B_in, + + output [7:0] bus_out +); + +assign bus_out = en_output_in ? 0 : 8'bz; + +endmodule -- cgit v1.2.3