SetReset

Stores which out of two boolean signals last had a positive edge. If set was the last signal to have a positive edge, that is switched from 0 to 1, then the resulting signal o is 1. If reset was the last signal to have a positive edge, then the resulting signal o is 0. If both have a positive edge at the same time, reset (0) will have priority. If no signal has yet had a positive edge, the resulting signal is 0.

Blocks tree path

Standard\Dynamic\SetReset

Inputs

Name Type Description
set bool The boolean signal whose positive edges sets the resulting signal o to 1.
reset bool The boolean signal whose positive edges sets the resulting signal o to 0.

Outputs

Name Type Description
o bool 1 if set was the last signal to have a positive edge, 0 otherwise.