O'Reilly logo

Introduction to Digital Systems: Modeling, Synthesis, and Simulation Using VHDL by Mohammed Ferdjallah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

8.4 FLIP-FLOPS

Flip-flops are synchronous bistable storage devices capable of storing one bit. The term synchronous means that the output state changes only at a specified point on a triggering input called the clock signal. That is, the output changes are synchronized with the clock signal. A basic flip-flop consists of two parts: a primary latch (master) and a secondary latch (slave). A flip-flop is also known as a two-section flip-flop. The input latch is operating as the master section and the output latch is slaved to the master during half of each clock cycle. We use the terms primary and secondary instead of master and slave.

images

Figure 8.13 VHDL Code Implementation of a Gated D Latch

8.4.1 SR Flip-Flop

An SR flip-flop consists of two identical gated SR latches. However, the inverter connected between the two Clk inputs ensures that the two sections will be enabled during opposite half-cycles of the clock signal. This is the key to the operation of this flip-flop circuit. Outputs Q and images of the primary SR latch are connected to the inputs of the secondary SR latch. The primary SR latch is also called master, and the secondary is called slave. The logic circuit of an SR flip-flop is illustrated in Figure 8.14.

The two latches use a common clock signal, but an inverter gate is connected ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required