Lab 2 - EE 421L 

Authored by Josh Jensen

jensej3@unlv.nevada.edu

9/6/23

  

Lab 2: Design of a 10-bit digital-to-analog converter

First, I made a schematic for a 1-bit DAC cell. Following the design and using R=10k-ohms, I have three 10k resistors in series, with the output placed between the second and third.

lab2_single_cell.jpg

lab2_single_cell_checksave.jpg

Screenshots of subsequent check and save operations will be omitted for brevity.

Next, I made a schematic for the 10-bit DAC. This is done by connecting ten 1-bit cells in series, with an extra R-ohms resistor at the bottom to comply with the specified design. However, in making this cellview it is convenient to keep the same symbol footprint as the ideal DAC, so it will be easier to implement in the new simulation schematic later.

To do this, I first copied the cellview from the ideal 10-bit DAC and give it a new name.

lab2_copy_symbol.jpg

Then I deleted the extra pins that I won't be using in my design.

lab2_delete_extra_pins.jpg

Then I renamed the symbol view to my design name.

lab2_final_10bit_symbol.jpg

Finally, I made the 10-bit DAC schematic. The B9 to B0 pins are the digital inputs, and Vout is the analog output.

lab2_multi_cell.jpg

Now that I had my 10-bit DAC completed, I could make a simulation schematic to confirm it worked correctly under a load.

lab2_sim_DAC_10pf.jpg

Here, I set a load of 10pF, which I expect to give a delay of about 70ns, because 0.7*R*C = 0.7 * 10k ohms * 10 pF = 70 ns.

In this simulation, since the input from B9 is 5V (mimicking a VDD of 5V and a logic high for B9), I expect that Vout will come up to 2.5V, since that is half of VDD (Vout = VDD/2^(N-n) = 5V / 2^(10-9) = 5V / 2 = 2.5V, where N = the total number of bits = 10 and n is the position of the bit being set to 1). Since our calculated time delay is for when the output reaches 50% of the expected value, I've put a marker to show the position of 2.5V/2 = 1.25V.

lab2_sim_DAC_10pf_results.jpg

As we can see, the input reaches 1.25V at 12.5ns, and the output reaches 1.25V at 84.3563ns. This shows a time delay of a little less than 72ns, which is reasonably close to our calculated time delay for this configuration.

At this point, I turned back to the ADC-DAC configuration to continue testing my DAC schematic. As before, I copied the cellview for the prelab ADC-DAC simulation and just changed the DAC unit being used to the one I created. However, for the simulation to converge and have a DC solution, the VDD supply voltage needed to be 4.99V instead of 5V.

First, a simulation with no additional load being driven from the DAC:


lab2_adc-dac_sim_noload.jpg

And results:


lab2_adc-dac_sim_noload_results.jpg

This was the same result as the prelab, confirming that my design works correctly.

Next, a simulation with the DAC driving an additional 10k-ohm resistor load:


lab2_adc-dac_sim_res.jpg

And results:


lab2_adc-dac_sim_res_results.jpg

Here we effectively see a voltage divider, since the output resistance of the DAC is 10k ohms and this is placed in series with the 10k ohm load. The output voltage is in phase with the input, but only ranges from 0-2.5V instead of from 0-5V.

A simulation with the DAC driving a 10pF capacitor load (having removed the additional 10k-ohm):


lab2_adc-dac_sim_cap.jpg

And results:

lab2_adc-dac_sim_cap_results.jpg

Since this is effectively an RC circuit, we see the magnitude and phase differences between the input and output that we would expect in that situation.

Finally, a simulation with the DAC driving both the additional 10k-ohm and 10pF capacitor, in parallel:

lab2_adc-dac_sim_rescap_results.jpg

And results:

lab2_adc-dac_sim_rescap.jpg

This basically just combined the prior two cases, showing the magnitude and phase change from the capacitor as well as the overall magnitude decrease from the resistor.

Instruction for Lab 2 

Return to list of my EE421L labs