Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Logic Gate Parameters - Digital Logic - Laboratory, Lecture notes of Computer Science

These are the Laboratory of Digital Logic which includes Implementation, Altera Cyclone, Subfunction, Inputs to Outputs, Multiplexers and Pass Transistors, Interconnections, Maximum Expected, Two Circuits, Flip Flop etc. Key important points are: Logic Gate Parameters, Voltage Transfer Characteristic, Operating Points, Gate Representing, Noise Margins, Propagation Delay, Oscilloscope, Subsequent Experiments, Basic Terminology, Noise Margins

Typology: Lecture notes

2012/2013

Uploaded on 03/22/2013

dhritiman
dhritiman 🇮🇳

4.7

(6)

107 documents

1 / 12

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
EXPERIMENT
1
Logic Gate Parameters
VERSION F04
In this experiment, you will become familiar with the terminal characteristics and parameters for digital logic
gates viewed as electronic circuits. After performing this experiment, you should be able to use a mixed signal
oscilloscope to:
1) Display the voltage transfer characteristic of a logic gate,
2) Find the operating points of a gate representing the HIGH and LOW logic levels,
3) Find the noise margins of a gate,
4) Find the propagation delay of a gate,
5) Display digital signals on an oscilloscope with logic analyzer-like features, and
6) Apply lab skills learned in subsequent experiments.
1-1 PRELAB
IMPORTANT NOTICE: If you have this available before your first lab, please study this prelab material before going to
lab. You will still be able to do the lab based a brief presentation by your lab instructor even if you are unable to
study ahead. In this case, it is important that you study the prelab material before doing the laboratory report.
This experiment requires a number of concepts, some of which may be new to you. Section 2-8 of Mano
and Kime [1] covers the basic terminology. Concepts covered or reviewed here are: 1) voltage transfer
characteristics, 2) operating points, 3) noise margins, and 4) propagation delay.
VOLTAGE TRANSFER CHARACTERISTICS
The static voltage transfer characteristic of a logic gate is simply a plot of the gate output voltage VOUT
versus the gate input voltage VIN. We can mathematically describe the transfer characteristic as VOUT =
f(VIN). We use the word static to describe the transfer characteristic because it represents behavior in
response to slowly changing signals so that dynamic effects such as the delaying of the signal from gate
input to gate output are avoided in measurements.
Figure 1-1(a) shows an ideal static transfer characteristic for an inverter with input VIN, output VOUT and
power supply voltage, VCC = 5.0 V. What can we learn from a static transfer characteristic that is useful
in characterizing gate operation? In order to answer this question, we need to define some terminology.
First, we will consider the operating points for the inverter. These points correspond to the HIGH and
LOW values on the outputs of the inverter. Since the output voltage depends on the input voltage, to
find the value of the HIGH operating point for an inverter output, the value of the LOW operating point
for the same inverter needs to be applied to its input. Likewise, to find the value of the LOW operating
point, the value of the HIGH operating point needs to be applied. This requires that we know the values
we are trying to determine! By analytically using feedback, we can combine the transfer characteristics
of two identical inverters to achieve this dependency relationship.
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Logic Gate Parameters - Digital Logic - Laboratory and more Lecture notes Computer Science in PDF only on Docsity!

E X P E R I M E N T

Logic Gate Parameters

VERSION F

In this experiment, you will become familiar with the terminal characteristics and parameters for digital logic gates viewed as electronic circuits. After performing this experiment, you should be able to use a mixed signal oscilloscope to:

  1. Display the voltage transfer characteristic of a logic gate,
  2. Find the operating points of a gate representing the HIGH and LOW logic levels,
  3. Find the noise margins of a gate,
  4. Find the propagation delay of a gate,
  5. Display digital signals on an oscilloscope with logic analyzer-like features, and
  6. Apply lab skills learned in subsequent experiments.

1-1 PRELAB

