flandreas / antares

Digital circuit learning platform
49 stars 6 forks source link

Bit width parameter not stored in gates if default is 1 #672

Closed flandreas closed 11 months ago

flandreas commented 12 months ago

If a generic circuit has a bit width parameter BW with default value 1, and you add a logic gate to that circuit and set its bit width to "=BW", this expression is not stored when the circuit is saved. The saved representation of the circuit then contains a fixed bit width 1 for the gate.

Developer note: AbstractLogicGate::99