Lab 2 - ECE 421L
Authored
by Leanna Guevara, guevaral@unlv.nevada.edu
September 22, 2014
Design of a 10-bit digital-to-analog converter (DAC)
Pre-Lab
Download lab2.zip and to the CMOSedu directory. Don't forget to add the statement "DEFINE lab2 $HOME/CMOSedu/lab2" in the cds.lib. From here we can start Cadence.
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/Prelab2.1.PNG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/Prelab2.1.PNG)
Go find the lab2 library and open the sim_Ideal_ADC_DAC schematic.
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/prelab2.2.PNG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/prelab2.2.PNG)
Run the simulation (Launch->ADE L->Session->Load State->Cellview->OK->
)
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/prelab2.3.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/prelab2.3.JPG)
Post LabOur lab will be based on the following topology
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/topology.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/topology.JPG)
We will be creating a 10-bit DAC using n-well resistors.A resistor divider symbol needs to be created for the topology. From the library manager make a schematic called "2R_Res."
Once the schematic below is created make sure to check and save to make sure that there are no errors.
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2R_Res_Schematic.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2R_Res_Schematic.JPG)
Creat
a symbol using the schematic (Create->Cellview->from Cellview).
The Symbol Generation Options should appear, make sure the left, top
and bottom pins are labeled then press OK. The following symbol should appear
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2R_Res_Symbol.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2R_Res_Symbol.JPG)
Make a copy of Ideal_10-bit_DAC and label it Mydesign_10-bit_DAC. Open the schematic for Mydesign_10-bit_DAC delete everything. Here we will use the symbol we created earlier (press i for Instance->browse->Find lab2 in Library->click 2R_R) . Place 10 of the symbol in series with one end connected to Ground and the other connected to Vout.
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/Mydesign1.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/Mydesign1.JPG)
From the library manager go to the sybol for the DAC. Delete VDD, Vrefm and Vrefp.
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/MydesignSymbol.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/MydesignSymbol.JPG)
Deternmine
the output resistance of the DAC. First connect a 5 volt puls to B9
port and ground the others, which will give the binary code for 512. To
determine the LSB (Least Significant Bit) use the equation V/(2^N) =
5/(2^10)=4.88m. The purpose of LSB is to show the minimum voltage
change by multiplying LSB with the binary number we will get a 2.5 V.
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/outputresistance.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/outputresistance.JPG)
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/outputresistanceSim.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/outputresistanceSim.JPG)
Make a copy of sim_Ideal_ADC_DAC and label it sim2_Ideal_ADC_DAC. Open the schematic and replace the current DAC with the symbol from Mydesign_10-bit_DAC. Since we deleted Vdd, Vrefp, and Vrefm from our DAC symbol we can remove the wires attached.
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2Sim_Ideal.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2Sim_Ideal.JPG)
Run simulation as a transient analysis for 1us.
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2Sim_Ideal_S.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2Sim_Ideal_S.JPG)
Since the simulation is similar to the prelab we can assume that it is correct. Now we can see what happens when a R, C, and R/C load is placed.
A) 10K Resistor
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2Sim_Ideal_Res.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2Sim_Ideal_Res.JPG)
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/Ideal_Res_Sim.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/Ideal_Res_Sim.JPG)
B) 10pF Capacitor
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2Sim_Ideal_Cap.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2Sim_Ideal_Cap.JPG)
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/Ideal_Cap_Sim.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/Ideal_Cap_Sim.JPG)
C) 10K Resistor and 10pF Capacitor
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2Sim_Ideal_CapRes.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/2Sim_Ideal_CapRes.JPG)
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/Ideal_CapRes_Sim.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/Ideal_CapRes_Sim.JPG)
End of Lab 2
Don't forget to back up the file by dragging lab2 from MobaXterm to the desktop and email to yourself.
![http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/zip.JPG](http://cmosedu.com/jbaker/courses/ee421L/f14/students/guevaral/Lab%202/zip.JPG)
Return to EE 421L Labs