wire / wire-format / shift-register
A shift register is a cascade of flip-flops that shifts data by one position per clock cycle. Types: SISO (serial in, serial out), SIPO (serial in, parallel out), PISO (parallel in, serial out), PIPO (parallel in, parallel out). Used for serial-parallel conversion, delay lines, and pseudo-random number generation (LFSR).
aka: Shift register
spec: Digital logic design
A shift register is a cascade of flip-flops that shifts data by one position per clock cycle. Types: SISO (serial in, serial out), SIPO (serial in, parallel out), PISO (parallel in, serial out), PIPO (parallel in, parallel out). Used for serial-parallel conversion, delay lines, and pseudo-random number generation (LFSR).
| field | size | meaning |
|---|---|---|
| SISO | n flip-flops | Serial In, Serial Out: data enters one bit at a time and exits one bit at a time. Delay = n cycles. |
| SIPO | n flip-flops | Serial In, Parallel Out: data enters serially, all bits available in parallel after n cycles. |
| PISO | n flip-flops | Parallel In, Serial Out: load all bits in parallel, shift out serially. |
| PIPO | n flip-flops | Parallel In, Parallel Out: load and output in parallel. (This is just a register.) |
| LFSR | n flip-flops | Linear Feedback Shift Register: XOR of selected bits fed back to input. Generates pseudo-random sequences. Used for CRC, scrambling, and BIST. |
| Universal shift register | n flip-flops + muxes | Can shift left or right, or load in parallel, based on control signals. |
example:
00 00 00 00
Shift register (placeholder)
agent: curl -H 'accept: application/json' wire.phall.io/wire-format/shift-register
or /wire-format/shift-register.json