Jump to content

D Latch: Difference between revisions

From Logic World Wiki
fix wording
Add missing navbox
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
}}
}}


The '''D Latch''' is a basic digital component whose output can be latched to the input when the latch pin is set to HIGH.
The '''D Latch''' is a [[component]] used for [[digital logic]]. The state of its output can be "latched", or set, to a certain state. This is useful for saving data and reading it back later.


The D Latch has an input on the side (data), an input on the top (enable), and an output on the top. The input on the side is a state to be latched; while the enable input is HIGH, the output state will be latched to the input's state.
== Behavior ==


The D Latch will demonstrate the following behavior, where <code>*</code> represents the previous state:
The D Latch has an input on the side ("data"), an input on the top ("enable"), and an output on the top. The input on the side is a state to be latched; when the enable input is {{ON}}, the output state will be latched to the enable input's state.
 
This behavior is represented by the following truth table, where <code>*</code> represents the previous state:


{{Truth table
{{Truth table
Line 25: Line 27:
}}
}}


== Timing ==
The D Latch takes one [[tick]] to update the state of its output after a change to the state of its inputs.
The D Latch has a latency of 1 tick, so in the instance when the enable pin is HIGH, the output will become latched to the data input 1 tick later.
 
== Placement ==
 
D Latches have two attachment points, one for each square covered by the body of the component. These attachment points can be placed in the center of a [[Circuit Board]] square or on top of a [[Mount]].


== Configurability ==
{{Navbox components}}
This component cannot be configured in the edit menu.


[[Category:Vanilla components]]
[[Category:Vanilla components]]
[[Category:Circuitry components]]
[[Category:Circuitry components]]

Latest revision as of 00:53, 9 September 2025

D Latch

D Latch
Component info
Internal ID MHG.DLatch
Configurable No
Input and output
Input count 2
Output count 1
Propagation delay 1 tick

The D Latch is a component used for digital logic. The state of its output can be "latched", or set, to a certain state. This is useful for saving data and reading it back later.

Behavior

The D Latch has an input on the side ("data"), an input on the top ("enable"), and an output on the top. The input on the side is a state to be latched; when the enable input is Template:ON, the output state will be latched to the enable input's state.

This behavior is represented by the following truth table, where * represents the previous state:

D Latch Truth Table
DataEnableOutput
00*
010
10*
111

The D Latch takes one tick to update the state of its output after a change to the state of its inputs.

Placement

D Latches have two attachment points, one for each square covered by the body of the component. These attachment points can be placed in the center of a Circuit Board square or on top of a Mount.