Dec 31, 2012 #1 F 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) ;
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) ;
Jan 1, 2013 #2 barry Advanced Member level 7 Joined Mar 31, 2005 Messages 6,333 Helped 1,194 Reputation 2,400 Reaction score 1,389 Trophy points 1,393 Location California, USA Activity points 34,478 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.
Jan 1, 2013 #3 dll_fpga Full Member level 3 Joined Mar 9, 2011 Messages 185 Helped 19 Reputation 38 Reaction score 21 Trophy points 1,298 Location kerala,India Activity points 2,416 barry said: 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. Click to expand... barrel shifter is nothing but cascaded mux whose select can be controlled for almost any sort of shifts
barry said: 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. Click to expand... barrel shifter is nothing but cascaded mux whose select can be controlled for almost any sort of shifts