IMPORTANT NOTICE: If you have this available before your first lab, please study this prelab material before going to lab. You will still be able to do the lab based a brief presentation by your lab instructor even if you are unable to study ahead. In this case, it is important that you study the prelab material before doing the laboratory report.

This experiment requires a number of concepts, some of which may be new to you. Section 2-8 of Mano and Kime [1] covers the basic terminology. Concepts covered or reviewed here are: 1) voltage transfer characteristics, 2) operating points, 3) noise margins, and 4) propagation delay.

VOLTAGE TRANSFER CHARACTERISTICS

The static voltage transfer characteristic of a logic gate is simply a plot of the gate output voltage VOUT versus the gate input voltage VIN. We can mathematically describe the transfer characteristic as VOUT = f(VIN). We use the word static to describe the transfer characteristic because it represents behavior in response to slowly changing signals so that dynamic effects such as the delaying of the signal from gate input to gate output are avoided in measurements.

Figure 1-1(a) shows an ideal static transfer characteristic for an inverter with input VIN, output VOUT and power supply voltage, VCC = 5.0 V. What can we learn from a static transfer characteristic that is useful in characterizing gate operation? In order to answer this question, we need to define some terminology.

First, we will consider the operating points for the inverter. These points correspond to the HIGH and LOW values on the outputs of the inverter. Since the output voltage depends on the input voltage, to find the value of the HIGH operating point for an inverter output, the value of the LOW operating point for the same inverter needs to be applied to its input. Likewise, to find the value of the LOW operating point, the value of the HIGH operating point needs to be applied. This requires that we know the values we are trying to determine! By analytically using feedback, we can combine the transfer characteristics of two identical inverters to achieve this dependency relationship.

Figure 1-1 Transfer Characteristic and Operating Points

This is done by connecting two inverters in a loop as shown in Figure 1-1(b). For the two inverters, we note that VIN2 = VOUT1 and VIN1 = VOUT2. Since both of the inverters have the same transfer characteristic, we take the transfer characteristic of inverter 2 and mirror it about the VOUT = VIN line so that its VIN axis lies coincident with the VOUT axis of the transfer characteristic for inverter 1 as shown in Fig. 1-1(b); then the VIN axis of gate 1 also coincides with the VOUT axis of gate 2. By this mirroring operation, the relationships given in Fig. 1-1(b) are satisfied on the axes of the plot. Because of the voltage equalities, the only points where both static transfer characteristics can be satisfied on this plot is where they intersect. These intersection points are (VIN1 = 0.15 V, VOUT1= 4.05 V), (VIN1 = 1.50 V, VOUT1 = 1.50 V), and (VIN1 = 4.05 V, VOUT1 = 0.15 V); these operating points are marked with OP. A small change in VIN from 1.5 V will cause departure from the (VIN1 = 1.5 V, VOUT1 = 1.5 V) point toward one of the other two points. Thus, this point is unstable , will not persist, and is of little interest. Small departures from the other two operating points, however, are reversible and with the appropriate change in VIN1 will result in a return to those points. These are stable operating points for the inverters. They define the voltage values that correspond to HIGH and LOW on inputs and outputs of this particular inverter. Since we are using positive logic , HIGH corresponds to 1 and LOW corresponds to 0. Thus for the given inverter, the voltage values for 0 and 1 are 0.15 V and 4.05 V, respectively. For VOUT, the LOW value is V output LOW , denoted VOL , and the HIGH value, V output HIGH , denoted VOH.

So, for this inverter, VOL is 0.15 V and VOH is 4.05 V. Finally, since the LOW value on the input produces a HIGH value on the output and vice-versa, an inversion of the voltage values has occurred. For either positive or negative logic, the inverter is also often called a NOT gate since it negates the input value to produce the output value. Note that if you actually connected two identical gates in a loop, you would get only an operating point, not the transfer characteristics. In the lab, we will generate the equivalent of Fig. 1-1(b) for two inverter types.

