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.
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.
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?
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.