Lab 4: Flip-flop Flavors

From Microlab Classes
Revision as of 15:12, 31 March 2025 by Lawrence Quizon (talk | contribs)
Jump to navigation Jump to search

Background

In the lectures, we have discussed the different types of flip-flops, as shown in Figure N.

Comparison of D, T, SR, and JK Flip-Flops with Example States

Connecting with other classes, flip-flops are more generally considered bistable multivibrators! They have two stable states and can switch between them based on input signals. The only two conditions to become a fully functioning flip-flop useful to implement any synchronous circuit is to be triggerable relative to a clock signal, and to be able to switch states between 1 and 0 (flip-flopping).

The characteristic tables of each flavor is as follows:

D Q(t+1)
0 0
1 1
J K Q(t+1)
0 0 Q(t)
0 1 0
1 0 1
1 1 Q'(t)
T Q(t+1)
0 Q(t)
1 Q'(t)
S R Q(t+1)
0 0 Q(t)
0 1 0
1 0 1
1 1 Undefined/Invalid

Instructions

Due to the fact that flip-flops only need to be able to switch between 1 and 0 to be able to implement any logic, it is possible to create any flip-flop flavor from any other flip-flop flavor. For this assignment, you are asked to implement D flip-flops using the three other flavors of flip-flops.

  1. Download the Lab 4 template in UVLe.
  2. Inside the dffButJK block, implement a D flip-flop with a JK flip-flop.
  3. Inside the dffButT block, implement a D flip-flop with a T flip-flop.
  4. Inside the dffButSR block, implement a D flip-flop with a SR flip-flop.
dffButJK block template

Notes

  • Again, do not move any input or output pins in the template.