library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
use ieee.std_logic_unsigned.all;
use work.user_defs_pkg.all;
use work.speakhdl_api_pkg.all;
entity app_module_2 is
generic (this_sm : integer := -1);
port (
clk : in std_logic;
reset : in std_logic;
sm_input : in std_logic_vector(5 downto 0);
sm_output : out std_logic_vector(0 downto 0);
sm_io : inout std_logic_vector(7 downto 0);
next_state_rec : out nsr_array(0 to 0);
state_reg_rec : in srr_array(0 to 0)
);
end entity app_module_2;
architecture arch of app_module_2 is
alias addr_valid : std_logic is sm_input(0);
alias bus_address : std_logic_vector(2 downto 0) is sm_input(3 downto 1);
alias data_valid : std_logic is sm_input(4);
alias data_write : std_logic is sm_input(5);
alias data_wait : std_logic is sm_output(0);
alias bus_data : std_logic_vector(7 downto 0) is sm_io(7 downto 0);
alias srr is state_reg_rec(0);
alias state_reg : integer is state_reg_rec(0).state_reg;
begin
process(state_reg_rec)
begin
RESOURCE_SELECT( sys_clk, next_state_rec, state_reg_rec );
end process;
end architecture arch;