RedstoneChips

shiftregister

A SIPO (Serial-In-Parallel-Out) shift register. Can be built with any word size determined by the number of output pins. Each time the clock input is turned on, the register shifts one bit and inserts the current value of the data pin. The shiftregister will shift to the left by default. The 1st sign argument determines the shift direction - left or right.

An optional reset pin can be added. When it’s triggered the register is cleared.

on Wikipedia

source code


I/O setup

Sign text

  1. shiftregister
  2. [left|right] (optional)

a 4-bit shiftregister

Version history: Added to BasicCircuits 0.1

Fork me on GitHub