Lab 2 - EE 421L 

Authored by Martin Jaime

email: jaimem5 at the UNLV students domain

September 7, 2106


Pre-lab work:

All work is being backed up to github.com

After logging in to the server, go into the ~/Downloads directory (create it if it does not exist) and run the following to download the lab2.zip, unzip it, and move it to the CMOSedu directory.
 
    wget http://cmosedu.com/jbaker/labs/ee421L/lab2/lab2.zip
    unzip lab2.zip
    mv lab2 ../CMOSedu
 
Append "DEFINE lab2 $HOME/CMOSedu/lab2" to cds.lib file to define the new lab2 directory as a new library. After moving into the CMOSedu directory, start cadence with virtuoso &. Select lab2 library, and open the schematic view of the cell sim_Ideal_ADC_DAC.
 
media/fig01.jpg
 
Run the simulation by launching ADE L. ADE will open. Load the saved state by clicking on Session > Load State  and select Cellview. Click OK. Once you can see that the configuration has been properly loaded, click the green button to begin simulation.
 
media/fig02.jpg
 

 media/fig03.jpg
 
Notice that the blue input signal Vin is a smooth analog signal that is converted into a 10 bit digital signal that is converted back again to an analog signal at Vout.

If we plot the digital signals, we can find out which is the LSB and the MSB. Plot for just one period of the input signal, and plot the expected LSB and MSB (B0 and B9).
 
media/fig04.jpg
 
media/fig05.jpg

Notice that B0 is frequently changing as is expected of the LSB. B9, the MSB, changes once in the entire 500 ns period.

Back up work
From  the root of the directory containing report files commit all changes, then run git push. Backed up files can be seen at github.com/martinjaime/CMOSedu-Reports.

 

 
Lab Report
 
media/fig06.jpg
Figure 6
 

media/fig07.jpg
Figure 7: By recursively transforming each parallel combination of resistors into their equivalent resistance, we can see that we ultimately obtain an output resistance of R, despite how large the DAC may be. Each parallel combination results in the sum of the series yielding another pair of of parallel 2R resistors.
 
media/fig08.1.jpgmedia/fig08.1.jpg
Figure 8
 

media/fig09.jpg
Figure 9
 

Ideal
My Design
media/fig01.jpg
media/fig16.jpg
media/fig17.jpg
media/fig10.jpg
As we can see in these simulation results, the DAC made up of R resistors works similarly with little precision lost. The new design works as expecte.
  
media/fig11.jpg
media/fig12.jpg
Notice that since we now have a resistive load that is equal to the resistance of the DAC, the amplitude drops by half.
media/fig15.jpg
media/fig14.jpg
With an RC load, the amplitude drops, with a phase shift. The output signal is also smoothed by the capasitive load.
media/fig18.jpg
media/fig19.jpg
Without the resistor, the output has the same phase shift, with a smaller voltage drop.
 
 



All backed up work can be found at https://github.com/martinjaime/CMOSedu-Reports
 

EE421L Lab Student Listing | My Lab Directory | EE421L Home Page