A barrel shifter is a digital circuit that can shift a data word by a specified number of bits without the use of any sequential logic , only pure combinational logic , i.e. it inherently provides a binary operation . It can however in theory also be used to implement unary operations , such as logical shift left , in cases where limited by a fixed amount (e.g. for address generation unit ). One way to implement a barrel shifter is as a sequence of multiplexers where the output of one multiplexer is connected to the input of the next multiplexer in a way that depends on the shift distance. A barrel shifter is often used to shift and rotate n-bits in modern microprocessors, typically within a single clock cycle .
13-584: [REDACTED] Look up shifter in Wiktionary, the free dictionary. Shifter may refer to: Technology [ edit ] Gear stick , known in US English as "shifter", the lever of a manual or automatic automobile or truck transmission Shifter (bicycle part) , or gear lever, a bicycle part that selects which gear the chain rests on Shifter (tool) , an adjustable wrench /spanner A switcher locomotive in
26-416: 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
39-528: The ALU ). The very fastest shifters are implemented as full crossbars, in a manner similar to the 4-bit shifter depicted above, only larger. These incur the least delay, with the output always a single gate delay behind the input to be shifted (after allowing the small time needed for the shift count decoder to settle; this penalty, however, is only incurred when the shift count changes). These crossbar shifters require however n gates for n -bit shifts. Because of this,
52-403: The barrel shifter is often implemented as a cascade of parallel 2×1 multiplexers instead, which allows a large reduction in gate count, now growing only with n x log n ; the propagation delay is however larger, growing with log n (instead of being constant as with the crossbar shifter). For an 8-bit barrel shifter, two intermediate signals are used which shifts by four and two bits, or passes
65-462: The 💕 [REDACTED] Look up shifter in Wiktionary, the free dictionary. Shifter may refer to: Technology [ edit ] Gear stick , known in US English as "shifter", the lever of a manual or automatic automobile or truck transmission Shifter (bicycle part) , or gear lever, a bicycle part that selects which gear the chain rests on Shifter (tool) , an adjustable wrench /spanner A switcher locomotive in
78-469: The number of multiplexers needed are listed below: Cost of critical path in FO4 (estimated, without wire delay): A common usage of a barrel shifter is in the hardware implementation of floating-point arithmetic . For a floating-point add or subtract operation, the significands of the two numbers must be aligned, which requires shifting the smaller number to the right, increasing its exponent , until it matches
91-554: The role-playing game Shifter (Eberron) , a race in the Eberron campaign setting of the Dungeons & Dragons role-playing game Jenny Everywhere , aka The Shifter, open source webcomic character Shiphtur , pseudonym of Danny Le, Canadian League of Legends player See also [ edit ] Shift (disambiguation) Topics referred to by the same term [REDACTED] This disambiguation page lists articles associated with
104-454: The role-playing game Shifter (Eberron) , a race in the Eberron campaign setting of the Dungeons & Dragons role-playing game Jenny Everywhere , aka The Shifter, open source webcomic character Shiphtur , pseudonym of Danny Le, Canadian League of Legends player See also [ edit ] Shift (disambiguation) Topics referred to by the same term [REDACTED] This disambiguation page lists articles associated with
117-506: The same data, based on the value of S[2] and S[1]. This signal is then shifted by another multiplexer, which is controlled by S[0]: Larger barrel shifters have additional stages. The cascaded shifter has the further advantage over the full crossbar shifter of not requiring any decoding logic for the shift count. The number of multiplexers required for an n -bit word is n log 2 n {\displaystyle n\log _{2}n} . Five common word sizes and
130-480: The terminology of the Pennsylvania Railroad Barrel shifter , part of a computer processor that performs bit shifts Fiction [ edit ] A shapeshifting character in science fiction, fantasy fiction, and role-playing games Shifter ( Justice League Unlimited ) , a former superhero featured in the animated television series Shifter ( Dungeons & Dragons ) , a prestige class in
143-409: The terminology of the Pennsylvania Railroad Barrel shifter , part of a computer processor that performs bit shifts Fiction [ edit ] A shapeshifting character in science fiction, fantasy fiction, and role-playing games Shifter ( Justice League Unlimited ) , a former superhero featured in the animated television series Shifter ( Dungeons & Dragons ) , a prestige class in
SECTION 10
#1732877296306156-455: The title Shifter . If an internal link led you here, you may wish to change the link to point directly to the intended article. Retrieved from " https://en.wikipedia.org/w/index.php?title=Shifter&oldid=1172449691 " Category : Disambiguation pages Hidden categories: Short description is different from Wikidata All article disambiguation pages All disambiguation pages shifter From Misplaced Pages,
169-463: The title Shifter . If an internal link led you here, you may wish to change the link to point directly to the intended article. Retrieved from " https://en.wikipedia.org/w/index.php?title=Shifter&oldid=1172449691 " Category : Disambiguation pages Hidden categories: Short description is different from Wikidata All article disambiguation pages All disambiguation pages Barrel shifter For example, take
#305694