Lab 2 - ECE 421L
Prelab
For the Prelab we had to upload a file, lab2.zip, into the CMOSedu directory, unzip the file and place the code DEFINE lab2 $HOME/CMOSedu/labs on the bottom of the cds.lib file.
From
the simulation above, it should be noted that Vout (blue) has a similar
waveform to Vin (red) however the signal is not as smooth as the
original. This is due to the signal maintaining some of the
characteristics that it had when it was converted to a digital signal
by the ADC. The use of a low-pass filter, or RC circuit, could be used
to help smooth out the signal.
The
simulation above shows that Vout gets clamped off at 5V. This happens
because the DAC is being feed a Vdd of 5V which places a limit on the
output voltage. Since the output is limtied to 5V the signal clamps off
at 5V regardless of the value of Vin.
To the find the least significant bit (LSB) use the equation Vdd/2^N, where N is the number of bits in the DAC, in this case being 10.
So, the value of LSB = 5V/2^10 = 5V/1024= 0.00488V or 4.88mV. For the ideal DAC used here, the LSB is located at B0.
Lab
The design of the 10-bit DAC involved combining multiple 10k resistors, similar to the topology seen in Fig 30.14 however instead of there being 5 bits there had to be 10 bits. the design also did not need a Vdd or any load resistors or capacitors. Once the schematic was completed I created a symbol of for the DAC using the symbol for the Ideal DAC given and modifying it by removing the Vrefp and Vrefm and Vdd.
To find the output resistance value of the 10-bit DAC that was designed just simply simplify the circuit by combining the resistors in series and in parallel as shown below.
To determine the time delay of the 10-bit DAC that was designed I simulated the circuit shown below, where B9 is connected to 5V pulse input, the pins are grounded and the DAC is driving a 10pF load.
The time delay td, the time it takes for the output to reach 50%, can be estimated by using 0.7RC, where R=10K and C=10pF. In this case td=700ns. The max output voltage is approximately 2.5V so the time delay should occur when Vout reaches about 1.25V which occurs at about 700ns as shown in by the circle in the image above.