Components / Wiring
Tunnel in Logisim — How to Connect Wires Without Crossing
Connect wires across a schematic by name without drawing long crossing lines; all Tunnels with the same case-sensitive Label share one electrical net.
| Library | Wiring |
|---|---|
| Type name | Tunnel |
| Pins and defaults | pin0, width 1..32, label NET0 |
How the Tunnel Works in Logisim
A Tunnel lets you teleport a signal across your schematic without drawing long, overlapping wires. During netlist compilation, Logisim merges every Tunnel on the sheet that shares the exact same non-empty, case-sensitive Label into a single electrical net, just as if you had drawn an invisible copper wire between their pins.
To use a Tunnel, place one Tunnel at the source wire (for example, the output of a Clock or an Input Pin), set its Label attribute to a descriptive name such as CLK or BUS_A, and then place one or more matching Tunnels with the identical Label wherever that signal is needed.
Every Tunnel sharing a label must use the same Data Bits (width) attribute so the bus lines align bit-for-bit. Because Tunnels merge directly into one electrical net, only one active output should drive a given Tunnel network at a time; if two different gates drive 0 and 1 into Tunnels with the same label simultaneously, the entire named net turns red (E) from a short-circuit conflict.
Tip: Use Tunnels for global signals like CLK, RST, and multi-bit address buses so your combinational logic stays readable without wire clutter.
Tunnel Pins & Pinout
| Pin | Direction | Width | Location & Role |
|---|---|---|---|
| pin0 (NET) | Bidirectional net pin | 1–32 bits | Located at (0, 0). Connects the attached wire to every other Tunnel in the circuit that has the exact same case-sensitive Label. |
Tunnel Truth Table & Behavior
| Tunnel A Label | Tunnel B Label | Drivers on Net | Resulting Behavior |
|---|---|---|---|
| CLK | CLK | 1 Clock source, 4 Flip-Flop inputs | All 5 points share one net and toggle together cleanly |
| CLK | clk | 1 Clock source | Not connected (Tunnel labels are case-sensitive) |
| DATA | DATA | Two gates driving 0 and 1 at once | Red E conflict across all DATA Tunnels (short circuit) |