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_1 is
generic (this_sm : integer := -1);
port (
clk : in std_logic;
reset : in std_logic;
sm_input : in std_logic_vector(1 downto 0);
sm_output : out std_logic_vector(3 downto 0);
sm_io : inout std_logic_vector(-1 downto 0);
next_state_rec : out nsr_array(0 to 0);
state_reg_rec : in srr_array(0 to 0)
);
end entity app_module_1;
architecture arch of app_module_1 is
alias some_input_name : std_logic_vector(1 downto 0) is sm_input(1 downto 0);
alias some_output_name : std_logic_vector(3 downto 0) is sm_output(3 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;
- See also
- app_module_2.vhd
-
IO_CONFIG.cfg
-
PINOUT.xdc
-
TOP.vhd