15-bit barrel shifter

Status
Not open for further replies.

fra2k10

Newbie level 4
Joined
Feb 9, 2010
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,322
Hi,
I would need to design a 15-bit barrel shifter; I mean a barrel shifter having 15 inputs, 15 outputs, rotating according to 4 control bits.
I need the real architecture, described in terms of logic gates, not the verilogA.

Usually barrel shifter have a number of inputs which is a power of 2, 2^k precisely, where k is the number of control bits; however, I need just 2^k-1 inputs (k=4) and I do not know how to implement it.

May you please help me?

THX
 

15 bits or 16 bits, there is no difference.
if you show your effort, we'll help you.
 


the following link should help you:

http://www.cgl.uwaterloo.ca/~wmcowan/teaching/cs251/s08/pdf/shifter.pdf

Best of luck for your design!!

Saad
 

I have created it by a MUX architecture (see attachment, ex.1)
Generally speaking, I know how to deal with a number of inputs which is 2^k (k=number of control bits) and I have already implemented it for k=4.
Now the matter is that I want to have one less input and I do not know how to connect the inputs anymore.

You say it is the same but I am confused about how to do it.
May you please provide me with more details?
 

Attachments

  • hwk8Sol.pdf
    89.1 KB · Views: 78

So design it for 16-bit input and outputs. Then eliminate 1 bit. As lostinxlation said, there's not much difference between the 15-bit and 16-bit version.
 

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