Add hex drivers

This commit is contained in:
Byron Lathi
2022-03-11 18:25:55 -06:00
parent bf28201832
commit cdf3da9b13
9 changed files with 469 additions and 25 deletions

View File

@@ -2,11 +2,11 @@ module addr_decode(
input logic [15:0] addr,
output logic ram_cs,
output logic rom_cs,
output logic io_cs
output logic hex_cs
);
assign rom_cs = addr[15];
assign ram_cs = ~addr[15] && addr < 16'h7ff0;
assign io_cs = addr >= 16'h7ff0 && addr < 16'h8000;
assign hex_cs = addr >= 16'h7ff0 && addr < 16'h7ff2;
endmodule