Builds

Binary Palindrome Detector

A physical digital logic circuit built using TTL logic gates (7486, 7404, 7408) to evaluate bit symmetry.

Binary Palindrome Detector Visual Overview

The Challenge — Zero-Clock Bit Symmetry

In software, checking if a string reads identically forward and backward is a trivial task—a simple loop checking indices from both ends. In hardware, performing this evaluation without a CPU, clock cycles, or instruction sets requires a different way of thinking. The problem was to evaluate a 4-bit binary input in real-time using purely combinational logic gates, minimizing delay and logic gate footprint.

The Logic — Karnaugh Reduction & Gate Economy

To avoid wasting physical ICs on redundant logic paths, I drafted the truth table for the 4-bit palindrome expression (where input bit 0 equals bit 3, and bit 1 equals bit 2). Mapping these inputs onto Karnaugh maps allowed me to reduce the Boolean expressions to their simplest forms.

"Instead of wiring a convoluted array of gates, the math pointed to simple equivalence. I used XOR gates (IC 7486) to compare bit pairs (B0-B3 and B1-B2), then passed the inverted signals into an AND gate (IC 7408) for output convergence."

This reduction kept the hardware build clean, utilizing just three TTL chips instead of a sprawling board of redundant wiring.

The Build — Breadboard Wiring & Indicator LEDs

I assembled the physical circuit on a standard breadboard using logic gates (ICs 7486, 7404, and 7408). The circuit receives inputs from four manual toggle switches and routes the output signal to a single red LED indicator, which illuminates immediately when a symmetric binary state is selected.

Logic Gate Trainer Setup
System State Archived
Architecture Combinational Logic
Deployment TTL Hardware Trainer

Physical Debugging — Floating Pins & Signal Noise

Software errors output a compiler warning or log details to a terminal. Hardware debugging is completely silent. During first power-up, the output LED behaved randomly, flickering even when inputs were stable.

"A floating input pin acts like a tiny antenna, picking up electrostatic charge and fluctuating between logical high and low. Diagnosing this taught me the discipline of hard-wiring unused gate pins to ground."

Tracing logic propagation gate-by-gate with a logic probe and a multimeter taught me to respect the physical constraints of signals—something that compiler abstractions completely hide.

Retrospective — Schematic Routing & Color Coding

While the circuit worked, my wiring layout was a messy 'rats nest' of raw jumpers. If I rebuilt this, I would draw a strict, physical pinout diagram beforehand and use color-coded wires (e.g. red for VCC, black for GND, yellow for input signals, and blue for intermediate gate states) to make the physical board readable at a glance.