
The In-Situ Self-Configuring Protocol Engine (ISCPE-10) (tt_um_lurayd_iscpe) is an ultra-compact (~7,520 um^2 cell area, 1x1 Sky130 tile), CPU-less and SRAM-less hardware serial protocol inference, decoding, mimicry, transponder, and fault-injection ASIC running at 50 MHz.
Instead of capturing raw signal timestamps into RAM and relying on a microcontroller to reverse-engineer framing in software, ISCPE-10 performs in-situ structural inference directly inside hardware registers and reconfigures its own transceiver datapath in a single clock cycle:
Hysteresis EMI Deglitching & Auto-Prescaling:
WIRE_DATA (uio[0]) passes through a 2-FF synchronizer and symmetric 3-sample hysteresis filter (000 -> 0, 111 -> 1), rejecting 1- and 2-cycle EMI glitches without distorting valid pulse widths./1, /2, /4, /16) using a single shared magnitude comparator and zero hardware dividers.Four Physical Hardware LEARN Modes (CMD_START_LEARN):
00): Measures minimum bit period T_BIT, locks idle polarity, resynchronizes phase on mid-frame edges, and trims trailing idle bits to infer exact frame length (1..10 bits, such as UART 8N1 or custom framed sensors).01): Infers short pulse width (T_SPLIT0), long pulse width (T_SPLIT1), and slot period (T_BIT) for duty-cycle coded buses (WS2812 / 1-Wire style).10): Simultaneously learns primary NRZ framing on WIRE_DATA and responder turnaround latency (RESP_DELAY) on WIRE_AUX (uio[1]).11): Captures CPOL and SCLK period on WIRE_AUX while sampling WIRE_DATA (MOSI) to infer frame width and static command masks on SPI-like buses.In-Situ Bitwise Invariant Separation (Zero Extra Mask Flip-Flops):
ACC_AND <= ACC_AND & FRAME, ACC_OR <= ACC_OR | FRAME), deriving fixed framing/header bits vs. variable payload bits combinationally:
STATIC_MASK = ~(ACC_AND ^ ACC_OR) (1 = fixed header/start/stop bit, 0 = variable payload bit)STATIC_VAL = ACC_ANDSingle-Cycle Self-Reconfiguration (RX_MATCH, TX_MIMIC, AUTO_REPLY, FUZZ):
RX_MATCH: Validates static bits against STATIC_VAL (with programmable error tolerance ERR_TOL), resynchronizes on data edges, and shifts extracted variable payload bits directly onto uo_out[7:0], asserting RX_VALID (uio[5]) or ERR_FLAG (uio[6]).TX_MIMIC: Synthesizes valid NRZ, PWM, Open-Drain, or Master SCLK+MOSI frames by merging host payload bytes (ui_in[7:0]) into variable bit slots while inserting learned static bits automatically. An 8-bit shadow buffer (TX_READY on uio[7]) chains back-to-back frames with zero dead clock cycles.AUTO_REPLY: Autonomous hardware transponder—listens in RX_MATCH, waits RESP_DELAY ticks upon valid match, and transmits a mimic response frame with safe bus-turnaround blanking and zero MCU intervention.FUZZ: Injects deterministic bit-flip (CMD_FUZZ_BIT) or 2x pulse-stretch (CMD_FUZZ_TIME) faults on any selected bit 0..7 for hardware robustness verification.A rising edge on HOST_WR (uio[2]) latches ui_in[7:0]. When HOST_CMD (uio[3]) is 1, ui_in[7:4] selects the command opcode and ui_in[3:0] provides the immediate argument:
ui_in[7:4] |
Command | ui_in[3:0] Argument |
|---|---|---|
0x0 |
CMD_SEL_REG |
reg_sel[1:0] readout mux on uo_out[7:0] |
0x1 |
CMD_SET_IDLE |
Stop active transfer, enter MODE_IDLE, set reg_sel[1:0] |
0x2 |
CMD_START_LEARN |
[3] = len8_mode (0:10b, 1:8b), [1:0] = 00:NRZ, 01:PWM, 10:NRZ+RESP, 11:SYNC_CLK |
0x3 |
CMD_MODE_RX_MATCH |
[2] = auto_resync, [0] = err_tol (0..1) |
0x4 |
CMD_MODE_TX_MIMIC |
[1] = drive_aux_clk, [0] = open_drain |
0x5 |
CMD_MODE_AUTO_REP |
[1] = err_tol, [0] = open_drain |
0x6 |
CMD_FUZZ_BIT |
fuzz_bit[2:0] (0..7 bit-invert fault) |
0x8 |
CMD_FUZZ_OFF |
Disable fault injection |
When HOST_CMD (uio[3]) is 0, HOST_WR queues an 8-bit TX payload byte into tx_shadow[7:0]. uo_out[7:0] outputs the register selected by reg_sel[1:0]:
reg_sel |
uo_out[7:0] Readback |
|---|---|
0 |
Extracted 8-bit RX_PAYLOAD |
1 |
{presc[1:0], learned_len[3:0], pwm_mode, sync_mode} |
2 |
{1'b0, t_bit[6:0]} (inferred bit or slot period) |
3 |
static_mask[7:0] (lower 8 bits of structural invariant mask) |
WIRE_DATA (uio[0]) (and SCLK or responder wire to WIRE_AUX uio[1] if used).HOST_CMD=1 (uio[3]=1), ui_in=0x20 (Async NRZ), and pulse HOST_WR (uio[2]).LEARN_DONE (uio[4]) goes high; read learned_len, t_bit, and static_mask via CMD_SEL_REG (ui_in = 0x01..0x03).CMD_MODE_RX_MATCH (ui_in = 0x34) and CMD_SEL_REG 0 (ui_in = 0x00): matching frames assert RX_VALID (uio[5]) and present the stripped 8-bit payload on uo_out[7:0].CMD_MODE_TX_MIMIC (ui_in = 0x40) and write bytes with HOST_CMD=0 whenever TX_READY (uio[7]) is high for zero-gap streaming, or issue CMD_MODE_AUTO_REP (ui_in = 0x50) for autonomous transponder replies.No external hardware is required—the onboard RP2040/RP2350 microcontroller on the Tiny Tapeout demo board can drive and observe all signals directly. Optional 3.3 V UART sensors, WS2812 LED chains, SPI peripherals, or a logic analyzer can be wired to uio[0] and uio[1] (with a 4.7 kOhm pull-up on uio[0] when open_drain=1).
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | HOST_DIN0 | HOST_DOUT0 | WIRE_DATA |
| 1 | HOST_DIN1 | HOST_DOUT1 | WIRE_AUX |
| 2 | HOST_DIN2 | HOST_DOUT2 | HOST_WR |
| 3 | HOST_DIN3 | HOST_DOUT3 | HOST_CMD |
| 4 | HOST_DIN4 | HOST_DOUT4 | LEARN_DONE |
| 5 | HOST_DIN5 | HOST_DOUT5 | RX_VALID |
| 6 | HOST_DIN6 | HOST_DOUT6 | ERR_FLAG |
| 7 | HOST_DIN7 | HOST_DOUT7 | TX_READY |