컴퓨터구조 설계 프로젝트 Handheld PIG Game
- 최초 등록일
- 2014.07.09
- 최종 저작일
- 2011.12
- 23페이지/ 한컴오피스
- 가격 1,000원
목차
1. 제목
2. 설계 이론
3. Background
4. Pin assignment
5. 보드 설명
6. 보드 동작 설명
7. Verilog Source Code
본문내용
제목 : Design of DashWatch or Handheld PIG Game
설계 이론 : Handheld PIG Game
1. write a detailed system specification.
- PIG : a dice game that
is used as a learning tool for instruction in probability
- most prevalent versions : used two dice
this version of PIG : played with single die that has 1 to 6 dots
- during each turn : player rolls the die one or more times
until (a) a 1 is rolled or (b) the player chooses to hold
- if a 1 is rolled : the subtotal becomes 0, player’s turn is ended.
- at end of each turn : subtotal is added to player’s overall total,
And the play passes to other player
- first player to reach or exceed 100 : wins
- three 2-digit decimal LCDs : Fig. 7-26
driven by signal vectors TP1, SUB, TP2
TP1, TP2 : controls total score display for player1, player 2
SUB : controls subtotal display for active player, during a turn
(a) Exterior View of PIG
(b) PIG Registers
- Two Segment array displaying the die value : controlled by DDIS
- two LEDs indicating the active player : controlled by P1, P2
player’s turn : LED for player turns on
player wins : flashes
- four pushbuttons : ROLL, HOLD, NEW_GAME, RESET
when ROLL is pushed : die begins rolling
when is released :
die stops rolling, rolled value is added to current subtotal
2. define all control input signals, output data, registers and list in table.
- registers : required in the PIG datapath
3-bit register DIE : counts from 1 (001) to 6 (110) repeatedly
must have an enable input, is reset to 000 using RESET
generates a “random number” depending on
an arbitrary initial state & the time that ROLL is held down
two totals and subtotal : requires 7-bit registers, TR1, TR2, SUR
참고 자료
없음