Jump to content

D Latch: Difference between revisions

From Logic World Wiki
m add component categories
Add missing navbox
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Infobox component|caption=D Latch|id=MHG.DLatch|io.propagationDelay=1|title=D Latch|io.maxInputs=2|io.minInputs=2|io.outputs=1}}The '''D Latch''' is a basic digital component who's output can be latched to the input when the latch pin is set to HIGH.
{{Infobox component
| title=D Latch
| caption=D Latch
| id=MHG.DLatch
| io.propagationDelay=1
| io.maxInputs=2
| io.minInputs=2
| io.outputs=1
}}


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.
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 will demonstrate the following behavior:
== Behavior ==
{| class="wikitable"
|+D Latch Truth Table (* = Previous State)
!Data
!Enable
!Output
|-
|LOW
|LOW
|*
|-
|LOW
|HIGH
|LOW
|-
|HIGH
|LOW
|*
|-
|HIGH
|HIGH
|HIGH
|}


== Timing ==
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.
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.


== Configurability ==
This behavior is represented by the following truth table, where <code>*</code> represents the previous state:
This component cannot be configured in the edit menu.
 
{{Truth table
| inputs=Data,Enable
| outputs=1
| caption=D Latch Truth Table
| 0 0 *
| 0 1 0
| 1 0 *
| 1 1 1
}}
 
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]].
 
{{Navbox components}}


[[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.