자판기 설계 코딩
- 최초 등록일
- 2010.03.14
- 최종 저작일
- 2009.12
- 4페이지/
한컴오피스
- 가격 2,500원
![할인쿠폰받기](/images/v4/document/ico_det_coupon.gif)
소개글
(총 4페이지)
4가지의 메뉴-coffee, luxury coffee, uja, peanut
coffee 100원, luxury coffee 200원, uja 300원, peanut 400원
목차
없음
본문내용
자판기 설계
4가지의 메뉴-coffee, luxury coffee, uja, peanut
coffee 100원, luxury coffee 200원, uja 300원, peanut 400원
coin투입 100원씩 증가 최대400원까지 투입가능 reset(반환) 초기화 버튼이 존재
투입된 금액은 디지털로 표시 LED등은 상태를 점등 및 소등으로 표시
library ieee;
use ieee.std_logic_1164.all;
entity japangi is
port(clk, reset, c_milk, c_luxury, uja, peanut, coin :in std_logic;
S_a, S_b, S_c, S_d, S_e, S_f, S_g, C_a, C_b, C_c, C_d : out std_logic);
end japangi;
architecture test of japangi is
type states is(s0,s1,s2,s3,s4);
signal state : states;
signal seg : std_logic_vector(6 downto 0);
signal c_out : std_logic_vector(3 downto 0);
begin
nextstate : process(clk,reset,c_milk, c_luxury, uja, peanut, coin)
begin
참고 자료
없음