Component Declaration and Instantiation
USE ieee.std_logic_1164.all;
PORT( tclk : IN STD_LOGIC;
tcross, tnickel, tdime, tquarter : IN STD_LOGIC;
tgreen, tred : OUT STD_LOGIC);
ARCHITECTURE tolleab_arch OF tolleab IS
TYPE STATE_TYPE IS (cent0, cent5, cent10, cent15, cent20, cent25, cent30,
cent35, cent40, cent45, cent50, arrest);
SIGNAL connect : STATE_TYPE;
cross, nickel, dime, quarter : IN STD_LOGIC;
green, red : OUT STD_LOGIC;
state_in : IN STATE_TYPE);
u1 : tollv PORT MAP (clk => tclk, cross => tcross, nickel => tnickel, dime => tdime,
quarter => tquarter, green => tgreen, red => tred,
sout => connect, state_in => connect);