X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=hwmod.git;a=blobdiff_plain;f=src%2Fuart_tx.vhd;fp=src%2Fuart_tx.vhd;h=a851656f02618a636ab8bfa915f43df8fcbf3a83;hp=8f15f5b5d6a5b9602a10aa06ea115783a5c41016;hb=1353e79fd80c9a6fd96f830a85e12ab457822a43;hpb=078ed107843eeef4cdbe033ca8ccaca8311895b0 diff --git a/src/uart_tx.vhd b/src/uart_tx.vhd index 8f15f5b..a851656 100644 --- a/src/uart_tx.vhd +++ b/src/uart_tx.vhd @@ -26,7 +26,7 @@ architecture beh of uart_tx is signal txd_next, txd_int : std_logic; signal tx_done_next, tx_done_int : std_logic; - signal tx_to_send : std_logic_vector(0 to 10); + signal tx_to_send : std_logic_vector(10 downto 0); signal bitcnt_int, bitcnt_next : integer range 0 to 11; signal baudcnt_int, baudcnt_next : integer range 0 to BAUD; begin @@ -48,8 +48,8 @@ begin tx_done_int <= tx_done_next; bitcnt_int <= bitcnt_next; baudcnt_int <= baudcnt_next; - -- HIGHBIT (1) | STARTBIT (1) | DATA (8) | STOPBIT (1) - tx_to_send <= '1' & '0' & tx_data & '1'; + -- STOPBIT (1) | DATA (8) | STARTBIT (1) | HIGHBIT (1) + tx_to_send <= '1' & tx_data & '0' & '1'; end if; end process;