SimonBuxx / Linkuit-Studio

A platform for learning and experimenting with logic circuits
https://linkuit.com
MIT License
20 stars 2 forks source link

Implement directed updating instead component-order updating #99

Open SimonBuxx opened 2 years ago

SimonBuxx commented 2 years ago

At the moment, component updating works in a way that all components receive an update signal in order of their creation. This leads to inconsistencies in cases like the following:

Wanted behavior:

  1. All components with no precessor are updated (go trough all components once to find them / use existing signal)
  2. Components send update signal to their successors
  3. Successors update, if all their precessors have updated

This should inductively update all components without too much processing overhead. Labeled as bug because it leads to unexpected behaviour.