Next, we define the concept of noise margins; our approach is that used in Kang and Leblebici [2]. Noise is assumed to be an effective voltage on one or more inputs to a gate that is added to or subtracted from the voltage normally present. The normal voltage is a stable operating point voltage. Examples of sources of noise are fluctuations in the power supply voltage VCC, noise generated by other digital circuits changing values rapidly, or external electromagnetic radiation. Intuitively, noise margins represent the amount of effective noise voltage that can be tolerated on an input without seriously disturbing the gate output.

Figure 1-3 Gate Delay Parameter Definitions

GATE DELAY

Here we consider two primary gate delay parameters. In order to define these parameters, we will use an inverter as an example. We will assume that a pulse is applied to the inverter input VIN as shown in Fig. 1-3. The response to this pulse on the output of the inverter is VOUT, also shown in Fig. 1-3. The two parameters are the high-to-low propagation time , tPHL and the low-to-high propagation time , tPLH. We make both of these timing parameter measurements at the 50% level on the waveforms for VIN and VOUT. Formally, the 50% level is defined as the voltage 0.5( VOHVOL ) + VOL. tPHL is the time measured from this voltage on the rising input waveform to the same voltage on the falling output waveform. tPLH is the time measured from this voltage on the falling input waveform to the same voltage on the rising output waveform. Note that the subscripts on these parameters refer to the direction of change on the output waveform. These two gate delay times are defined graphically on the waveforms in Fig. 1-3. In addition, we define a secondary parameter, the worst case propagation delay, tPD = Maximum ( tPHL , tPLH ). It should be noted that the 50% level for measuring delay is not universally used. For example, some manufacturers use 1.3V as the level for delay measurement for Low Power Schottky Transistor- Transistor Logic (LSTTL). Also, tPD does not universally represent the maximum propagation delay for a single gate. Some text authors use tPD to represent the average of tPHL and tPLH ; we will call this tPD(average). Returning to tPD for the case of many inverters of the same type, we are taking the worst case (maximum) values that can possibly occur for each of tPHL and tPLH and then taking the maximum of these two values. The end result, tPD , is the longest delay that can ever occur for a signal change propagating from an input of a gate to the output of the gate, regardless of the direction of the signal changes. These same parameters can also be defined from a given input to a given output of more complex integrated circuits or parts thereof.

PRELAB WRITEUP

There is no prelab write-up for this lab, but you are expected to thoroughly study the prelab material before or after the lab.

ON REPORTS: All lab results and all answers to questions or discussion are to appear in the lab reports of individual students. All tangible lab results are to be identical; when a printout of results is specified, a copy should be made for each team member. All answers to questions or discussion are to be the work of individual students, not the lab team. Evidence of collaboration on these aspects of a report within or between teams will be noted and is subject to University disciplinary action.

In this experiment, you will find the voltage transfer characteristics and parameters for two device in the High-speed Complementary Metal Oxide Semiconductor (HCMOS) logic family. In addition, you will verify the function of an HCMOS 3-input NOR gate.

EQUIPMENT NEEDED

In addition to the equipment already on the lab bench, your instructor will have you check out a plastic tray containing:

  1. an ECE351 logic board.
  2. a power supply module for the logic board,
  3. two scope probes,
  4. a logic analyzer probe,
  5. four black logic analyzer extension lead in a plastic bag,
  6. a coaxial cable with BNC connectors.

WARNING – LAB EQUIPMENT HANDLING: Much of the lab equipment is small and delicate. In particular, this applies to the FPGA boards, scopes, scope probes, and logic analyzer probes. So please be careful and handle the equipment with a light and careful touch and do not use the scope probes with the grabbers removed. Perform wiring on the board ONLY with the power and other cables disconnected!

