ROBERT BANDA
DIGITAL ELECTRONICS AND COMPUTER ARCHITECTURE
UNIT 3 ASSIGNMENT
Designing a Simple Digital Game Using Sequential Circuits,
Registers, and Counters
For this assignment, I will design a simple digital game that consists of a
binary guessing game. The player will guess a binary number, and the game
will indicate if the guess is correct or not. Binary counters are circuits that
generate binary sequences that can be associated with the number of clock
signal pulses applied to the input” (Ndjountche, T. 2016). By choosing this
type of scenario, I will be able to apply and demonstrate the principles of
sequential circuits, Registers, and counters in a fun and engaging way.
Analysis of Circuit Design
Define the Game Logic: The game will generate a random 4-bit binary
number. The player will input their guess, also a 4-bit binary number. If the
guess matches the generated number, the player Circuit.
2.Design the Sequential Circuit: The game logic will be implemented
using a sequential circuit. Geeks for Geeks says that “Sequential circuits are
digital circuits that store and use the previous state information to determine
their next state .The circuit will have two inputs (the generated number and
the player’s guess) and one output (win or lose).
3.Implement the Random Number Generator: A 4-bit binary counter can
be used to generate the random number. The counter will increment every
second, and the current count will be used as the generated number when
the player makes guess.
4.Implement the Guess Input: The player’s guess will be input using four
switches, each representing a bit of the binary number.
5.Implement the Comparison Logic: A set of XOR gates can be used to
compare the generated number and the player’s guess, If all outputs of the
XOR gates are’0’, the numbers match, and the player wins.
Registers and Counters
Registers: Registers will be used to store the generated number and the
player’s guess. When the player makes a guess, the current count of the
binary counter (the generated number) will be stored in a register. The
player’s guess will also be stored in a register.
Counters: A 4-bit binary counter will be used to generate the random
number. The counter will increment every second, and the current count will
be used as the generated number when the player makes a guess.
Key Components
Sequential Circuit: This is the main component of the game. It implements
the game Logic, taking the generated number and the player’s guess as
inputs and producing a Win/lose output.
Binary Counter: This component generates the random number for the
game. Increments every second, and the current count is used as the
generated number.
Register: this will be uses to store the guessed numbers
Counters :This controls the sequence of game ,ensuring win or loss
Reference
(Ndjountche, T. 2016)
https://onlinelibrary.wiley.com/doi/book/10.1002/9781119318620