Commit a9923fa0 authored by Dimitris Lampridis's avatar Dimitris Lampridis

hdl: make UART FIFO reset when CPU is reset

To avoid having any leftovers in the uart buffer after reset
parent e36b053a
......@@ -428,7 +428,7 @@ begin -- arch
p_uart_fifo_overflow : process(clk_sys_i)
begin
if rising_edge(clk_sys_i) then
if rst_n_i = '0' then
if rst_n_i = '0' or cb_csr_i.cpu_o.reset_o = '1' then
uart_fifo_reset_n <= '0';
uart_drdy_o <= '0';
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment