Part A: Design a BCD (Binary Coded Decimal) counter that counts from 0, 1, 2, ..9 then goes back to 0 and repeats. Using D flip-flops in this sequential circuit.
Each clock cycle, the counts will increase by 1 ; when it reaches 9 , it will go back to 0 next clock cycle and repeat the process.
Design Procedrue:
Draw the state diagram of the is BCD counter.
Fill the state diagram below. (Left column represents present state, and the right column represents next state)
Draw the circuit at gate level using logicly.
draw the next state logic using logic gates based on the 4 boolean functions from step 3, label outputs as D3, D2, D1, D0.
place 4 D flip flops.
Connect all the PRE' of 4 D flip flops with a toggle switch. Connect the CLR' of 4 D flip flops with another toggle switch. Set both switches to HIGH.
Don't forget to name the toggle switch in the field of "Export name" of the "toggle switch properties" pop up panel:
Then connect each output of next state logic to each input D of D flip flop, respectively.
Drag and clock from the left panel and place on the circuit. Connect the clk signal ">" of all the 4D flip flops with the same clock input.
Drag the "4-digit" display from the left panel.
Connect the output Q of 4 D flip-flops to the inputs of this 4-digit display appropriately.