
Space Brain detects bursts in unsigned 8-bit vibration samples. Each of three replicas has its own two-flop synchronizer for the asynchronous data-valid strobe, its own edge detector and its own capture register for the parallel sample. Every replica acts on the majority of the three synchronizer outputs, so all three see the same strobe. Each Delta/LIF replica compares its captured sample with the voted previous sample. A qualifying change adds 24 counts to the leaky, saturating membrane. The alarm is high when the membrane reaches the selected threshold. The next valid sample advances all replicas from the majority-voted state to repair an upset.
No flip-flop is shared between replicas. In simulation, a transient single-event upset (SEU) that flips any one stored bit never changes a voted output. The majority voters, the input pins with their buffers, and the clock and reset trees are shared single points of failure. The 1x1 layout uses no spacing constraint for multiple-bit upsets (MBUs), so flip-flops of one TMR triplet can sit within a few micrometres of each other.
The mismatch flag is high while the replicas disagree and clears at the next valid sample. It is not sticky. An upset in one synchronizer is removed by the vote and does not raise it. Reset clears the stored previous sample, so the first sample after reset is compared with zero and usually produces a spike.
A self-test mode makes the redundancy visible without radiation. With uio[7:5] set to 100, a valid sample is loaded into the membrane of every replica selected by uio[1] (Replica A), uio[2] (Replica B) and uio[3] (Replica C). Unselected replicas hold, the stored previous sample holds, and no spike is produced. The 16 codes with that prefix do not run the detector.
Apply a clock to clk, pulse active-low rst_n, and set the configuration on uio[7:1]. With uio[7:1] set to 7'h38, the Delta threshold is 16 counts, the leak shift is 4, and the alarm threshold is 64. Drive the unsigned amplitude on ui[7:0] and raise uio[0]. Keep ui[7:0] stable for at least four clock periods after uio[0] rises. Keep uio[0] high for at least two clock periods and low for at least two. The outputs update four rising clock edges after the strobe is first sampled high. Change uio[7:1] only while uio[0] is low and at least five clock periods after its last rising edge. The reference test uses a strobe high time of four clock cycles and 20 cycles between rising edges.
Read the voted alarm on uo[0], Replica A's raw alarm on uo[1], replica disagreement on uo[2], the voted Delta spike on uo[3], and the top four bits of Replica A's membrane on uo[7:4]. The spike is a pulse one clock period wide. uo[1] and uo[7:4] come from Replica A alone and are not voted.
From reset, the detector with leak code 00 (uio[7:5] set to 000) keeps the membrane at 48 or below, so it never alarms, and leak code 01 on uio[6:5] peaks at 96, below the 128 threshold. A membrane left high by another setting can still alarm for a few samples.
To watch the redundancy work, reset the chip and send these samples in order. Each step gives uio_in with the strobe low, then ui_in, then the uo_out to expect.
0x8E, 0x20, 0x20: all three replicas hold 0x20.0x82, 0xF0, 0xF6: Replica A is corrupted. Its raw alarm and the mismatch flag are high, and the voted alarm stays low.0x80, any value, 0xF6: no replica is selected, so the disagreement stays.0x70, 0x00, 0x10: one normal sample repairs Replica A.0x8E, 0x20, 0x20: all three replicas hold 0x20 again.0x8C, 0xF0, 0x25: Replicas B and C are corrupted and win the vote. The voted alarm is high while Replica A's raw alarm is low.0x70, 0x00, 0xE3: the wrong value is now unanimous. Two upsets at once are more than TMR can mask.Use an external digital pattern source or an ADC with logic that supplies the sample bus and valid strobe at the board's I/O voltage.
| # | Input | Output | Bidirectional |
|---|---|---|---|
| 0 | sensor_amplitude[0] | alarm_tmr_voted | ext_valid_async |
| 1 | sensor_amplitude[1] | alarm_raw_a | cfg_delta_th[0] |
| 2 | sensor_amplitude[2] | tmr_mismatch_flag | cfg_delta_th[1] |
| 3 | sensor_amplitude[3] | spike_pulse_voted | cfg_delta_th[2] |
| 4 | sensor_amplitude[4] | v_mem_top4[0] | cfg_delta_th[3] |
| 5 | sensor_amplitude[5] | v_mem_top4[1] | cfg_leak_shift[0] |
| 6 | sensor_amplitude[6] | v_mem_top4[2] | cfg_leak_shift[1] |
| 7 | sensor_amplitude[7] | v_mem_top4[3] | cfg_alarm_th_sel |