Add UART interrupts

Currently an interrupt is triggered any time there is any activity on
the UART_RXD line, but later it will only trigger once there is data
ready to be read.
This commit is contained in:
Byron Lathi
2022-03-14 14:57:45 -05:00
parent 0316d047e3
commit b2344d986e
4 changed files with 19 additions and 2 deletions

View File

@@ -12,9 +12,13 @@ module uart(
output logic TXD,
output logic irq,
output logic [7:0] data_out
);
//Temporary!
assign irq = ~RXD;
//Handle reading and writing registers
logic [7:0] tx_buf;