LED8 (LED Bar)
Inputs
| Pin | Type | Description |
|---|---|---|
| DataIn | bus8 | Input byte — each bit controls one LED |
Outputs
| Pin | Type | Description |
|---|
This element has no outputs.
How It Works
The LED8 is a purely visual debugging element — it displays an 8-bit value as a horizontal bar of 8 LEDs. It does not affect the circuit in any way.
LED layout, left to right:
| Position | Bit | OFF (0) | ON (1) |
|---|---|---|---|
| Leftmost | 0 (LSB) | Dark | Green |
| 2nd | 1 | Dark | Green |
| 3rd | 2 | Dark | Green |
| 4th | 3 | Dark | Green |
| 5th | 4 | Dark | Green |
| 6th | 5 | Dark | Green |
| 7th | 6 | Dark | Green |
| Rightmost | 7 (MSB) | Dark | Green |
For example, value 0x0F (binary 00001111) lights up the four leftmost LEDs. Value 0xF0 (11110000) lights up the four rightmost LEDs. Value 0xFF lights all 8 LEDs.
Usage
The LED8 is invaluable for debugging complex circuits:
- Level 15: visualize the Decoder's control signals — connect each output to a separate LED8 to see which signals are active.
- Level 27: monitor bus values during I/O operations.
Connect the DataIn pin to any 8-bit bus or individual bit signal. The LEDs update instantly on each simulation step. Use multiple LED8 elements to monitor different signals simultaneously — they have zero performance impact since they only render visuals.