0% found this document useful (0 votes)
19 views4 pages

Digital Elec Unit 3

Uploaded by

munyendoadam9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views4 pages

Digital Elec Unit 3

Uploaded by

munyendoadam9
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Bachelor of Computer Science

University of the People


CS 1105-01 Digital Electronics & Computer Architecture
Dr. Yogi Gibson
September 25, 2024
Design and Analysis of a Simple Digital Game Using Registers and Counters

a. Practical Scenario: Simple Digital Game

For this project, I propose designing a simple digital game called "Score Keeper." The game will
involve a player scoring points, and the score will be displayed using a binary counter. The
reason for selecting this scenario is that it provides a clear and practical application of sequential
circuits, registers, and counters, allowing students to visualize how these components interact in
a real-world context. The project will help students understand the input/output behavior of these
circuits while reinforcing their theoretical knowledge through hands-on experience.

b. Step-by-Step Analysis of Circuit Design

1. Define Requirements:

 The game will have a scoring system that increments the score with each
successful action (e.g., hitting a target).

 The score will be displayed in binary format on a 4-bit LED display.

 A reset button will allow the player to reset the score to zero.

2. Select Components:

 Registers: Use D flip-flops to create a 4-bit register that holds the current score.

 Counter: Implement a binary counter using T flip-flops to increase the score.

 Input/Output Devices: Use push buttons for scoring input and an LED display
for output.

3. Circuit Diagram:

 Connect four D flip-flops in parallel to form a 4-bit register.

 Connect the output of the T flip-flop (acting as a counter) to the D inputs of the
register.

 Use combinational logic to control when the counter increments (on button press)
and when it resets (on reset button press).

4. Clock Signal:

 A clock signal will synchronize all flip-flops in the circuit, ensuring that changes
in state occur at defined intervals.

5. Reset Logic:
 Implement asynchronous reset logic that sets all flip-flops to zero when the reset
button is pressed.

c. Utilization of Registers and Counters

 Registers: The 4-bit register stores the current score in binary format. Each D flip-flop
corresponds to one bit of the score, allowing for easy updates and retrieval of data.

 Counters: The T flip-flop counter increments the score with each button press. When
activated, it toggles its state on each clock pulse, effectively counting from zero.

The interaction between registers and counters allows for seamless updates to the score display
as players engage with the game. When a player scores, the counter increments, which then
updates the register holding the current score.

d. Overview of Key Components and Their Interaction

1. D Flip-Flops (Registers):

 Store binary values representing the current score.

 Triggered by clock pulses to update their state based on inputs from the counter.

2. T Flip-Flops (Counter):

 Count up with each button press, incrementing the score.

 Provide output that directly influences the data stored in registers.

3. Input Devices:

 Push buttons serve as inputs for scoring actions and resetting scores.

4. Output Device:

 An LED display shows the current score in binary format.

Conclusion

This project effectively demonstrates how registers and counters collaborate within sequential
circuits to create interactive input/output behavior in a digital game context. Students will gain
practical experience in designing circuits while reinforcing their understanding of theoretical
concepts related to sequential logic design.
References

 Nelson, C. (2023). Registers and Counters. Retrieved from Wallawalla University.

 Ghoshal, B. (2020). Sequential Circuits. Retrieved from IIITA.

 https://youtu.be/16P7TgqQlTA

You might also like