INITIAL SETUP

  1. Verify that the Wavetek signal generator power is off. (The power switch for the Wavetek is located on the back.)
  2. Place the logic board and its power supply in front of signal generator and scope, but do not connect the power to the logic board as yet.
  3. Connect MAIN OUT on the Wavetek to the BNC connector on the left side of the logic board carrier by using the coaxial cable.
  4. Carefully attach the two scope probes and the logic analyzer probe to the scope. The logic analyzer probe needs to be well seated, but there is no sound or locking action, so don’t push it in too hard. Note the colored rings on the necks of the probes near the connectors to the scope; the same colored rings appear at the grabber end of the probes so you can easily identify the probe grabber corresponding to each of the channels.
  5. Turn on the oscilloscope power.

WARNING – GND CONNECTIONS: Be very careful not to connect a ground clip or ground lead from the oscilloscope to VCC instead of GND! This can result in a short that causes the lead to get hot or to melt!

  1. On the Wavetek generator, set DC OFFSET to 0 (center position) and set AMPLITUDE to minimum (fully counterclockwise).
  2. Connect the circular power plug to the right rear of the FPGA board and plug the power supply into the outlet.
  3. Turn the Wavetek power ON.
  4. On the Wavetek, push the Display Select until Hz is displayed, set the frequency to 10 KHz, and the Function to Sawtooth. Turn off Amplitude Modulation if it is turned ON.
  5. Turn on channel A1 on the scope (All other 17 channels should be turned off.)
  6. Set the Grid, Horizontal, Triggering, and channel A1 up as follows: Full, 50 us/division, autotrigger, DC coupling, triggering level about 2 V, 1 V/div, and GND symbol positioned 2 V below the grid centerline. The result should be a small, poorly-triggered sawtooth waveform.

CAUTION – USE OF AUTOSCALE: Although AUTOSCALE may be very useful for analog measurements, it often does not set things up well for accurate digital measurements. As a consequence, we usually do NOT use it. If you accidentally use AUTOSCALE and lose your settings, you can recover them by pressing Setup and Undo Autoscale.

  1. Change the Display Select on the Wavetek to DC and adjust the value to 2.5 volts using the DC OFFSET; verify on the scope as you do this using Voltage Measure. Change the Display Select on the Wavetek to Vp-p and adjust the value to 5.00 V using the AMPLITUDE. Verify on the scope as you do this using Voltage Measure. You should now have a 10 KHz, 0.0 to 5.0 V sawtooth waveform on the scope. If you do not, make further adjustments or contact your instructor.
  2. Turn off channel A1 on the scope and turn on channel A2.
  3. Set up channel A2 at 1V/div with the GND symbol positioned 2 V below the grid centerline. You should see a waveform that looks like a pulse train.

VTC OBSERVATION

  1. Turn on channel A1. You will now see two waveforms superimposed
  2. Push Main/Delayed and set Horizontal Mode to XY. The transfer characteristic should appear. You will note that it has much sharper transitions than the example drawn in Figure 1-1. (In fact, the manufacturer has gone to great lengths to ensure this!) Special Note: High frequency noise feedback (from the rapidly changing output signal on the inverter back to the input signal) may badly distort the VTC. If it does, take two corrective measures before making measurements: 1) Remove the extension leads on the probes and carefully connect the grabbers directly to the pins, and 2) Successively select channels A1 and A2 and turn on BW Lim, the bandwidth limit.

