Barrel Shifter

A barrel shifter is a digital circuit that can shift a data word by a specified number of bits in one clock cycle. It can be implemented as a sequence of multiplexers (mux.), and in such an implementation the output of one mux is connected to the input of the next mux in a way that depends on the shift distance.

For example, take a four-bit barrel shifter, with inputs A, B, C and D. The shifter can cycle the order of the bits ABCD as DABC, CDAB, or BCDA; in this case, no bits are lost. That is, it can shift all of the outputs up to three positions to the right (and thus make any cyclic combination of A, B, C and D). The barrel shifter has a variety of applications, including being a useful component in microprocessors (alongside the ALU).

Read more about Barrel ShifterImplementation, Cost, Uses

Other articles related to "barrel shifter, shifter":

Barrel Shifter - Uses
... A common usage of a barrel shifter is in the hardware implementation of floating-point arithmetic ... This is done by subtracting the exponents, and using the barrel shifter to shift the smaller number to the right by the difference, in one cycle ... If a simple shifter were used, shifting by n bit positions would require n clock cycles ...

Famous quotes containing the word barrel:

    I am from time to time congratulating myself on my general want of success as a lecturer; apparent want of success, but is it not a real triumph? I do my work clean as I go along, and they will not be likely to want me anywhere again. So there is no danger of my repeating myself, and getting to a barrel of sermons, which you must upset, and begin again with.
    Henry David Thoreau (1817–1862)