50 likes | 219 Views
Ra?. Rb?. Ra?. D2312?. Rb?. Eq?. D7?. D7 or D11?. Roll. Roll. Sp. S0. Fig 1: Dice Game ASM Chart. 0. 1. S1. 0. 1. 1. 0. 1. 0. S4. S2. 0. Lose. 1. S5. S3. 0. Win. 0. 1. 1. 0. 1. Figure 2. Reg (uses rising edge DFFs). D[7:0]. Q[7:0]. D. Q. 8. 8. Clk. Clk.
E N D
Ra? Rb? Ra? D2312? Rb? Eq? D7? D7 or D11? Roll Roll Sp S0 Fig 1: Dice Game ASM Chart 0 1 S1 0 1 1 0 1 0 S4 S2 0 Lose 1 S5 S3 0 Win 0 1 1 0 1 BR 1/99
Figure 2 Reg (uses rising edge DFFs) D[7:0] Q[7:0] D Q 8 8 Clk Clk ld ld FSM start CLK D $ 80 $ 21 $ 42 $ 10 $ 08 $ 04 $ 02 $ 85 Start BR 1/99
CLK D $ 80 $ 21 $ 42 $ 10 $ 85 Start State S0 S1 S2 ld S0 S0 FSM Fig 2a FSM Fig 2b 0 0 Start? Start? ld 1 1 S1 S1 ld S2 S2 CLK D $ 80 $ 21 $ 42 $ 10 $ 85 Start State S0 S1 S2 ld BR 1/99
S0 S0 FSM Fig 2c FSM Fig 2d ld 0 Start? 0 Start? 1 1 S1 S1 ld S2 S2 CLK CLK D $ 80 $ 21 $ 42 D $ 80 $ 21 $ 42 $ 10 $ 85 $ 85 Start Start State S0 S1 S2 State S0 S1 S2 ld ld BR 1/99
* * * * * * Figure 3 N1 a T01 1-a T00 T11 T10 1-a N4 N3 N5 N6 b N2 + + N7 1-b N8 N9 N10 + N11 Y BR 1/99