Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

SRGATE - Set Reset Gate

An SRGATE block produces either a high (SET) or low (RST) output. It has configurable inputs and an option to force its output independently. Both Set and Rst inputs can be selected from bit bus, and the active-edge of its inputs is configurable. An enable signal allows the block to ignore its inputs.

Fields

NameTypeDescription
ENABLEbit_muxWhether to listen to SET/RST events
SETbit_muxA falling/rising edge sets the output to 1
RSTbit_muxa falling/rising edge resets the output to 0
WHEN_DISABLEDparam enumWhat to do with the output when Enable is low
SET_EDGEparam enumOutput set edge
RST_EDGEparam enumOutput reset edge
FORCE_SETwrite actionSet output to 1
FORCE_RSTwrite actionReset output to 0
OUTbit_outoutput value

Normal conditions

The normal behaviour is to set the output OUT on the configured edge of the SET or RESET input.

Set on rising EdgeSet on falling EdgeSet on either Edge RST defaultReset on rising EdgeReset on falling EdgeReset on either Edge SET falling

Disabling the block

The default behaviour is to force the block output low when disabled, ignoring any SET/RST events:

Output low while disabled

The disabled value can also be set high:

Output high while disabled

Or left at its current value:

Output left at current while disabled

Active edge configure conditions

if the active edge is ‘rising’ then reset to ‘falling’ at the same time as a rising edge on the SET input, the block will ignore the rising edge and set the output OUT on the falling edge of the SET input.

Rising SET with SET_EDGE reconfigure

If the active edge changes to ‘falling’ at the same time as a falling edge on the SET input, the output OUT will be set following this.

Falling SET with SET_EDGE reconfigureFalling RST with with reset edge reconfigure

Set-reset conditions

When determining the output if two values are set simultaneously, FORCE_SET and FORCE_RESET registers take priority over the input bus, and reset takes priority over set.

Set-reset conditions