32.4.2.6 Sequential Logic

Each LUT pair can be connected to the internal sequential logic, which can be configured to operate as a D flip-flop, JK flip-flop, gated D latch, or RS latch by configuring the Sequential Selection bits in the corresponding Sequential Control (SEQCTRL) register. Before using sequential logic, the GCLK_CCL clock must be enabled, and, if required, each LUT filter or edge detector should also be enabled.

Gated D Flip-Flop (DFF)

When D flip-flop (DFF) mode is selected, the D input is driven by the even LUT output (LUT0 or LUT2), and the G input is driven by the odd LUT output (LUT1 or LUT3), as illustrated in the figure below.

Figure 32-14. D Flip-Flop

The flip-flop output (OUT) is updated on the rising edge of the GCLK_CCL, as shown in the table below.

Table 32-3. DFF Characteristics
RGDOUT
1XXClear
011Set
0Clear
0XHold state (no change)

JK Flip-Flop (JK)

When this configuration is selected, the J input is driven by the even LUT output (LUT0 or LUT2), and the K input is driven by the odd LUT output (LUT1 or LUT3), as illustrated in the figure below.

Figure 32-15. JK Flip Flop

The flip-flop output (OUT) is updated on the rising edge of GCLK_CCL, as shown in the table below.

Table 32-4. JK Characteristics
RJKOUT
1XXClear
000Hold state (no change)
001Clear
010Set
011Toggle

Gated D Latch (DLATCH)

When DLATCH is selected, the D input is driven by the even LUT output (LUT0 or LUT2), and the G input is driven by the odd LUT output (LUT1 or LUT3), as illustrated in the figure below.

Figure 32-16. D Latch

The latch output (OUT) is updated as shown in the table below.

Table 32-5. D Latch Characteristics
GDOUT
0XHold state (no change)
10Clear
11Set

RS Latch (RS)

When this configuration is selected, the S input is driven by the even LUT output (LUT0 or LUT2), and the R input is driven by the odd LUT output (LUT1 or LUT3), as illustrated in the figure below.

Figure 32-17. RS Latch

The latch output (OUT) is updated as shown in the table below.

Table 32-6. RS Latch Characteristics
SROUT
00Hold state (no change)
01Clear
10Set
11Forbidden state