Tunnels and Splitters in Logisim-evolution: Clean Bus Wiring and Bit Fanout

Direct Answer: Tunnels and Splitters in Logisim-evolution

Tunnels (Wiring → Tunnel) create invisible wireless electrical connections between any two points inside the same subcircuit that share an identical case-sensitive Label and matching Data Bits—eliminating tangled crossing wires in CPUs and ALUs. Splitters (Wiring → Splitter) bundle individual 1-bit wires into multi-bit buses (up to 32 bits) or extract arbitrary bit slices (such as Opcode bits [31:26] from a 32-bit MIPS instruction) with zero propagation delay.

Splitter Configuration Cheat Sheet for Common Buses

Use Case Bit Width In Fan Out Bit-to-Pin Mapping
4-Bit Bundle / Unpack44Bit 0 → 0, Bit 1 → 1, Bit 2 → 2, Bit 3 → 3
Extract MSB Sign Bit (8-bit)82Bits 0-6 → 0, Bit 7 → 1
MIPS Word Alignment (PC[31:2])322Bits 0-1 → None, Bits 2-31 → 0
Shift Left by 1 (Zero-Pad LSB)82Input: Bits 0-6 → 0; Output: 0 → Bit 0, Bits 1-7 → 0

Step by Step Bus Routing with Tunnels, Splitters, and Bit Extenders

Using Tunnels for Global Clocks and Buses

Place one Tunnel on your CLK source and name it CLK. Duplicate it (Ctrl+D) next to every Register or Flip-Flop—any matching Tunnel in the same subcircuit receives the exact signal automatically.

Using Bit Extenders for Width Conversion

Instead of manually splitting and wiring 16 zero wires to expand a 16-bit immediate to 32 bits, place Wiring → Bit Extender, set Data Bits In = 16, Data Bits Out = 32, and choose Sign or Zero extension.

Frequent Traps with Tunnels and Splitters

Trap 1: Multiple Drivers on One Tunnel Label

Fix: Never connect two outputs to tunnels with the same label—the entire net turns Red (short circuit).

Trap 2: Expecting Tunnels to Cross Subcircuits

Fix: Tunnels are strictly local to one schematic page; pass signals into subcircuits via explicit Input/Output Pins.

Trap 3: Case-Sensitivity Typos

Fix: clk and CLK do not connect; match exact capitalization across every Tunnel.

Trap 4: Splitter Bit-Width Mismatch (Orange Wire)

Fix: Align the Tunnel’s Data Bits and the Splitter’s Bit Width In properties before wiring.

Curriculum Progression from Clean Wiring to CPU Design

Frequently Asked Questions About Tunnels and Splitters

How do I pad a 4-bit bus into an 8-bit bus?

Use Wiring → Bit Extender with Data Bits In = 4 and Data Bits Out = 8.

Do Tunnels and Splitters work when exporting to Verilog or VHDL?

Yes. Logisim-evolution’s HDL exporter compiles Tunnels into named intermediate wire/signal nets and Splitters into bit-slice assignments.

Can a Splitter reverse bit order (Endianness)?

Yes. Place two Splitters back-to-back and manually assign Bit 0 → 3, Bit 1 → 2, Bit 2 → 1, Bit 3 → 0.

Can I change the direction a Splitter faces?

Yes, use the Arrow Keys or set Facing and Appearance (Left-handed/Right-handed/Centered) in the Attribute Table.

Similar Posts