랜덤변수를 이용한 2인용 윷놀이 게임
본 자료는 3페이지 의 미리보기를 제공합니다. 이미지를 클릭하여 주세요.
닫기
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
해당 자료는 3페이지 까지만 미리보기를 제공합니다.
3페이지 이후부터 다운로드 후 확인할 수 있습니다.

소개글

랜덤변수를 이용한 2인용 윷놀이 게임에 대한 보고서 자료입니다.

본문내용

s="01100") then
data<="110";
else
data<="111";
end if;
--11
elsif(y_count>=99 and y_count<109 and x_count>=10 and x_count<20) then
if(p1_pos="01011") then
data<="101";
elsif(p2_pos="01011") then
data<="110";
else
data<="111";
end if;
--up mal
--3
elsif(y_count>=69 and y_count<79 and x_count>=130 and x_count<140) then
if(p1_pos="00011") then
data<="101";
elsif(p2_pos="00011") then
data<="110";
else
data<="111";
end if;
elsif(y_count>=69 and y_count<79 and x_count>=110 and x_count<120) then
if(p1_pos="00100") then
data<="101";
elsif(p2_pos="00100") then
data<="110";
else
data<="111";
end if;
elsif(y_count>=69 and y_count<79 and x_count>=90 and x_count<100) then
if(p1_pos="00101") then
data<="101";
elsif(p2_pos="00101") then
data<="110";
else
data<="111";
end if;
elsif(y_count>=69 and y_count<79 and x_count>=70 and x_count<80) then
if(p1_pos="00110") then
data<="101";
elsif(p2_pos="00110") then
data<="110";
else
data<="111";
end if;
elsif(y_count>=69 and y_count<79 and x_count>=50 and x_count<60) then
if(p1_pos="00111") then
data<="101";
elsif(p2_pos="00111") then
data<="110";
else
data<="111";
end if;
elsif(y_count>=69 and y_count<79 and x_count>=30 and x_count<40) then
if(p1_pos="01000") then
data<="101";
elsif(p2_pos="01000") then
data<="110";
else
data<="111";
end if;
elsif(y_count>=69 and y_count<79 and x_count>=10 and x_count<20) then
if(p1_pos="01001") then
data<="101";
elsif(p2_pos="01001") then
data<="110";
else
data<="111";
end if;
--side mal pan
elsif(y_count>=84 and y_count<94 and x_count>=10 and x_count<20) then
if(p1_pos="00010") then
data<="101";
elsif(p2_pos="00010") then
data<="110";
else
data<="111";
end if;
elsif(y_count>=84 and y_count<94 and x_count>=130 and x_count<140) then
if(p1_pos="01010") then
data<="101";
elsif(p2_pos="01010") then
data<="110";
else
data<="111";
end if;
--hwa sal pyuo
elsif(y_count>=84 and y_count<94 and x_count>=150 and x_count<153) then
data<="000";
elsif(y_count>=85 and y_count<87 and x_count>=148 and x_count<150) then
data<="000";
elsif(y_count>=87 and y_count<89 and x_count>=146 and x_count<148) then
data<="000";
elsif(y_count>=85 and y_count<87 and x_count>=153 and x_count<155) then
data<="000";
elsif(y_count>=87 and y_count<89 and x_count>=155 and x_count<157) then
data<="000";
--chogi mal
elsif(y_count>=109 and y_count<114 and x_count>=150 and x_count<155) then
if(p1_pos="00000" or p1_pos>="10001") then
data<="101";
else
data<="011";
end if;
elsif(y_count>=109 and y_count<114 and x_count>=155 and x_count<160) then
if(p2_pos="00000" or p2_pos>="10001") then
data<="110";
else
data<="011";
end if;
else
data<="011";
end if;
wr<='1';
else
wr<='0';
end if;
end process;
process(H_count,V_count)-- Video RAM addres decoder
begin
if(H_count>=700) then
y_count<=conv_std_logic_vector(conv_integer(V_count)-1/4,7);
else
y_count<=conv_std_logic_vector(conv_integer(V_count)/4,7);
end if;
x_count<=conv_std_logic_vector(conv_integer(H_count)-640,8);
end process;
addr<=y_count & x_count;
end beh;

키워드

vhdl,   asic,   경희대,   프로젝트
  • 가격5,000
  • 페이지수11페이지
  • 등록일2007.01.18
  • 저작시기2004.4
  • 파일형식한글(hwp)
  • 자료번호#389319
본 자료는 최근 2주간 다운받은 회원이 없습니다.
청소해
다운로드 장바구니