Professional Documents
Culture Documents
EEE312 Lab7 Spring2022
EEE312 Lab7 Spring2022
I. INTRODUCTION
In your final laboratory project, you will complete a guided hierarchical design of a 3-bit digital-
to-analog converter (DAC). This project will encompass all of your CMOS circuit design learnings,
introductory DAC system knowledge, and use of LTspice. The DAC system will have the following
features:
A. A thermometric decoder that converts 3-bit binary input to 8-bit thermometer code;
B. An 8-bit resettable latch based register (with asynchronous reset) that temporarily stores
the thermometer code at clock high phase,
C. A DAC with 8 evenly spread analog output current settings based on thermometric digital
input (9 settings including the reset setting when all inputs are ‘low’),
D. Output Transimpedance amplifier stage to amplify and convert DAC output to voltage.
CLK
RST
8
Resettable Trans-
3 3-to-8 8 DAC Iout
b2b1b0 8-bit Latch- impedance Vout
Thermometric core
Based 8 Amplifier
Decoder
Register
Specifications:
Supply voltage 2.5 V (Also -2.5 V to supply Amplifier stage only)
Input Range: 8 (0-7) Analog Output Range: 1.2 V (min -1.8 V, max -0.6 V)
Figure 7.1. 3-Bit DAC system architecture, supply, and operation range
You will be guided through the design in the following sections, using a 2μm MOSFET technology
with MOSFET process parameters VTN= 0.8 V, VTP= -0.8 V, Kn’=50μA/V2, Kp’=20μA/V2,
Lmin=2μm, and Wmin=2 μm (minimum MOSFET Length and Width allowed in this technology) as
described in the Appendix. The scope of the project does not include a transimpedance amplifier
design. You will use an off-the-shelf CMOS amplifier instead.
implemented in standard CMOS with minimum size MOSFETs and symmetrical HL and LH
transitions using longest path method. You may generate your own library of components
by designing each gate as an LTspice .asc file with interface pins (remember to include VDD
as an I/O interface pin) and then selecting from menu ‘Hierarchy’ → ‘Open this Sheet’s
Symbol’. When there is no symbol file (.asy) for your uniquely named gate, LTspice will offer
to generate a symbol using the defined interface pins. You can then edit the symbol file by
moving the pins to your liking, and save. Once you are done with your design entry and
simulation to convince yourself of correct functionality with 2.5 V supply, you may create a
symbol for your decoder (remember to include VDD as an I/O interface pin). Although the
symbol in Figure 7.2 uses bus notation, it is recommended that you use individual interface
pins for each input and output bit and avoid using buses in your LTspice circuits for simplicity.
EN b2-0 D7-0
0 000 00000000
1 000 00000001
1 001 00000011
EN 3-to-8
1 010 00000111
3 Thermometric 8
b2-0 D7-0 1 011 00001111
Decoder
with 1 100 00011111
Enable Input 1 101 00111111
1 110 01111111
1 111 11111111
RST 8
Resettable Q7-0
8 8-bit Latch-
D7-0
Based 8
CLK Register
Q -0
Figure 7.3. Interface signals fort he 8-bit latch-based register with active low reset
Imain
Ibalancing
Iout
Q0 Q0 ... Q7 Q
4f(vbias) 4f(vbias)
f(vbias) ... f(vbias)
Figure 7.4. D-A converter core with 8-bit differential input (inverted and non-inverted), and
current output (Iout)
In analog portions of the design, we need to ensure the MOSFETs are comfortably in the
region of operation that serves our purpose. There is often not a single solution, hence the
design we will walk trough for the DAC core will represent one of the possible solutions. As
is the case of any analog design, robust IC design procedures dictate that all DAC core
MOSFETs are constructed from series/parallel combinations of unit sized building
blocks, which will be a (W/L)u = 2μm/2μm MOSFET in this case.
i. vbias Generator
Robust DC bias (or DC reference) generator circuits that are tolerant to PVT (Process-
Voltage-Temperature) variations are beyond the scope of this project. Design a simple
DC bias generator that will provide vbias = 2/5*VDD= 1 V through a self-biased CMOS
inverter circuit with input connected to output, and W/L ratios of PMOS and NMOS
balanced such that equilibrium VM= 1 V. Otherwise, target lowest cost allowed by the
technology. Show your calculations. Since the generated vbias will connect to MOSFET
gates with negligible current load, this circuit should suffice for our purpose.
ii. f(vbias) Voltage-Controlled-Current-Source
Design each f(vbias) = 1μA current source in Figure 7.4 using a MOSFET (NMOS or PMOS?)
with vbias as the controlling voltage. Since non-linear MOSFETs will be used to implement
low cost current sources, f will be a non-linear function of vbias, VT, K’, and W/L. Derive
this function, and solve for W/L to determine the MOSFET sizes you need to use. Explain
which region of operation you assumed for the MOSFET, and why. Note, once you
determine the W/L value for f(vbias) switched current, the MOSFET size that will generate
the non-switched base 4f(vbias) current can also be determined.
iii. Switches
For lowest cost, switches can be implemented using single pass-transistors. Since, we
assumed in the above discussion that a switch will be closed when its control voltage is
‘high’, you can consider implementation using minimum size N-channel MOSFETs.
a) Which region of operation should we assume for MOSFETs operated as switches?
Why?
b) Explain why we donot need to invest in a transmission gate to implement these
switches i.e. why is a pass transistor sufficient? Consider your assumptions in part ii
above in answering this question.
iv. Main and Balancing Current Load MOSFETs, and Current Mirror
Since we assumed in the design of voltage-controlled-current-sources that biasing gate
voltage was 1 V, we will start with a similar assumption for Current Load MOSFETs when
the corresponding switches are OFF (for simplicity) in the worst case. When switches
connected to a Load MOSFET start turning on more current is delivered by the load
MOSFET and gate voltage goes further down i.e. the risk of shutting off the load MOSFET
reduces. After the design is complete, we will check all switch positions in simulations to
ensure the load MOSFET stays in the desired region of operation.
a) Which region of operation are Main and Balancing Current Load MOSFETs in? Explain.
b) Assume all corresponding switches tied to the Main Load PMOS are OFF. Using the
current magnitude that corresponds to 4f(vbias) drawn by the non-switching base
source, calculate (W/L)main, such that gate voltage is 1 V less than VDD. Same
assumptions will lead to the same size for (W/L)bal. Remember the main circuit and
balancing circuit are exact copies of each other in order to keep the total current
flowing into the DAC core constant.
c) What is the Iout value from the DAC core when minimum current is delivered by the
Main Current Load MOSFET? What happens to this current as switches connected to
the Main Current Load MOSFET start turning on one by one? What is the expected
change in Iout with every step?
Generate a symbol for the DAC Core after you are done with your design.
D. Transimpedance Amplifier
Use LTC2054 operational amplifier from the library in negative feedback configuration with
+2.5 and -2.5V voltage supplies and a feedback resistor to convert and amplify Iout from DAC
Core output into Vout. Determine the closest value of feedback Resistor to obtain the output
voltage range in the specifications based on the range of Iout values predicted in section
C(iv).c. Show your calculations. Complete your simulations to verify functionality.
Generate a symbol fort he transimpedance amplifier after you are done with the design, use the
symbols of all four units in Sections A-D to construct the overall system as in Figure 7.1. Simulate
to make sure the system works as expected. You may use a clock frequency of 100 kHz. Is this
DAC monotonic by design or could there be non-monotonic output? Explain your answer.