This also increases the number of registers to 4, one more for the high pair of displays, and a final one for a mask register which has not been implemented yet.
13 lines
263 B
Systemverilog
13 lines
263 B
Systemverilog
module addr_decode(
|
|
input logic [15:0] addr,
|
|
output logic ram_cs,
|
|
output logic rom_cs,
|
|
output logic hex_cs
|
|
);
|
|
|
|
assign rom_cs = addr[15];
|
|
assign ram_cs = ~addr[15] && addr < 16'h7ff0;
|
|
assign hex_cs = addr >= 16'h7ff0 && addr < 16'h7ff4;
|
|
|
|
endmodule
|