rohd icon indicating copy to clipboard operation
rohd copied to clipboard

Modify `Logic.changed` to trigger on `postTick` only after `glitch`

Open mkorbel1 opened this issue 2 years ago • 0 comments

Motivation

With the current implementation, if a signal is being listened to for changed, then it triggers an action on every preTick and postTick of the simulator. This is probably less efficient than it could be for simulator performance.

Desired solution

It could be more efficient if listening to preTick was eliminated and postTick was only listened to after a glitch which caused a change.

Alternatives considered

Leave it as-is.

mkorbel1 avatar Mar 29 '22 04:03 mkorbel1