SCPS301 September 2024 TPLD801-Q1
ADVANCE INFORMATION
This configurable use logic block can serve as either a 2-bit LUT, or as a D flip-flop or latch.
When used to implement LUT functions, the 2-bit LUT takes in two input signals from the connection mux and produces a single output, which goes back into the connection mux. These LUTs can be configured to any 2-input user defined function, including the following standard digital logic functions: AND, NAND, OR, NOR, XOR, XNOR, INV.
Table 7-11 shows the truth table for a 2-bit LUT.
IN1 | IN0 | OUT |
---|---|---|
0 | 0 | User defined |
0 | 1 | |
1 | 0 | |
1 | 1 |
When used to implement a sequential logic element, the two input signals from the connection mux go to the data (D) and clock (CLK) inputs of the flip-flop or latch, with the output going back to the connection mux. This macro-cell has initial state parameters, as well as clock and output polarity parameters.
The operation of the D flip-flop/latch will follow the functional descriptions below:
The clock polarity is configurable and can be set to non-inverted (CLKPOL = 0, CLK) or inverted (CLKPOL = 1, nCLK).
DFF with CLK: CLK is rising edge triggered, then Q = D; otherwise Q will not change.
DFF with nCLK: CLK is falling edge triggered, then Q = D; otherwise Q will not change.
Latch with CLK: when CLK is Low, then Q = D; otherwise Q remains its previous value (input D has no effect on the output, when CLK is High).
Latch with nCLK: when CLK is High, then Q = D; otherwise Q remains its previous value (input D has no effect on the output, when CLK is Low).
The output polarity is configurable and can be set to non-inverted (Q) or inverted (nQ).
Table 7-8 and Table 7-9 show the truth tables for the D flip-flop and D latch, respectively.
CLKPOL | CLK | D | Q | nQ |
---|---|---|---|---|
0 | ↓ | 0 | Q0 | nQ0 |
↑ | 0 | 0 | 1 | |
↓ | 1 | Q0 | nQ0 | |
↑ | 1 | 1 | 0 | |
1 | ↓ | 0 | 0 | 1 |
↑ | 0 | Q0 | nQ0 | |
↓ | 1 | 1 | 0 | |
↑ | 1 | Q0 | nQ0 |
CLKPOL | CLK | D | Q | nQ |
---|---|---|---|---|
0 | 0 | 0 | 0 | 1 |
1 | 0 | Q0 | nQ0 | |
0 | 1 | 1 | 0 | |
1 | 1 | Q0 | nQ0 | |
1 | 0 | 0 | Q0 | nQ0 |
1 | 0 | 0 | 1 | |
0 | 1 | Q0 | nQ0 | |
1 | 1 | 1 | 0 |