Lab 2 - ECE 421L 

Authored by Brian Medrano Kiaer,

Email: kiaer@unlv.nevada.edu

September 11th, 2018 

  

Pre-lab work :

I downloaded the lab2.zip file that has been attached and uploaded that .zip file to my design directory (CMOSedu). 

After that I unzipped the file and added it to my cds.lib file by adding the following: DEFINE lab2 $HOME/CMOSedu/lab2 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip1.JPG

Once Cadence was running, I opened the Library Manager and navigated to the "lab2" library. Within this library is a cell called "sim_ideal_ADC_DAC". This cell is an example of an ideal 10-bit Analog-to-Digital Converter (ADC) and Digital-to-Analog Converter (DAC). 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip2.JPG

The schematic should look like this: 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/lab2_snip3.png

After understanding how the schematic works I went to Launch -> ADE L then in the ADE L Window pressed on Session -> Load State ->Cellview -> *Enter Key* and this is the output of the provided example schematic: 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip3.JPG

The realtionship between Vin, B[9:0], and Vout is that the Analog-to-Digital Converter will read the alternating values from Vin and provide a 1 or 0 for B[9:0] to create a 10-bit binary value. These 10-bits correlate to the size of 1 LSB and will be the input for the Digital-to-Analog Converter. The DAC will then provide the output, Vout in correlation to the multiples of 1 LSB, in the example given it is 4.88mV. 

Lab description: 

The first part of this lab is to create and implement a 10-bit Digital-to-Analog (DAC) using an n-well R of 10k. Below is my design of the 10-bit DAC. 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip4.JPG

After designing the circuit, it is imperative to check and save to ensure that there are no errors found within the schematic. 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip5.JPG

How to determine the output resistance of the DAC: 

The way to find out the output resistance is by combining the resistors that are in series or that are parallel from each other, here is a 5-bit example below: 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip6.jpg

- Delay, driving a load 

When all the DAC inputs are grounded except B9, we are able to find the output resistance as calculated above at R = 10k. When driving a load that is 10pF we are able to use the formula td = 0.7RC. Below the calculations have provided to conclude approximately 70 nanoseconds.

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip7.jpg

Here is the output of the RC Circuit using a .tran simulation at 2us. 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip9.JPG

Here we can see that the it takes approximately 69.5 ns to reach half of the maximum value of 2.5V, which proves that the hand calculations were correct. 

How to create a symbol view:

To create a symbol view, I used the schematic that I created for the 10-bit Ideal DAC. I named the schematic "Lab2". After creating the desired schematic I went to the top of the windows and selected "Create" -> "Cellview" -> "From Cellview ..." then hit OK twice. 

Then a symbol view will appear within the cell in this case "Lab2". To verify that it works I copied the cell and called it "sim_Ideal_DAC" and ran a simulation using the Lab2 symbol. 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip8.JPG

Here is the sim_Ideal_ADC_DAC schematic implemented with my DAC symbol. I had to create a new cell called "sim2_Ideal_ADC_DAC" and then remove the previous DAC in the schematic view and input my own DAC symbol from my Lab2 cell with no load. 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip11.JPG

The output is the exact same as the original sim_Ideal_ADC_DAC schematic shown below in detail. 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip10.JPG

Here is the same schematic but witha 10K resistive load: 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip13.JPG

The Transient Response shows that when a 10k resistive load is used the schematic acts like a voltage divide where the output is half of the input. We can also see that they have similar phases as well. 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip12.JPG

Here is the same schematic but with a capacitive load of 10pF instead of the 10k resistive load. 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip15.JPG

Below is the transient response for 1us using the capacitive load of 10pF. We can see that there is a delay of approximately 70 ns which is accurate with the RC delay that was calculated earlier. 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip16.JPG

Lastly, here is the schematic with both an RC load with a resistor of 10k and a capacitance at 10pF. We can see that the difference between Vin and Vout is much larger and the delay between the two peaks are about 47ns. 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip17.JPG

The transient response for the schematic above at 1 us, the delay between Vin and Vout is approximately 47ns. 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip18.JPG

Discuss what happens if the resistance of the switches isn't small compared to R.

If the resistance of the switch isn't small compared to R then the output resistance would not be R anymore. Furthermore, the higher the resistance the output voltage will dissipate causing less of a difference between Vin and Vout. 

http://cmosedu.com/jbaker/courses/ee421L/f18/students/kiaer/lab2/snip19.JPG

To ensure that I have a backup of all the files within Cadence and this lab project, I created a compressed file (.zip) saved on my Desktop and emailed it to myself with a subject title "Lab2_Backup" to make sure I can retrieve the backup files just in case. 



Return to EE 421L Labs