Professional Documents
Culture Documents
FIGURE 2
FIGURE 3
VHDL CODE
library ieee;
use ieee.std_logic_1164.all;
entity vending_machine is
CLK,RST:IN std_logic;
End vending_machine;
type STATE is (st0, st5, st10, st15, st20, st25, st30, st35,st40, st45,st50);
begin
process (rst,clk)
begin
if (rst='1') then
end if;
end process;
begin
case present_state is
end if;
end if;
end if;
end if;
end if;
end if;
when st30 =>
end case;
end process;
end fsm;
Vector waveform