Skip to main content

Module addressable_shift_register

Module addressable_shift_register 

Source
Expand description

Addressable shift register: a fixed-length delay line whose every stage can be read or written by address, the building block of tapped delay lines, FIR structures and LFSR-like blocks.

Address 0 is the newest stage and address capacity - 1 the oldest. Pushing a value shifts every stage by one (the old contents move to higher addresses) and returns the value that falls off the end. The implementation is a circular buffer, so a push is O(1) regardless of length.

See the book entry DSP: synchronisation, communications, radar and controls.

Structsยง

AddressableShiftRegister
A shift register of capacity stages with random access to every stage.