library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

entity key_holder is
    port (
        clk             : in std_logic;
        reset           : in std_logic;
        
        start           : in std_logic;
        opcode          : in KEY_HOLDER_TYPE;
        ack             : in std_logic;
        
        data_in         : in std_logic_vector(WORD_WIDTH-1 downto 0);
        valid_in        : in std_logic;
        ready_in        : out std_logic;
        last_word_in    : in std_logic;
        
        data_out        : out std_logic_vector(WORD_WIDTH-1 downto 0);
        valid_out       : out std_logic;
        ready_out       : in std_logic;  
        last_word_out   : out std_logic
    );
end entity;