Add addr_decode and testbench
This commit is contained in:
10
hw/fpga/addr_decode.sv
Normal file
10
hw/fpga/addr_decode.sv
Normal 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
|
||||
Reference in New Issue
Block a user