0% found this document useful (0 votes)
3 views

CDA 3

This is computer design assignment

Uploaded by

Gatwech Gatjiek
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

CDA 3

This is computer design assignment

Uploaded by

Gatwech Gatjiek
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 7

Computer design and Architecture written Assignment 3

Project Title: Digital Dice Roller

A. Practical Scenario: Digital Dice Roller

Justification for Selection:

The digital dice roller is an engaging project that offers students the opportunity to apply their

understanding of sequential circuits, registers, and counters. It simulates the behavior of rolling

a physical die, providing a practical application that is both fun and educational. Students will

learn how to interpret random signals, utilize counters to represent dice values, and design a

simple user interface for input and output. This project also highlights the integration of

sequential logic components, enhancing their comprehension of circuit behavior in real-world

applications.
B. Step-by-Step Analysis of Circuit Design

Step 1: Defining Inputs and Outputs

 Inputs: A button press to simulate rolling the die, a clock signal to trigger the sequence.

 Outputs: A 7-segment display or LED indicators to show the result (numbers 1-6).

Step 2: Designing the Counter

-By Using a 3-bit binary counter to represent the values from 0 to 6 (6 states) since a die has six

faces. The additional 2 states (binary 7 and 0) can be ignored or reset.

Step 3: Register Design

- By implement a D flip-flop for each bit of the counter. When the button is pressed, the flip-

flops will store the current state of the counter value for output display.
Step 4: Create a Clocking Mechanism

-By Using a clock pulse generator to provide timing signals to the flip-flops and counters. The

clock will control the frequency of counting.

Step 5: Implement Control Logic

- The circuit must be controlled by the button to trigger the counter. Logic gates (AND, OR) can

be employed to filter button presses and prevent bouncing.

C. Utilizing Registers and Counters

Registers:

- The D flip-flops used in the register retain the counter value until the user denotes to roll the

die. When the button is pressed, the current output of the counter is latched by the registers,

ensuring that the displayed value is stable and reflective of the most recent count.

Counters:
- The counter increments its state with each clock pulse when the button is pressed. The

counter logic translates binary values from the flip-flops into corresponding decimal outputs for

the 7-segment display.

D. Summarized Overview of Project Components

Key Components and Their Functions:

1. Button (Input): Triggers the rolling sequence, activating the clock and allowing the counter to

increment.

2. Clock Pulse Generator: Supplies clock signals to the D flip-flop, governing the rate at which

the counter increments.

3. 3-Bit Binary Counter: Consists of three D flip-flops that count the number of clock pulses and

represents values ranging from 0 to 6.

4. Registers (D Flip-Flops): Store the value of the counter upon button press, maintaining stable

output to the display.

5. 7-Segment Display/LED Indicators: Visually represent the outcome of the dice roll,

translating binary states into easily understandable decimal values.

6. Control Logic (AND/OR Gates): Ensure reliable button functionality and prevent multiple

counting from one press.


Conclusion

By completing this project, students will gain hands-on experience in designing a simple yet

functional sequential circuit. They will leverage registers and counters to model a digital

scenario, reinforcing their understanding of theoretical concepts in a practical environment.

The digital dice roller promotes creativity and critical thinking, preparing them for more

complex projects in digital design and engineering.


References:

Brown, S., & Vranesic, Z. (2019). Fundamentals of Digital Logic with VHDL Design (4th ed.).

McGraw Hill.

D Flip Flop. (2023, June 13). GeeksforGeeks. https://www.geeksforgeeks.org/d-flip-flop/

You might also like