why do we use barrel shifter

Status
Not open for further replies.

fahum

Junior Member level 2
Joined
Jun 19, 2012
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,416
why do we use barrel shifter when we can simply shift the data using wire shift ? like this in VHDL :

B <= A(31 downto 0 ) & Zeros (31 downto 0) ;
 

I'm assuming your code is trying to shift a 32-bit word left 32 bits into a 64-bit word, right?

A barrel shifter is a PHYSICAL realization IMPLIED by your VHDL code.
 

I'm assuming your code is trying to shift a 32-bit word left 32 bits into a 64-bit word, right?

A barrel shifter is a PHYSICAL realization IMPLIED by your VHDL code.

barrel shifter is nothing but cascaded mux whose select can be controlled for almost any sort of shifts
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…