Computer Systems and Networks Software requirement: You must use the Logisim simulator to create your circuits. Assignments submitted using other programs willNOT BE ABLE TO BE MARKED due to incompatible file formats. Please note: It may be better to have a fully functional and neatly drawn simple circuit than a complex one that is messily constructed and/or does not function properly. Labelling You must label each circuit and template that you construct with the Annotation tool and ensure that all the inputs are labelled as instructed in this sheet. Note: Be careful, before submission test your circuit if it works as required. Testing You will need to test various possible combinations for the inputs S1 and S2 and check if the desired output is obtained (for Part A). You do not need to submit your tests. For Part B, you will have to test if the ultimate winning signal is generated, when the desired number of games is won by any player. Report Your report (6 8 pages) must contain the following sections: 1. Your details: Name, student number, and email address 2. Circuit Name: The name of the circuit you have selected to build and draw (part A or Part B) 3. Circuit Function: A brief (100-200 words) description of the functions of each of your circuit describing in your own words how the circuit operates. 4. Circuit diagrams: A diagram of your circuit including all templates and their contents. You must draw this diagram yourself using the Logisim logic simulator. To include a circuit in your report, please take a screen shot of the circuit and paste the screenshot into your report. Copying and pasting from the lecture notes or other sources is NOT permitted. 5. Truth tables: Show all possible inputs and outputs for each component individually. The column headings in your truth table should correspond to the labels on your circuit diagram. Requirements: For this assignment you are required to implement the popular two-player hand-game Rock-paper-scissors, using a digital logic circuit. For those unfamiliar with the game, each player makes one of three hand signals: i) Rock, represented by a clenched fist. ii) Scissors, represented by two fingers extended and separated, sometimes coming together iii) Paper, represented by an open hand, with the fingers extended and touching, in order to represent a sheet of paper The winner is decided by the following rules: Rock beats scissors, Scissors beats paper Paper beats rock. If both players have the same signal (rock and rock, scissors and scissors, paper and paper) the game is tied (a draw, no one wins). For this assignment, the hand signals will be represented by two inputs. Inputs are named as S1 and S2 for the 1st Player (P) and S3 and S4 for the 2nd Player (Q). The table below shows the assignment of bits to each hand signal for players P and Q. The initial state represents the state before or between a game when no signal is present. Hand Sign S1 S2 Rock 0 0 Scissor 0 1 Paper 1 0 Initial State 1 1 Player P signals Hand Sign S1 S2 Rock 0 0 Scissor 0 1 Paper 1 0 Initial State 1 1 Player Q signals Part A Circuit Option 1: Part A Only (35 marks): The implementation for this part must use only logic gates with 2 inputs. You are required to implement a circuit in which each player inputs their signal and an output indicates which player wins. The outputs (marked as P and Q) will be two LEDs, one which is lit if Player P wins, the other which is lit if Player Q wins. If both players enter the same ?hand-signal (0,0 the game is a draw, or 1,1 the game has not started) then no output LED should be lit. Part B Circuit Option 2: Part A and Part B (60 marks): For this part, the ultimate winner of the game is the first player, who wins n games; where n is a number between 1 and 7. Using the same circuit as Part A (implemented using only logic gates with 2 inputs), add additional circuitry to determine the winner based on the selection of n (for this part only, more complex circuits from the logisim circuit library can be used) The number of games required to win range from 1 to 7 and should be set via three separate inputs: X1, X2 and X3. The outputs (marked as P and Q) will be two LEDs, one which is lit if Player P is the ultimate winner, the other is lit if Player Q is the ultimate winner. Note that the initial values for X1, X2 and X3 are 0,0,0 indicating that the game has not been started. n X1 X2 X3 0 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 Values for X1, X2, X3 Note: for Part B you may need to add buttons to reset your count of how many games have been played so that you can test it. You may also need to add a clock input (as a button) to ensure that values are only updated when the circuit is stable.
Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.
[order_calculator]