PoC.io.uart.rx

UART Receiver: 1 Start + 8 Data + 1 Stop

Entity Declaration:

 1-- =============================================================================
 2
 3library IEEE;
 4use     IEEE.std_logic_1164.all;
 5use     IEEE.numeric_std.all;
 6
 7use     work.uart.all;
 8
 9entity uart_rx is
10  generic (
11    SYNC_DEPTH              : natural                      := 2;  -- use zero for already clock-synchronous rx
12    PARITY                  : T_UART_PARITY_MODE           := PARITY_NONE;  --PARITY_EVEN, PARITY_ODD, PARITY_NONE
13    PARITY_ERROR_HANDLING   : T_UART_PARITY_ERROR_HANDLING := PASSTHROUGH_ERROR_BYTE; --PASSTHROUGH_ERROR_BYTE,REPLACE_ERROR_BYTE
14    PARITY_ERROR_IDENTIFIER : std_logic_vector(7 downto 0) := x"15" -- ^NAK
15  );
16  port (
17    -- Global Control
18    clk : in std_logic;