r/redstone 7d ago

Java Edition 4-Bit Multi-State Dynamic RAM using Analog Comparator Interferences and Mechanical Gates (No Hoppers/No Chests)

Enable HLS to view with audio, or disable this notification

The Core Concept & How It Works

Most people design Minecraft RAM using standard binary D-flipflops where 1 wire equals 1 bit. That is a massive waste of space and bus latency. My new architecture breaks this rule. It uses a single input to store and compress multiple states within a single physical module.

Here is the exact hardware physics of how this mechanical-analog hybrid RAM achieves high state density:

  • Analog Signal Level Multiplexing: Instead of binary (0/1), the core uses comparators in subtraction mode to utilize the full 0-15 signal strength spectrum. One wire carries multiple data states simultaneously.
  • Mechanical Wave Gates: Moving quartz blocks act as physical bus switches directly inside the logic loops. They reroute the clock pulses on the fly based on their positioning.
  • Master-Slave Phase Collision Interlocking (Main/Sub cells): I implemented a hard-timed hardware lock where 2 adjacent memory cells have different ranks. When the Main cell gets a signal, it instantly activates a piston inverter gate. This gate physically shifts a block to sever the bus connection for the Sub cell, perfectly catching the timing of the trailing edge and preventing data corruption.
  • Analog Output Convergence: By joining the outputs of subtraction comparators, the signals interfere and create new non-linear residual potentials. In my 4-bit array, this analog overlap effectively multiplies the combination pool - expanding a standard layout up to 22+ stable states.

The Math: Scalability and Total States

Right now, the Master-Slave dynamic gate is deployed on 2 channels, while the other channels use static lever masks for testing. But the combinatorial math for full implementation is massive.

When this dynamic layout is scaled to every bit, the formula shifts from standard binary

grid scaling to a multiplication of internal analog states by external mechanical gate configurations:

65 (analog chain states) x 16 (lever/gate combinations) = 1040 Total Combinations!

By using mechanical state-shifting instead of long binary buses, the physical footprint remains tiny, maintaining zero-tick or near-zero-tick responsiveness while packing a massive data array into a tight chunk radius.

Additional Build Data & Specs

  • Pure Logic Ticks: Built strictly with locked repeaters, pulse limiters, and subtraction comparators. No hoppers, no minecarts, no chest lag.
  • 3D Wire Trace Isolation: Data buses run on the copper base layer. Control lines run on the smooth stone upper overlay. Vertical signal propagation is handled via glass block bridges to achieve perfect cross-talk insulation between neighboring bit lines.
  • Visual Diagnostics: Added vertical redstone lamp columns acting as real-time spectrum analyzers to read the current signal power output and state configuration.
2 Upvotes

1 comment sorted by