FINDING NML AND NMH

  1. Press Trace on the scope, select Mem1 and press Save to Mem.
  2. Carefully interchange the connection of the two probes to the black extension leads so that VIN is on A2 and VOUT on A1.
  3. Press Trace Mem1 on. The original VTC and the mirrored VTC will now be displayed.
  4. Press Cursors on the scope and Clear all cursors.
  5. Select Y1 as the active cursor. Align Y1 with the lower right intersection of the VTCs to read out VOL.
  6. Select cursor Y2 and align with the upper left intersection of the VTCs to read out VOH.
  7. Select cursor X1 and attempt to align it with the leftmost –1 slope point to read out VIL.
  8. Select cursor X2 and align it with the rightmost –1 slope point on the same curve as in step 7 to read out VIH.
  9. Press Stop on the scope to get a more stable image.
  10. Log in to a PC account at CAE (one team member) and, in the I volume, set up a folder for ECE351 and a folder for Exp1 within it.
  11. Foillowing the instuctions on the course web page, use the Word HP54600 Toolbar to capture the scope image and save it to a file.
  12. Save this image in the Exp1 folder of a team member.
  13. In your report, add the following information to the image file printout. a) a heading of 74HC04, the value of VCC, and the team member names, b) a label giving VOL to one decimal place, c) a label giving VOH to one decimal place, d) a label giving VIL to one decimal place, and e) a label giving VIH to one decimal place. 14) CHECKPOINT: Show the image on the computer screen to your instructor.
  14. Print enough copies of the image for all team members (Set printer name to ece351 ; backup printer is ece554 through the door at the back of the lab).
  15. Answer the following question:
  1. Calculate and record NMH and NML for the 74HC04. Compare these values to those calculated by referring to a 74HC04 datasheet (available on the course webpage). Try to explain any discrepancies.

74HC14 VOLTAGE TRANSFER CHARACTERISTIC AND NOISE MARGINS

Objective: To find the transfer characteristic and static noise margins for a 74HC14 HCMOS Schmitt-trigger inverter.

SETUP

  1. The 74HC14 portion should be performed by the team member not performing the 74HC04 part.
  2. Move the the probes from the 74HC04 to the 74HC14 by placing them on JP6-1 (channel A1) and JP6-2 (channel A2). The input signal connection from the Wavetek generator is already made using the same connection.

VTC OBSERVATION

Figure 1-6 Setup for Finding Propagation Delay

MEASUREMENT OF CMOS DELAYS

  1. Connect board power.
  2. Be sure both scope channels are set to 1 V/DIV, accurately align the GND levels on the Ch A and Ch A2 waveforms and set TIME/DIV to 5 ns. At this point, the VIN and VOUT waveforms should appear and be aligned.
  3. To measure tPHL , set triggering to positive edge of A1.
  4. Center the image so that a complete pair of VIN and VOUT waveform edges is visible.
  5. Calculate V50% = ( VOHVOL )/2 + VOL and align cursor V1 with this value.
  6. Move cursor V2 so it does not appear.
  7. Select cursor t1 and align with the intersection of VIN and cursor V1.
  8. Select cursor t2 and align with the intersection of VOUT and cursor V1.
  9. Read out the value for tPHL.
  10. Transfer, save, annotate and print the result for each team member. Annotate the axes and waveforms and include two labels: 1) part number and team member names, and 2) tPHL = (value) ns.
  11. Change the triggering to negative edge and repeat all steps for tPLH. 12) CHECKPOINT: Show your tPLH measurement to your instructor.
  12. Answer the following.

5a. Use the measured tPHL and tPLH to find both tPD and tPD(average). 5b. Compare tPD and tPD(average) with the respective worst case(maximum) value, 19 ns, and typical value, 11 ns, as listed in the datasheet for the 74HC04 [3]. Explain the likely reason(s) for any differences.

Figure 1-7 Setup for Determination of Logic Function

  1. Return the scope to its normal operating mode, erase the contents of Mem1 and turn off channels A1 and A2.

  2. Push D0 – D15 to activate the digital channels of the scope. Then turn ON channels D0 – D7.

  3. Use the Entry or Select knob to select each of D4 through D7 and turn them off.

  4. Push Labels/Threshold and select the Threshold Menu. Set the Threshold to TTL.

  5. Press Previous Menu ‡ Define Labels.

  6. Turn Select to select bit_03.

  7. Set the Position to the far left.

  8. Use Entry to select characters and Copy to enter them to spell Y.

  9. Press Assign Label to label bit_03 as Y.

  10. Press Label -> ON.

  11. Press Previous Menu and Display to return to display mode.

  12. Press Main/Delayed and set the Time Ref to Left.

  13. Connect board power.