Hi Guys,
So sorry to disturb u all but i in really desperate need of help . I have been cracking my brains for a few days but i am back to square one.
Question from School :
Design and implement a digital circuit to simulate a random number guessing gamefor young children.
The game system works as follows.
The game gives four chances to a player to guess a number set by the system in the range of 0-15.
To give the player a clue, a RED LED should light up if the players
guess exceeds the set number by more than 3. Likewise, if the players guess is smaller than the set number by more than 3, a GREEN LED lights up. If the guess is within +3 from the set number, neither the GREEN nor the RED LED lights up.
If the player guesses correctly within the four attempts, a WIN LED lights up. If the correct guess has not been made within four attempts a LOSE LED lights up. The system has to be RESET to start a new game when the outcome of the current game has been determined. The number to be guessed is input by setting it on a 4-bit DIP switch and
entering it into the system by a push button (PB) switch coupled with a single pulsercircuit (ENTER_NUM). The players guess is input to the system by using a 4-bit DIP switch and another PB switch coupled with a single pulser circuit(ENTER_GUESS).
My Circuit Design :
List of Components Above Used for the My Design
DM74LS194A
4-Bit Bidirectional Universal Shift Register
DM74LS04
Hex Inverting Gates
DM74LS85
4-Bit Magnitude Comparators
DM74LS08
Quad 2-Input AND Gates
DM74LS193
Synchronous 4-Bit Binary Counter with Dual Clock
DM74LS283
4-Bit Binary Adder with Fast Carry
Other available components provided by school
Hex inverters 7404
Quad 2-input NAND gates 7400
Quad 2-input NOR gates 7402
Quad 2-input AND gates 7408
Dual 4-input NAND gates 7420
Dual 4-input AND gates 7421
Quad 2-input OR gates 7432
Quad 2-input XOR gates 7486
Dual 2-input NOR gates 7402
4 bit magnitude comparator, 7485
3 to 8 Line decoder / demultiplexer 74138
Dual 2 to 4 line decoder / demultiplexer 74139
Quad 2 to 1 line multiplexer 74157
Synchronous 4-bit up/down counter with dual clock
Synchronous 4-bit up/down counter with mode control
Synchronous mod-16 counter with synchronous clear and preset
74193
74191
74161/74163
Dual D-type flip flop 7474
4 bit universal bi-directional shift register 74194
Binary adder 74283
Problems that I am Facing :
1. In the picture above, i circled my red area...so how do i deactivate the
2 adders when A = B ? and vice versa?
2. How do i connect my Magnitude Comparator to the adders when A > B or A < B so that it activates only 1?
3. Can the LED light just by using the High State to the anod and ground to the cathode?
4. Can someone tell me whether my circuit will work?
pls help...at wits end
So sorry to disturb u all but i in really desperate need of help . I have been cracking my brains for a few days but i am back to square one.
Question from School :
Design and implement a digital circuit to simulate a random number guessing gamefor young children.
The game system works as follows.
The game gives four chances to a player to guess a number set by the system in the range of 0-15.
To give the player a clue, a RED LED should light up if the players
guess exceeds the set number by more than 3. Likewise, if the players guess is smaller than the set number by more than 3, a GREEN LED lights up. If the guess is within +3 from the set number, neither the GREEN nor the RED LED lights up.
If the player guesses correctly within the four attempts, a WIN LED lights up. If the correct guess has not been made within four attempts a LOSE LED lights up. The system has to be RESET to start a new game when the outcome of the current game has been determined. The number to be guessed is input by setting it on a 4-bit DIP switch and
entering it into the system by a push button (PB) switch coupled with a single pulsercircuit (ENTER_NUM). The players guess is input to the system by using a 4-bit DIP switch and another PB switch coupled with a single pulser circuit(ENTER_GUESS).
My Circuit Design :
List of Components Above Used for the My Design
DM74LS194A
4-Bit Bidirectional Universal Shift Register
DM74LS04
Hex Inverting Gates
DM74LS85
4-Bit Magnitude Comparators
DM74LS08
Quad 2-Input AND Gates
DM74LS193
Synchronous 4-Bit Binary Counter with Dual Clock
DM74LS283
4-Bit Binary Adder with Fast Carry
Other available components provided by school
Hex inverters 7404
Quad 2-input NAND gates 7400
Quad 2-input NOR gates 7402
Quad 2-input AND gates 7408
Dual 4-input NAND gates 7420
Dual 4-input AND gates 7421
Quad 2-input OR gates 7432
Quad 2-input XOR gates 7486
Dual 2-input NOR gates 7402
4 bit magnitude comparator, 7485
3 to 8 Line decoder / demultiplexer 74138
Dual 2 to 4 line decoder / demultiplexer 74139
Quad 2 to 1 line multiplexer 74157
Synchronous 4-bit up/down counter with dual clock
Synchronous 4-bit up/down counter with mode control
Synchronous mod-16 counter with synchronous clear and preset
74193
74191
74161/74163
Dual D-type flip flop 7474
4 bit universal bi-directional shift register 74194
Binary adder 74283
Problems that I am Facing :
1. In the picture above, i circled my red area...so how do i deactivate the
2 adders when A = B ? and vice versa?
2. How do i connect my Magnitude Comparator to the adders when A > B or A < B so that it activates only 1?
3. Can the LED light just by using the High State to the anod and ground to the cathode?
4. Can someone tell me whether my circuit will work?
pls help...at wits end