Integrate uart controller into top level module

Adds new chip select for the UART, and a new entry in the data_out mux
for the UART.
This commit is contained in:
Byron Lathi
2022-03-14 10:45:45 -05:00
parent da4d5f0fe7
commit cfcf94a875
2 changed files with 11 additions and 4 deletions

View File

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