D latch flip-flop
This block copies its input state ( D) on the output ( Q) when the enable input ( C) is high and in this configuration it appears as transparent. The !Q output is the logical negation of Q
When the enable input goes low, the output keeps its previous state and acts like a memory.
This block can be typically used in I/O ports.
The truth table of the block is the following ones:
No changes Reset Set où * `X`* signifie “indifférent” et * `Q n-1 `* l’état antérieur de * `Q n `* .
The block supports the following types :
Inputs:
- D: scalar. Scilab’s int8 data type only.
- C: scalar. Scilab’s real double.
A positive input is considered as logical 1, a negative or a null input as logical 0.
Ouputs: scalar. Scilab’s int8 data type.
The following figure shows a simple use case of the DLATCH block with its timing diagram. Open this example in Xcos