Skip to content

Latest commit

 

History

History
100 lines (50 loc) · 6.35 KB

README.md

File metadata and controls

100 lines (50 loc) · 6.35 KB

4bit-RCA-180nm-Layout

Layout of 4bit Ripple Carry Adder (RCA) formed using CMOS logic in gpdk180nm technology node done in Cadence Virtuoso with no DRC and LVS errors.

4bit Ripple Carry Adder (RCA)

A 4-bit Ripple Carry Adder (RCA) is formed using four 1-bit Full Adders cascaded in a series connection with the Carry out of one stage acting as Carry in to another stage. A 4-bit Ripple Carry Adder (RCA) is used to calculate the binary addition of two 4bit binary numbers. Since it is made using four 1-bit Full Adders, a 4-bit RCA has 8 inputs namely (A0 B0,………A3B3) and 4 Sum outputs namely (S0,…..S3) and a single Carry in as (Cin) to the adder at first stage and a single Carry out as (Cout) from the final stage in the adder chain

image
Fig 1: Adding two 4bit numbers.

Ripple Carry Adder formed using CMOS logic

Since we know that, to form a 4bit RCA we require four 1bit Full Adders. To make Full Adders we require Half Adders. Furthermore Half Adders can be made with simple Logic Gates. In this section, I will be showing how to make these components leading upto a 4bit RCA in gpdk 180nm technology node using CMOS logic.

Half Adder

A half adder is a simple digital circuit used to add two binary numbers. It contains two outputs, namely Carry (C) and Sum (S), and two inputs, as A and B, denoting the two bits to be added. XOR and AND gates are two common logic gates that can be used to create the half adder.

image
Fig 2: Boolean Expression for Sum and Carry output of a Half Adder.

image
Fig 3: Truth Table of a Half Adder.

HA
Fig 4: Schematic of a Half Adder.

1bit Full Adder

A 1-bit Full Adder is formed using two Half Adders cascaded in series with each other and an OR gate. It takes in three 1-bit inputs namely A, B, Cin and performs the binary addition to give Sum and Carry output (Cout) from these three bits.

image
Fig 5: Boolean Expression for Sum output of a 1bit Full Adder.

image
Fig 6: Boolean Expression for Carry output of a 1bit Full Adder.

image
Fig 7: Truth Table of a 1bit Full Adder.

1bit FA
Fig 8: Schematic of a 1bit Full Adder.

4bit RCA

4bit RCA
Fig 9: Schematic of a 4bit Ripple Carry Adder.

image
Fig 10: Waveform of a 4bit Ripple Carry Adder.

Layout

In this section, I will demonstrate how to construct the layout for a 4-bit Ripple Carry Adder (RCA). The process begins with creating the layouts for the individual components that make up the 4-bit RCA, specifically the Half Adders and Full Adders. Additionally, designing the layouts for the Half Adders and Full Adders necessitates constructing the layouts for the various logic gates involved in making of these adders. A maximum of two metal layers (metal 1 and metal 2) are used to form the connections (routes) for our design.

Layout - Inverter (CMOS logic)

Layout-inverter
Fig 11: Layout of an Inverter.

Layout - AND Gate (CMOS logic)

Layout-ANDgate
Fig 12: Layout of an AND Gate.

Layout - XOR Gate (CMOS logic)

Layout-XORgate
Fig 13: Layout of a XOR Gate.

Layout - OR Gate (CMOS logic)

Layout-ORgate
Fig 14: Layout of a OR Gate.

Layout - Half Adder (CMOS logic)

Since we know, to form a half adder requires a XOR and an AND gate. Similarly, we can can instantiate the layouts of these individual components to form the layout for a half adder.
Layout - Half Adder
Fig 15: Layout of a Half Adder.

Layout - 1bit Full Adder (CMOS logic)

A 1bit full adder requires 2 half adders and an OR gate. We'll instantiate these already formed components to form a 1bit full Adder. Remember additional routing is to be done to connect these components of the FA :)
Layout-1bitFA
Fig 15: Layout of a 1bit Full Adder.

Layout - 4bit RCA (CMOS logic)

A 4bit RCA requires four 1bit Full adders connnected in series (cascade fashion). We will instantiate them and connect the carry outs to carry in of the successive 1bit FA to form a 4bit RCA. Layout-4bitRCA
Fig 15: Layout of a 4bit RCA.

DRC and LVS checks

Our 4bit RCA layout is meets all the design rules specified for gpdk 180nm technology node and also meets the LVS requirements.

Layout-4bitRCA-DRC
Fig 16: DRC for 4bit RCA.

Layout-4bitRCA-LVS
Fig 17: LVS check (1/2) for 4bit RCA.

Layout-4bitRCA-LVS2
Fig 17: LVS check (2/2) for 4bit RCA.

Note: All of these design or layout are performed in Cadence Virtuoso design tool. Cadence Assura tool is used for DRC and LVS checks for layout in gpdk 180nm library. Widths of PMOS's are kept 2x the width of NMOS's.