# CS302 Assignment 3 Solution and Discussion

• Digital Logic Design (CS302)
Assignment # 03

Total marks = 20

27/01/2020

RULES FOR MARKING
It should be clear that your assignment would not get any credit if:
 The assignment is submitted after the due date.
 The submitted assignment does not open or file is corrupt.
 Strict action will be taken if submitted solution is copied from any other student or from the internet.

You should concern the recommended books to clarify your concepts as handouts are not sufficient.

You are supposed to submit your assignment in .doc or docx format.
Any other formats like scan images, PDF, zip, rar, ppt and bmp etc will not be accepted.

Topic Covered:
• State Diagram
• Counters
• K-Maps
• Circuit Design

NOTE

No assignment will be accepted after the due date via email in any case (whether it is the case of load shedding or internet malfunctioning etc.). Hence refrain from uploading assignment in the last hour of deadline. It is recommended to upload solution file at least two days before its closing date.

If you people find any mistake or confusion in assignment (Question statement), please consult with your instructor before the deadline. After the deadline no queries will be entertained in this regard.

For any query, feel free to email at:
[email protected]

Questions No 01 Marks (20)

You are required to design a 4-bit even up-counter using D flip flop by converting combinational circuit to sequential circuit. The counter will only consider even inputs and the sequence of inputs will be 0-2-4-6-8-10-0.
You are required to perform following tasks:

1. Draw the State diagram.
2. Generate State & Transition Table.
3. Generate simplified Boolean Expression.
4. Design the final Circuit diagram.

• Design the final Circuit diagram.

A circuit diagram is a graphical representation of an electrical circuit. A pictorial circuit diagram … Circuit diagrams are used for the design (circuit design), construction (such as PCB layout), and maintenance of electrical and electronic … This results in the final layout artwork for the integrated circuit or printed circuit board.
Reff

• Generate simplified Boolean Expression.

From the truth table, derive the Sum of Products Boolean Expression. Use Boolean Algebra to simplify the boolean expression. The simpler the boolean expression, the less logic gates will be used. Use logic gates to implement the simplified Boolean Expression.

• Generate State & Transition Table.

Whenever an unused state is encountered, the state machine is designed to enter state 0 on the next clock rising edge. Each state in the counter is encoded by the Q outputs of the D-type flip-flops, as shown in Table 5.46. The state transition table for the counter can then be created, as shown in Table 5.47.

Solution:

• Draw the State diagram.
Example 1:
dark circle that represents the initial state and ends with a bordered circle that represents the final state. States are denoted with rectangles with rounded corners. Each rectangle is labeled with the name of the state.

Solution:

• @Zawari-Khan
please post assignment file we will Happy to provide solution!

4-bit even up-counter

• @zareen Ok but now can you send me the link or file.Do you have or not?

• @Zawari-Khan
NOTE: Topic moved to related categories, so please post next time in related topics…

• Hi Zareen:
Do have the the solution of the CS302 Assignment 3 Solution.If you have so please send me on gmail at [email protected] and please contact me as soon as possible because tomorrow is the last day of submit the assignment solution.

1

3

1

2

1

3

1

2
| |