uart: rxd drin
[calu.git] / cpu / src / extension_uart_pkg.vhd
index c9892bdf1bab2e47beb339f35109297f8380fd9b..80df4b27627ac3298b7589e30114246cddd14c4b 100644 (file)
@@ -38,7 +38,7 @@ constant CLK_PER_BAUD : integer := 16330000;
                        ext_reg  : in extmod_rec;
                        data_out : out gp_register_t;
                -- Input
-
+                       bus_rx : in std_logic;
                -- Ouput
                        bus_tx : out std_logic
                );
@@ -67,4 +67,26 @@ component rs232_tx is
 );
 end component rs232_tx;
 
+component rs232_rx is
+       generic (
+               -- active reset value
+               RESET_VALUE : std_logic
+               );
+
+       port(
+               --System inputs
+               sys_clk : in std_logic;
+               sys_res_n : in std_logic;
+
+               --Bus
+               bus_rx : in std_logic;
+
+               --To sendlogic
+               new_rx_data : out std_logic;
+               rx_data : out uart_data
+       );
+end component rs232_rx;
+
+
+
 end package extension_uart_pkg;