Overview
The SR Latch is a Digital Gate capable of storing information. Redstone CG uses a variant of the SR Latch constructed from OR, AND, and NOT Gates. The SR Latch has two inputs, Set and Reset, and one output. If both inputs are powered simultaneously, the output becomes 0. Otherwise, the output is determined based on the current Redstone signal state on inputs. As so if Set pin is powered then the Output pin is powered as well. If Reset pin is powered then the Output pin is unpowered.
Boolean Logic Table
The SR Latch operates according to the following Boolean logic table:
Set | Reset | Output |
---|---|---|
0 | 0 | Q |
1 | 0 | 1 |
0 | 1 | 0 |
1 | 1 | 0 |
The Q state represents the memory of the latch. For example, if the Set pin is powered, the output becomes 1, and when both inputs are unpowered, the output remains 1. Conversely, if the Reset pin is powered, the output becomes 0.
Configuration
The input positions for the SR Latch are configurable via right-click. Pin Mark A represents the Set pin, and Pin Mark B represents the Reset pin. The correct configuration is crucial to ensure the expected behavior of the gate.