Example Real Switch


This component implement a bi-directional switch with two pins.

When the state of the switch changes during simulation, both nets connected to the pins are combined to form a single net, and the current signal in this combined net gets recalculated.

When pressing the real switch with the mouse, it receives the keyboard focus, which is represented by a thin blue dashed rectangle. If a real switch has the keyboard focus, it can also be operated with the Enter key as well as with the keys 0 and 1.


A real switch has two pins whose bit width is derived from the property "Bit Width".


Bit Width

The number of bits of both pins.


If this property is set (default), the switch remains in the pressed state after the user has released the mouse button (or the keyboard key that triggered the pressing of the switch).