2-Tick Pipelineable X-Y Decoder

A pipelineable X-Y matrix decoder translates horizontal and vertical coordinates into individual pixel outputs while allowing background data or other decoded pixels to pass straight through from behind. This torchless, synchronized design operates on 2-tick pulses and lets you chain multiple X-Y decoders into a single display or large ROM bank.

Redstone ComputingExpertJava Edition
2-Tick Pipelineable X-Y Decoder video tutorial

Video: Logical Redstone Tutorial 3: 2 Tick pipelineable X,Y decoder with Passthrough! by WildEngineering

How to build it

  1. Prepare Signal Strength 14 and 15 Barrels

    Fill barrels (or furnaces) with items so that one set outputs a comparator signal strength of 15 (completely full) and another set outputs signal strength 14. In creative mode, you can rename and middle-click (+NBT) these containers to place pre-filled barrels quickly.

  2. Build the Base Decoder Cell

    Create two parallel horizontal lines of building blocks for a 2-wide cell. Place a signal strength 15 barrel at the start of the cell with a comparator reading from it, flanked by 1-tick repeaters on the sides to control the X and Y input gates.

  3. Add the Signal Strength 14 Passthrough Gate

    Set the main line comparator to subtract mode. Place a side comparator pointing into it reading from a signal strength 14 barrel so that 15 minus 14 leaves a signal strength of 1, allowing back-plane data to pass through without bleeding into adjacent cells.

  4. Stack the Horizontal Y-Axis Line

    Repeat or stack the 2-wide cell horizontally 15 times to create 16 total column outputs. Because redstone dust loses power after 15 blocks, insert a repeater along the horizontal line to extend the signal and add matching repeater delay earlier in the line to keep all outputs synchronized.

  5. Build the Vertical X-Axis Ladder

    Construct a slab tower on the input side to carry the X-axis signals vertically across 16 rows. Leave a 4-block wide gap for the input lines so there is enough room to insert vertical signal extenders where the dust runs out of power.

  6. Sync Vertical Delays for 2-Tick Pulses

    Ensure every vertical branch takes exactly 3 ticks to reach its row. Where a 3-tick delay is needed, do not use a single 3-tick repeater (which drops 2-tick pulses); instead, chain a 2-tick repeater into a 1-tick repeater separated by a solid block.

  7. Stack the Full 16x16 Matrix

    Stack the horizontal rows and passthrough assemblies vertically to complete the 16x16 grid. Trigger a redstone update across the array so all comparators read their barrels properly.

  8. Optimize Output Repeaters

    Replace unnecessary 1-tick repeaters in the output and passthrough lines with solid blocks and redstone dust where adjacent solid blocks naturally isolate the lines from cross-talk. This shaves latency off the AND gate while keeping the lines isolated.

  9. Connect the 1D X and Y Decoders

    Attach your 1-dimensional X address decoder to the vertical input lines and your Y address decoder to the horizontal input lines. Because the matrix uses inverted logic, an active coordinate drops Both blocking signals to 0 and outputs the selected pixel.

How it works

This circuit combines a torchless NOR/AND matrix with analog comparator subtraction to decode 2D coordinates while supporting back-to-front data passthrough:

  • Inverted Coordinate Gating: Each pixel cell starts with a barrel outputting signal strength 15 into a comparator. Both the X-axis and Y-axis address lines feed into the side of the cell's comparators. By default, unselected address lines are held high (ON), which subtracts or blocks the signal and keeps the pixel output OFF.
  • Selecting a Pixel: When both the X line and the Y line for a specific coordinate turn OFF (low) at the same time, neither side blocks the barrel's power. The comparator outputs a high signal to light or trigger that exact X,Y pixel.
  • 1-Strength Passthrough Logic: Behind each pixel is a passthrough input fed through a comparator in subtract mode. A side comparator reading a signal strength 14 barrel subtracts 14 from incoming strength 15 signals, leaving a signal strength of 1. This weak signal can travel forward into the output repeater of that exact cell without strong-powering neighboring dust lines, effectively performing a logical OR between the current X-Y decoder and any display data or secondary decoder placed behind it.
  • 2-Tick Pipeline Syncing: Because redstone torches burn out or drop fast pulses, this design uses only repeaters and comparators. To travel across a 16x16 grid, signal extenders require 3 ticks of total delay. Using a 2-tick repeater followed by a 1-tick repeater allows 2-tick clock pulses to flow through a 3-tick delay line without being swallowed.

Tips & variations

  • Repeater Ordering Bug: When chaining repeaters to create a 3-tick delay for a 2-tick pulse, always feed the 2-tick repeater into the 1-tick repeater (or test your orientation with a 2-tick clock first). Running a 1-tick repeater into a 2-tick repeater can cause short pulses to be blocked depending on how the signal enters a comparator.
  • Save an Extra Tick: As noted by the creator, you can speed up the AND gate by removing the extra repeater coming from the decoded Y address and moving the Y decoder 1 block closer to the matrix.
  • Pre-fill Barrels with NBT: In Creative mode, fill a barrel to signal strength 14 or 15, rename it in an anvil to "SS14" or "SS15", and hold Ctrl + Middle Click to copy the block with its inventory intact. Placing an empty barrel by mistake will break the cell logic.

Frequently asked questions

Why use barrels with signal strength 14 and 15 instead of redstone torches?
Redstone torches add delay, invert signals with asymmetrical timing, and burn out when pulsed rapidly. Using barrels and comparators makes the entire matrix torchless, silent, and capable of pipelining 2-tick pulses.
What does 'passthrough' mean on an X-Y decoder?
Passthrough allows a signal from behind the decoder matrix to travel straight through to the front display without interfering with the current decoder. This lets you stack multiple X-Y decoders behind a single screen to draw multiple pixels simultaneously or overlay a pixel onto a background bitmap.
Why can't I use a single 3-tick repeater to sync the lines?
A single repeater set to 3 or 4 ticks will ignore or stretch a 2-tick input pulse, breaking the 2-tick pipeline. Splitting the 3-tick delay into a 2-tick repeater and a 1-tick repeater preserves the 2-tick pulse width.

Components used

More decoder / encoder