Lab 2 - ECE 421L 

Authored by Jared Hayes 

hayesj18@unlv.nevada.edu 

September 14, 2015

  

Lab Description:
    Design and create a schematic for a 10-bit ideal digital-to-analog (DAC) converter
.  Analyze the operation of the DAC by running various simulations.

   

Pre-Lab:
   
Download and unzip the lab2 zip file into your CMOSedu directory and add the command "DEFINE lab2 $HOME/CMOSedu/lab2" to the cds lib file.
 
dload2
 
 
Open the schematic view of the cell sim_Ideal_ADC_DAC.
 
adcdac

  

Run the Simulation:  The output voltage forms a step-like wave around the input voltage signal, signifying its digital properties.  One period of the square wave, representing the MSB of the digital signal, matches up with one period of the analog signal.  The line colors and thicknesses of the traces have been adjusted for clarity.

 

 

presim1

 

The period and amplitude of the simulation results will differ based on the analog signal that the ADC is given.  The analog signal is converted to a digital signal by the adc and is then converted back by the DAC.  The individual bits of the digital signal are shown here, with the LSB on net 37.

 

presim2

 

The LSB signifies the smallest possible change in the output voltage and is defined by the following formula:

    1 LSB = VDD / 2^N

In this case 1 LSB = 5V/1024 bits = 4.88mV/bit

 

Lab Report:

 

Design a 10-bit DAC using an n-well resistor of 10k ohms.

 

r2r

 

Design one bit of the DAC consisting of two 10k resistors in parallel with a single 10k resistor.

 

dacbit

 

The final schematic of the 10-bit ideal DAC.

  

10dac

 

Determine the output resistance of the DAC:

 

     The LSB of the resistor bridge has 2R (R=10k) resistors in parallel with another 2R.  Their equivalent resistance is. 

(2R)(2R)/(2R+2R) = R

 That R is combined in series with the R of the next bit in the ladder to create another set of parallel 2R resistors, yielding an equivalent resistance of R.  This continues all the way to the output, resulting in an output resistance of R for the the DAC.

 

Predict the delay of the DAC while driving a 10pF load:

 

    -by grounding all of the inputs and and connecting the MSB to a pulse source.

 
delaycirc

 

   td = 0.7RC = 0.7(10000)(10e-12) = 70ns
 

delay
 
Creating a schematic symbol:

Copy the symbol from the original ideal DAC symbol file and delete the now unused VDD, Vrefp, Vrefm pins.

symbol

Simulations to verify correct operation of DAC:

10k load: Since the output resistance of the DAC is R = 10k, we now have a voltage divider with two 10k resistors.
Vin*10k/(10k+10k) = 1/2 Vin
As the simulation shows, The output voltage is about half of the input voltage just as our calculations indicated.

res

Rerun the simulation with just the 10pF capacitor. The output sine wave becomes smoother and is shifted about 100ns lagging the input.

cap

Rerun the simulation with both the 10k resistor and 10pF capacitor RC load. The output voltage is approximately 3.5V and 100ns lagging the input.


rc

Resistance of Switches in a Real Circuit:

In a real circuit where the switches are implemented with transistors and are relatively large compared to R, the equivalent resistance becomes:
 (largeR + 2R)*(2R) / ((largeR + 2R) + 2R)
The 2R is in series with the larger resistance created by the switches, resulting in larger equivalent resistance.  Thus, the output resistance of the DAC will also be 
larger, which will result in a decrease in the output voltage Vout of the the DAC.


Backup:

Cadence files and lab report are automatically backed up in my Dropbox folder.


backup

return