Lab 2 - EE 421L Fall 2021

Authored by: Anthony Torres

Email: torrea20@unlv.nevada.edu

Due Date: September 8, 2021

   

Lab Description

This laboratory assignment is the designing of a 10-bit digital-to-analog converter.

 

Pre-Lab

To begin the lab we need to download the zip file provided in the Lab 2 manual.

- Once downloaded go to the CMOSedu directory and upload to Cadende and unzip file by (unzip lab2.zip)

- Next define the library in the cds.lib file by (DEFINE lab2 $HOME/CMOSedu/lab2)

- We then open the schematic view sim_Ideal_ADC_DAC and load simulation state

  

fig0

  

After the schematic was opened I ran the simulation as it was to see and by messing with the Vin and I noticed that the steps on Vout will lower as Vin decreases.

  

fig1pfig1

 

In order to show my understanding of the circuit I changed Vin to 5mV to show a better comparison to the orginal and as mentioned before the amount of steps on Vout decreases and the input voltage decreases.  This is because the steps is based upon the Least Signficant bit and follows the equation (VDD/2^n) where VDD is given as 5V and n is 10 for the 10 bits.  This equation is given in Figure 30.14 in the lab manual found here.

 

fig3

 

Main Lab

In this lab we implement a 10-bit DAC to the controlling input bits from the ADC provided in the lab2.zip file.  The DAC we create is based upon Fig. 30.14 in the CMOSedu book and compared to the ideal DAC provided in the zip file.  A breakdown of what is included in the lab is as follows:

 

- Creation  of 10-bit DAC 

- Hand Calculations of output resistance

- Simulation of delay of DAC driving 10pF load

- Multiple simulations replacing ideal DAC with DAC created in the lab

 

The first step in creating the DAC is the basic schematic for one bit as seen below followed by the symbol created.

 

mfig1mfig2

 

The next step is creating a new schematic which is a 10-bit DAC comprised of the 1 bit symbol created before.  After the schematic is connected corretly a new symbol is created titled (torrea20_10BitDAC) which will be used to run the simulations.

 
mfig3mfig4

The next part of the lab is doing the hand calculations to solve for the output resistance of DAC.

mfig15
 

Using the output resistance the delay through DAC driving a 10pF load is found by td = .7RC (td = .7*10k*10p) therefor td = 70nS.  In order to verify this through simulation the created DAC circuit is tested by having B9 pulsing from GND to VDD and having all other inputs set to GND.  Once this is done we can see that the dealy is given by the difference between the 50% mark of the output to the rising pulse of the input in this case being 73nS.

 
mfig5mfig6
 

The final part of the lab is replacing the ideal DAC with the created DAC and running simulations given the differents. 

- No Load
 
- In this condition the digital signal produced will follow the analog signal much like the ideal DAC which was shown in the prelab.
 
mfig7mfig8

- 10k ohm Load

- In this condition the digial signal produced will be cut in half because the output resistance 10k ohms is now in series with the 10k ohm load creating a voltage divider which cuts the signal produced in half.

mfig9mfig10

  

- 10pF load

 

- In this condition the digial signal produced resembles that of a analog signal however due to the load the signal recives a 70nS delay a different voltage because of charging and discharging of the load.

  

mfig11mfig12

- 10pF and 10k ohm loads

- In this condition the digial signal produced is a combination of the previous the output is cut in half because of the voltage divider created the signal is delayed and the voltage is swing differs because of the 10pF capacitor.

 

mfig13mfig14

 

  If the resistance of the switches was not small compared to R then the output resistance of the DAC would be changed because if they were large then the output resistance would be greater resulting in a lower output voltage.

 

Return to Student Lab Reports

 

Return to Class Webpage