Lab 2 - ECE 421L 

Authored by Giang Tran

8/30/2015

trang@unlv.nevada.edu

 

Lab description:

-The purpose of this lab is to use n-well resistors to design 10-bit Digital-to-Analog Converter (DAC).
Pre-Lab
-Our first step is to download a zip file called lab2

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/zipfile.PNG

-Extract the file using command unzip

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/extracting.PNG

-In order for Cadence to recognize the new library, we need to add DEFINE lab2 $HOME/CMOSedu/lab2 to our cds.lib file.
-Next open up sim_Ideal_ADC_DAC schematic in Cadence

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/lab2_opening.PNG

The schematic should looks something similar to this!

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/lab2_chem.PNG

-Click on ADE L > Session > Load State > Cellview in order to have access to our Analog Design Environment. Click Run
-Our waveform should looks similar to this

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/lab2_waveform.PNG

Digital-to-Analog Converter
-Is a function that converts digital binary into an analog signal. A n-bit DAC has 2^n outputs. In our case, a 10-bit DAC has 2^10 which has 1024 outputs. Our resolution is calculated as 1/2^n which indicates higher resolution for higher order DAC.
-Our least significant bit can be determined using the following equation Vdd/2^n. Where n represents our bit and Vdd represents our maximum input voltage. Hence, our LSB is 5/2^10 = 4.88mV, the lowest voltage value that will affects our waveform.
Post-Lab
http://cmosedu.com/jbaker/labs/ee421L/lab2/l2_4.jpg
-We're about to implement the above circuit using our own design consists of n-well resistors.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/Post_schem-of-R2.PNG

-You can see that I used two 10k resistors in series to implement a 20k resistor like instructed.
-After drafting the schematic, I created a symbol for the schematic for a clean finish.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/Post_layout-of-R2.PNG

-After making our symbol for the n-well resistor, we're about to delay the DAC and drive a load of 10 pF by grounding pins B[0-8]. Connect B9 to a pulse source of 0 to 5V.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/Post_DACSchem.PNG

-Using the equation Td=0.7*R*C, we'll be able to predict the time delay of the circuit. Our Td in this case is 70 ns.
-Our graphical delay time is roughly 75 ns - 5 ns = 70 ns as predicted.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/Post_DAC_delaytime.PNG


-Next, we'll modify our DAC symbol and schematic in order to use our n-well resistor to implement the DAC as stated before.
-We'll first delete Vrefp, Vrefm, and Vdd on our Ideal DAC symbol since they are not needed in our design.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/delete_VrefpVrefm.PNG

-Shift-X to go down a layer, we'll replace the circuitry in there with the following

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/Post_DAC.PNG

We will name our design as Mydesign_10-bit Ideal DAC. Going back to our ADC to DAC schematic. We'll replace the given DAC with our DAC.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/Post_Mydesign_ADCDAC.PNG

-Driving a 10K load!
http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/Post_Mydesign_10kload_schem.PNG
-We can see that by add a resistor of 10K Ohms to our circuit. Our output waveform is half of input with no delay.
-Driving a 10 pF Capacitor!

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/Post_Mydesign_Cload_schem2.PNG

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/Post_Mydesign_Cload_schem.PNG

-The capacitor takes longer time period to charge up. Hence, it was necessary to increase the time period in our analysis.
Lastly, RC load!
http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/Post_Mydesign_RCwaveform.PNG

-In real circuit the switches are implemented with transistors. If the resistance of the switches isn't small compare to R, we'll see our output voltage to decrease. This is because the parasitic resistance of our transistors would add up with 2R, hence, decrease our output voltage.

http://cmosedu.com/jbaker/courses/ee421L/f15/students/trang/Lab2/forcing.PNG

Saving My Work!!!

All files and images are backed up in a folder on my desktop,

I'll then send a copy to my email as a backup. 

Return to main page here