diff --git a/lib/uart/uart_wb.vhd b/lib/uart/uart_wb.vhd index dd1d5fd..5d3e3f4 100644 --- a/lib/uart/uart_wb.vhd +++ b/lib/uart/uart_wb.vhd @@ -88,20 +88,14 @@ registers_write: case ADDR_I(5 downto 2) is when "0000" => - if SEL_I(0) = '1' then - reg_we_uart_tx <= '1'; - reg_uart_tx <= DAT_I(7 downto 0); - end if; + reg_we_uart_tx <= '1'; + reg_uart_tx <= DAT_I(7 downto 0); when "0001" => - if SEL_I(0) = '1' then - reg_uart_ctrl <= DAT_I(7 downto 0); - end if; + reg_uart_ctrl <= DAT_I(7 downto 0); when "0010" => - if SEL_I(0) = '1' then - reg_uart_baud <= DAT_I(7 downto 0); - end if; + reg_uart_baud <= DAT_I(7 downto 0); when others => null; end case;