Add addr_decode and testbench

This commit is contained in:
Byron Lathi
2022-03-05 20:11:47 -06:00
parent 37e122197f
commit c70272f9de
6 changed files with 434 additions and 5 deletions

10
hw/fpga/addr_decode.sv Normal file
View File

@@ -0,0 +1,10 @@
module addr_decode(
input logic [15:0] addr,
output logic ram_cs,
output logic rom_cs
);
assign rom_cs = addr[15];
assign ram_cs = ~addr[15];
endmodule