diff options
author | Friedrich Beckmann <friedrich.beckmann@hs-augsburg.de> | 2024-05-15 06:47:25 +0200 |
---|---|---|
committer | Friedrich Beckmann <friedrich.beckmann@hs-augsburg.de> | 2024-05-28 12:22:40 +0200 |
commit | 3dd4ccf8e17309ed97e5bdbd8cff6a2855d284fa (patch) | |
tree | 2aa14a7818e0cada8c21532a2c6e91d974b47654 /src/uart_tx_shift.vhd | |
parent | c6ee080fc68079392e9e66961bd11ebf52ab852d (diff) |
top_uart solutions
Diffstat (limited to 'src/uart_tx_shift.vhd')
-rw-r--r-- | src/uart_tx_shift.vhd | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/uart_tx_shift.vhd b/src/uart_tx_shift.vhd index b81fe78..f5724f6 100644 --- a/src/uart_tx_shift.vhd +++ b/src/uart_tx_shift.vhd @@ -12,7 +12,11 @@ entity uart_tx_shift is end entity; architecture rtl of uart_tx_shift is + signal sr, srn : std_ulogic_vector(8 downto 0); begin - + sr <= (others => '1') when rst_n = '0' else srn when rising_edge(clk); + srn <= d_i & '0' when start_i = '1' else + '1' & sr(8 downto 1) when en_i = '1' else sr; + tx_o <= sr(0); end architecture rtl; |