Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

why do we use barrel shifter

Status
Not open for further replies.

fahum

Junior Member level 2
Junior Member level 2
Joined
Jun 19, 2012
Messages
20
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
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.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top