Lab 2 - ECE 421L
Part 1)
The original zip file and the unzipped folder can be seen in the image above. These files were uploaded to my CMOSedu folder.
Once I had done this, I then needed to modify the cds.lib file in order to be able to see the directory in the library manager in Cadence. This was done by adding the highlighted line seen in the image below.
Now that all of the setup was done, it was then time to open up the schematic of the 10-bit ADC.
With the schematic open, we ran the simulation and modified the graph in order to make it a bit more readable.
If the value for in the input signal goes above the value for the LSB, then the value output by the ADC will change.
Design of a 10-bit DAC using 10k resistors
The design of a 10-bit DAC can be done by purely having a 2R resistor in parallel with an R resistor as shown below.
This arrangement of resistors is then repeated multiple times until the number of inputs matches the amount of bits desired for the DAC. In this lab, we require a 10-bit DAC so we will repeat this arrangement by connecting the "Out" pin to the 'A' pin for each arrangement. The completed 10-bit DAC schematic is shown below.
Now that we have the 10-bit DAC schematic, we must turn it into a symbol. This is done by selecting the option shown below and following all of the window prompts.
Once this is completed, the symbol should open up in a new window and look like this. Note, since this design will not use VDD, Verfp, or Vrefm those may be deleted.
Simulations
In order to verify that my 10-bit DAC functions correctly, I replaced the DAC in the ideal simulation with the DAC I created in order to see the waveform it produces.
As we can see, the DAC created in the lab produces a fairly accurate result for the majority of the waveform with an acceptable accuracy.
Now, we can begin testing of this DAC with a load that consists of either an R, C or R/C.
With an R load of 10k ohms, Vout is reduced by about 50%. This is because the load R has an equivalent resistance to the DAC's output resistance. The calculation of this output resistance will be seen later in the report.
Adding a 1pF Capacitor as part of the load causes two things to occur to the output of the DAC. The first is that the staircase effect is removed and we end up with a smoother curve. The second is that a small delay of around 20ns is introduced to the output.
Adding both a 10pF Capacitor and 10k Ohm Resistor causes there to be both a delay and reduction in output level. These two effects are coming from the Capacitor and Resistor respectively.
Delay
In order to simulate the delay, we first have to ground inputs b0 through b8. Then we connect b9 to a pulse voltage source. Once this is done, a 10pF load will be added. This will allow us to simulate the delaly through the DAC (Schematic can be seen below). Since we know that the output resistance of the DAC is R, we can use this value to predict the delay using 0.7RC. In our DAC R=10k ohms and this value must simply be substituted into the equation.
Delay = 0.7RC = 0.7 * 10k ohms * 10pF
Delay = 70ns
This delay can be seen in our simulation below.
Determining the output resistance of the DAC
Discuss what happens if the resistance of the switches isn't small compared to R
If the resistance of the switches isn't small compared to R, the output voltage will be much smaller than input voltage. This is because of the increase in internal resistance.