Circuit Function and Diagrams for a Two-Player Game with LED Output
Verified
Added on  2023/04/23
|7
|703
|163
AI Summary
This document explains the circuit function and diagrams for a two-player game with LED output. It includes truth tables and additional requirements for upgrading to an 8-faced dice.
Contribute Materials
Your contribution can guide someone’s learning journey. Share your
documents today.
Name: Student Number: E-Mail Address:
Secure Best Marks with AI Grader
Need help grading? Try our AI Grader for instant feedback on your assignments.
Circuit Function: Part A: The circuit gets input for two players using 2 switches. 2 switches are required to represent 4 possible combinations of the dice throw for each player. The winner is presented using LED as output. The decoder circuit uses 4 two – input AND gates to decode inputs giving out 4 independentoutputs. Two decoders are used one for each player. Outputs from Decoder are then compared using two combinatorial circuits. Each circuit is designed to decide if the player has won the round or not. There are three conditions for any player to win, these are modelled using 3 AND gates. Each AND gate has two inputs one from each decoder for the players. Output of these 3 AND gates is ORed to see if any of the three conditions are met. If so the player is considered as winner. Part B: The output from previous stage is used as trigger to increment values in a three bit counter. One counter is needed for each player. Output of the two counters is fed to a comparator which checks the numbers using un-signed binary arithmetic. The winner is declared based on who made more points by winning rounds.
Circuit Diagrams: Part A
Paraphrase This Document
Need a fresh take? Get an instant paraphrase of this document with our AI Paraphraser
Additional Requirements for 7611ICT: To upgrade and use 8 faced dice, the possible number of options that can be input to the circuit increase. This will need 3 switches for each player to allow representation of 8 individual values. Since input is now 3 bits wide and 8 possible combinations exist, the size of decoder used in Part A shall need to be increased to allow decoding of 8 unique outputs. It needs to use 8 AND gates with 3 inputs each to decode and represent 8 individual outputs. Since rules of the game still remain the same, the number of conditions to decide the winner would also increase from 3 to 7 . Therefore, the decision circuit would need 7 AND gates in place of 3 for the decision part for each player. Depending upon number of inputs allowed in OR gate, the number of OR gates shall also increase to allow ORing of 7 outputs from these 7 Gates. Final output of these OR gates will represent the winner as P1 and P2. These output of Part A will be fed to input of Part B. However, there is no change needed in Part B to suit this new requirement. Winner will be indicated based on which player wins 7 rounds before the other one.