Integrated VLSI Systems I Laboratory Assignments Name: ____________________________ Group: _________ Department of Microelectronics and Nanoelectronics Faculty of ICT University of Malta Department of Microelectronics and Nanoelectronics Assignment 1: Fundamentals Figure 1 MOSFET DATA (M1 & M2): [1] L = 0.9 µm W = 20 µm Determine the D.C. operating points (including VD, ID, VG, VGS) for the two transistors M1 and M2. Integrated VLSI Systems I Owen Casha 2008 © 2 Department of Microelectronics and Nanoelectronics [2] Suppose that W is increased by a factor of 2, determine the new operating points. [3] Obtain the magnitude and phase Bode plots using a 1 mV sinusoidal peak input. Hence identify the –3dB points. Integrated VLSI Systems I Owen Casha 2008 © 3 Department of Microelectronics and Nanoelectronics [5] Determine the output waveform for the input square-wave shown below. Figure 2 [6] Determine the approximate linear input range for the amplifier. (Hint: short-circuit C1 and C2 and apply a DC sweep to the input). [7] Determine the total harmonic distortion (T.H.D.) obtained when a 1 mV peak sinusoidal signal of frequency 10 kHz is applied to the input of the amplifier. Integrated VLSI Systems I Owen Casha 2008 © 4 Department of Microelectronics and Nanoelectronics [8] Repeat question [7] for an input of 0.1 V peak, and comment on the result, comparing it with that obtained in [7]. Integrated VLSI Systems I Owen Casha 2008 © 5 Department of Microelectronics and Nanoelectronics Assignment 2: Operational Amplifiers The circuit below shows a 2-stage CMOS op-amp with p-channel input transistors: Figure 1 Width/Length Parameters: M1: 120µ/8µ M3: 50µ/10µ M5: 150µ/10µ M7: 150µ/10µ M2: 120µ/8µ M4: 50µ/10µ M6: 100µ/10µ M8: 150µ/10µ [1] Using the voltage-controlled voltage source (VCVS) method shown below, perform a balanced differential DC sweep on the input. Plot the op-amp output node voltage, and hence determine the: (i) (ii) (iii) linear range offset open loop gain Integrated VLSI Systems I Owen Casha 2008 © 6 Department of Microelectronics and Nanoelectronics Figure 2 [2] By applying a differential AC (sinusoidal) input, with appropriate magnitude chosen such that the op-amp is sure to operate in its linear range, determine the open loop magnitude and phase response of the op-amp. [3] From [2], determine the open loop phase margin and gain margin. Hence comment on the stability of the op-amp when it is used as a unity gain non-inverting buffer. Integrated VLSI Systems I Owen Casha 2008 © 7 Department of Microelectronics and Nanoelectronics [4] Repeat [2] and [3], with the frequency compensation network R–CC disconnected. How does this network affect the frequency response and stability? Integrated VLSI Systems I Owen Casha 2008 © 8 Department of Microelectronics and Nanoelectronics [5] Connect the op-amp as an inverting adder as shown in the diagram below: Figure 3 Apply a 10 kHz 1mV pk input to node 10 and a 30 kHz 1mV pk input to node 11. Perform TRANSIENT analysis and hence FOURIER analysis (using a 10 kHz base frequency) on the output node. Comment on the Fourier results obtained: does the op-amp show any considerable MULTIPLICATIVE mixing effect due to non–linearities? Hint: Recall that: 2 sin (ω1t )sin (ω 2 t ) = cos((ω1 − ω 2 )t ) − cos((ω1 + ω 2 )t ) Integrated VLSI Systems I Owen Casha 2008 © 9 Department of Microelectronics and Nanoelectronics Assignment 3: Applications of Operational Amplifiers The following circuits use the CMOS op-amp which has been defined as a sub-circuit in tutorial sheet 2. Figure 1 [1] Using the arrangement shown in Figure [1] below, determine the output resistance of the op-amp. Integrated VLSI Systems I Owen Casha 2008 © 10 Department of Microelectronics and Nanoelectronics [2] The circuit shown in the figure [2] shows the input part of a 3-bit A/D flash converter (encoder part missing). By sweeping the input voltage source, verify the outputs VD1 to VD7. [3] Figure [3] shows a 4-bit D/A converter utilizing an R-2R ladder network. Apply the following pulses voltages in the time domain: Vd1 14 0 PULSE (5 0 1ns 1ns Vd2 14 0 PULSE (5 0 1ns 1ns Vd3 14 0 PULSE (5 0 1ns 1ns Vd4 14 0 PULSE (5 0 1ns 1ns 0.5ms 1ms) 1.0ms 2ms) 2.0ms 4ms) 4.0ms 8ms) n2 n1 A B n3 Plot the input voltages Vd1 to Vd4 together with the output voltage v(1) in order to verify the DAC operation. Integrated VLSI Systems I Owen Casha 2008 © 11 Department of Microelectronics and Nanoelectronics Figure 2 Figure 3 Integrated VLSI Systems I Owen Casha 2008 © 12 Department of Microelectronics and Nanoelectronics Assignment 4: Digital Integrated Circuits [1] The diagram below shows a 2-input NAND gate implemented using CMOS technology: Figure 1 MOSFET DATA: M1 & M3: M2 & M4: L=5µ, W=30µ L=5µ, W=15µ [2] Connect the NAND gate as shown in Figure 2, with CL representing the load capacitance: Figure 2 Apply a fixed 5V to one input and a d.c. sweep (0 to 5V) to the other input. Hence obtain a plot of the output waveform. Repeat this test, this time interchanging the input connections. Hence determine: (a) (b) The minimum input voltage VIH which is interpreted as HIGH by the NAND gate. The maximum input voltage VIL which is interpreted as LOW by the NAND gate. Integrated VLSI Systems I Owen Casha 2008 © 13 Department of Microelectronics and Nanoelectronics [3] Consider the arrangement shown in Figure 3 below: Figure 3 Apply a PULSE waveform to one of the inputs and thus obtain the load capacitor voltage and current. Note: for pulse input: Va 6 0 PULSE (0V 5V 10ns 10ns 1us 2us) [4] Consider the 8 to 3 encoder needed by the flash ADC used in tutorial 3 (Q2). The following partial truth table describes the logic functions of the encoder: Integrated VLSI Systems I Owen Casha 2008 © 14 Department of Microelectronics and Nanoelectronics VD1 0 0 0 0 0 0 0 1 VD2 0 0 0 0 0 0 1 1 INPUTS VD3 VD4 VD5 0 0 0 0 0 0 0 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 1 VD6 0 0 1 1 1 1 1 1 VD7 0 1 1 1 1 1 1 1 OUTPUTS Q0 Q1 Q2 0 0 0 1 0 0 0 1 0 1 1 0 0 0 1 1 0 1 0 1 1 1 1 1 Other input combinations are DON’T CARE conditions and may be ignored. Implement the encoder using 2-input NAND gates (you need not fully minimise the logic functions involved). Hence define the as a subcircuit with external nodes: VD1, VD2, VD3, VD4, VD5, VD6, VD7, Vdd, Gnd, Q0, Q1 and Q2. [5] Add the encoder to the comparator section of the flash ADC. Hence using the same procedure described in tutorial 3 (Q2), verify the encoded outputs Q0 to Q3. Integrated VLSI Systems I Owen Casha 2008 © 15 Department of Microelectronics and Nanoelectronics Assignment 5: Differential Amplifier – Design and Analysis [1] For the differential pair shown in Figure [1] deduce that the small signal differential gain is given by: Avd = ( ) Vo W K PW1 I = K P 1 VGS1 − VT R = R Vi L1 L1 where W1/L1 = W2/L2 are the dimensions of M1 and M2. Assume that the MOSFETS operate in the saturation region and neglect the channel modulation effects. Figure 1 Integrated VLSI Systems I Owen Casha 2008 © 16 Department of Microelectronics and Nanoelectronics Hence design the differential pair assuming I = 100 µA and R = 50 kΩ in order to obtain a differential gain of 50. Also determine the saturation voltage VDSsat of M1 and M2. The MOSFET parameters are given in the table below: Parameter Kp (µA/V2) VTO (V) λ (V-1) Lmm (µm) Cgdo (pF/m2) Cgdo (pF/m2) N-Channel 57 1 0.05 1 180 180 P-Channel 17 1 0.04 1 280 280 Use simulation in order to determine: (i) (ii) the D.C. operating point the frequency response with regards to gain and phase Figure 2 Integrated VLSI Systems I Owen Casha 2008 © 17 Department of Microelectronics and Nanoelectronics [2] The current source I is to be replaced by the current mirror shown in Figure [2]. Calculate the W and L values of the mirror transistors M3 and M4 and the value of Rbias. Assume that the mirror transistors should operate with a gate overdrive (Vgs–VT) of 0.3 V. Verify the circuit operation with regards to D.C. bias conditions. How does VDS4 affect the commonmode rejection ratio (CMRR) of the differential pair? [3] A common-source output stage is to be cascaded after the differential pair as shown in Figure [3]. The output stage quiescent current should also be set to 100 µA. Estimate the W and L values of the output stage transistors. Show that the small signal voltage gain of the output stage is given by: Integrated VLSI Systems I Owen Casha 2008 © 18 Department of Microelectronics and Nanoelectronics Av 2 = g m5 g ds 5 + g ds 6 Assume that the MOSFETS operate in saturation but take into account the output a.c. conductance gds. Figure 3 Integrated VLSI Systems I Owen Casha 2008 © 19 Department of Microelectronics and Nanoelectronics Starting from the MOSFET equation in saturation: ID = K PW (1 + λVDS )(VGS − VT )2 2L deduce an expression for gds and hence determine the theoretical composite small signal on the above arrangement. Integrated VLSI Systems I Owen Casha 2008 © 20 Department of Microelectronics and Nanoelectronics [4] Use simulation analysis on the above arrangement in order to determine: (i) (ii) (iii) (iv) (v) (vi) the D.C. operating point the transfer function Vo versus Vin (hence also determine the gain, linear region and d.c. offset). Frequency response: Gain and phase. Slew rate Common mode rejection ratio Power supply rejection ratio Integrated VLSI Systems I Owen Casha 2008 © 21