Skip to content
Back to the lab

4 bit barrel shifter

A full custom 4 bit barrel shifter that rotates a word by zero to three places in one step, built from transmission gate multiplexers.

Course
VLSI Design
When
Apr 2022
Team
Tursélio Mahoque
Supervisor
Prof. Neeta Pandey

The problem

Shifters sit inside every processor and many signal processing chips, so their transistor count and power matter. A conventional design built from universal gates is large and power hungry.

How it works

  1. 1Designed a 2x1 multiplexer from transmission gates, then a 4x1 multiplexer from three of them
  2. 2Built the shifter from four 4x1 multiplexers, with S1 and S0 setting how far the word rotates
  3. 3Compared the design against the same circuit built from universal gates
  4. 4Simulated at transistor level in LTspice on 180 nm models at 1.8 V, and designed in Cadence Virtuoso

Result

Each 4x1 multiplexer needs 18 transistors instead of 54, so the whole shifter uses 72 transistors instead of 216, with lower power.

From the report

Output waveforms of the multiplexer
Power and delay comparison

The simulation

The real transient run from LTspice. Hover or drag across the traces to read the bits at any moment.

Transient run, 0 to 240 ns
Hover the traces to read the bits
Inputs
I3
I2
I1
I0
Select
S1
S0
Outputs
Y3
Y2
Y1
Y0
04080120160200240 ns
LTspice transient simulation at 1.8 V with 180 nm BSIM3 models. The outputs are the inputs rotated by the amount set on S1 S0; the spikes are real switching transients.
Show as a table
TimeI3 to I0S1 S0Y3 to Y0
10 ns1111110111
30 ns1101110110
50 ns0011110001
70 ns0101000101
90 ns1111001111
110 ns1001011001
130 ns0111110011
150 ns0101110010
170 ns1011100110
190 ns1101001101
210 ns0111010111
230 ns0001010001

Hiring for embedded or software?

Pick the CV that fits the role, or just email me. I reply within a day.

Or find me on
Oluwaferanmi Iyiola