You are on page 1of 14

IZMIR INSTITUTE OF TECHNOLOGY

Faculty of Engineering Electrical and Electronics Engineering


Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design Laboratory Documents

Sevin c room Tel. e-mail

Aydnlk Bechteler : CE229 : 6348 : sevincaydinlik@iyte.edu.tr

Bora Mocan Can Erolu g Tel. : e-mail : boramocan@iyte.edu.tr e-mail : caneroglu@iyte.edu.tr

IZMIR INSTITUTE OF TECHNOLOGY


Faculty of Engineering Electrical and Electronics Engineering
Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design (Lab)


Exercise 1:

1.1 Perform the following number base conversions: (a) 11010112 = ?16 = ?10 (b) 110101.12 = ?8 = ?10 (c) ABC16 = ?2 = ?10 1.2 Give the rs complement of the following numbers: (a) 11010.112 = ? (b) 652710 = ? (c) A0BC116 = ? 1.3 Give the (r 1)s complement of the following numbers: (a) 110.10112 = ? (b) 65278 = ? (c) FFFFFF16 = ?

IZMIR INSTITUTE OF TECHNOLOGY


Faculty of Engineering Electrical and Electronics Engineering
Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design (Lab)


Exercise 2:

1.1 Perform the following substractions by using the 1-complement: (a) 1110002 10112 (b) 10101012 11011112 (c) 100002 1112 1.2 Perform the same substractions by using now the 2-complement! 1.3 Compare the two methods used in 1.1 and 1.2 for substracting binary numbers! 1.4 Perform the following multiplications: (a) 1112 1002 (b) 10101012 11011112 (c) 12 1112 1.5 Perform the following divisions: (a) 1112 102 (b) 10101012 11011112 (c) 10002 1112

IZMIR INSTITUTE OF TECHNOLOGY


Faculty of Engineering Electrical and Electronics Engineering
Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design (Lab)


Experiment 1 (Introduction to Laboratory Equipment): Measurement equipment : Logic Kit Oscilloscope Function generator Power supply LEDs

Electronic components

1.1 What does the term Data Sheet mean? 1.2 Try to explain the principal operation of an oscilloscope! Hint: Use a block diagram! 1.3 What is a function generator? 1.4 List some properties showing the quality of a power supply!

REMARK: The laboratory equipment will be explained in detail in the Logic Design Laboratory.

LED: Light Emitting Diode

IZMIR INSTITUTE OF TECHNOLOGY


Faculty of Engineering Electrical and Electronics Engineering
Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design (Lab)


Experiment 2: Measurement equipment : Electronic components : Logic Kit Oscilloscope LEDs Logic gates NOT, AND, OR, NAND, NOR, XOR

2.1 Find the identication number of the above listed Logic Gates in IC packages! Sketch the IC housing and its PIN assignments! 2.2 For each of the following gates, observe the input voltages and the output voltage with an oscilloscope! Write down the Truth-Table in Volts!
NOT AND OR

2.3 For each of the following logic gates, connect its inputs to the switches on the Logic Kit and its output to an LED, and verify their operation! Write down the TruthTable in Volts!
NOT AND OR NAND NOR XOR

2.4 Setup a circuit with a single NAND that is used as an inverter! Sketch the circuit! 2.5 Setup the circuit for the function F = XY + XZ + Y Z, and verify its operation! Sketch the circuit and write down the Truth-Table in Volts!

IC: Integrated Circuit PIN: Personal Identication Number

IZMIR INSTITUTE OF TECHNOLOGY


Faculty of Engineering Electrical and Electronics Engineering
Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design (Lab)


Experiment 3: Measurement equipment : Electronic components : Logic Kit Oscilloscope NOT, NAND

3.1 Connect all six inverters inside the 7404 IC in cascade! Apply clock pulses to the input of the cascade! Using the oscilloscope, determine the delay from the input to the output of the sixth inverter! Find the average propagation delay per inverter! Draw the input and output waveforms! 3.2 Using a single 7400 IC, connect a circuit that produces (a) an inverter (b) a two-input AND (c) a two-input OR (d) a two-input NOR (e) a two-input XOR In each case verify your circuit by checking its truth table! 3.3 Given the two Boolean functions in sum of minterms F1 (A, B, C, D) = (0, 1, 4, 5, 8, 9, 10, 12, 13) F2 (A, B, C, D) = (3, 5, 7, 8, 10, 11, 13, 15) Simplify the two functions by means of maps! Obtain a composite logic diagram with four inputs and two outputs F1 and F2 ! Implement the two functions together using a minimum number of NAND ICs! Connect the circuit and check its operation! Obtain the truth table from the measurement results!

IZMIR INSTITUTE OF TECHNOLOGY


Faculty of Engineering Electrical and Electronics Engineering
Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design (Lab)


Experiment 4: Measurement equipment : Electronic components : Logic Kit Oscilloscope NAND

4.1 A combinational circuit with four inputs (A, B, C, D) and one output F has to be designed. F is to be equal to 1 when A is equal to 1 provided that B = 0, or when B = 1 provided that either C or D is also equal to 1. Otherwise, the output is to be equal to 0. (a) Obtain the truth table of the circuit! (b) Simplify the output function! (c) Draw the logic diagram of the circuit using NAND gates with a minimum number of ICs! (d) Construct the circuit and test it for proper operation by verifying the given conditions! 4.2 A majority logic is a digital circuit whose output is equalt to 1 if the majority of the inputs are 1s. The output is 0 otherwise. Design and test a three-input majority circuit using NAND gates with a minimum number of ICs!

IZMIR INSTITUTE OF TECHNOLOGY


Faculty of Engineering Electrical and Electronics Engineering
Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design (Lab)


Experiment 5: Measurement equipment : Electronic components : Logic Kit Oscilloscope 4-Bit Adder-Subtractor (7483)

The subtraction of two binary numbers can be done by taking the 2s complement of the subtrahend and adding it to the minuend. The 2s complement can be obtained by taking the 1s complement and adding 1. To perform A B, we complement the four bits of B, add them to the four bits of A, and add 1 through the input carry. This is done as shown in the following gure.

The four XOR gates complement the bits of B when mode select M = 1 and leave the bits of B unchanged when M = 0. Thus, the mode select M is equal to 1, the input carry C0 is equal to 1 and the sum output is A plus the 2s complement of B. When M is equal to 0, the input carry is equal to 0 and the sum generates A + B. 5.1 Connect the adder-subtractor circuit and test it for proper operation by using the following decimal numbers: (a) (b) (c) 9+ 5 9+ 9 9 + 15 ; ; ; 95 99 9 15

5.2 Check the results of these operations and discuss them! Observe the output carry!

IZMIR INSTITUTE OF TECHNOLOGY


Faculty of Engineering Electrical and Electronics Engineering
Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design (Lab)


Experiment 6: Measurement equipment : Electronic components : Logic Kit 74151, 74155

6.1 Get the data sheets of the multiplexer and demultiplexer ICs and sketch a simple multiplexer/demultiplexer system using only 4 input data lines and only two select inputs! 6.2 What is the main problem of such a multiplexer/demultiplexer system? 6.3 Set up the circuit and test its operation!

IZMIR INSTITUTE OF TECHNOLOGY


Faculty of Engineering Electrical and Electronics Engineering
Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design (Lab)


Experiment 7: Measurement equipment : Electronic components : Logic Kit NAND, D FF (7474), JK master-slave FF (7476)

7.1 Construct an SR latch with two cross-coupled NAND gates! Connect the two inputs to switches and the two outputs to LEDs! Obtain the function table of the circuit! 7.2 Construct a D latch with four NAND gates and verify its function table! 7.3 Connect the D ip-op and verify its function table! 7.4 Connect the JK master-slave ip-op and draw its timing diagram with help of the oscilloscope!

IZMIR INSTITUTE OF TECHNOLOGY


Faculty of Engineering Electrical and Electronics Engineering
Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design (Lab)


Experiment 8: Measurement equipment : Electronic components : Logic Kit NAND, JK master-slave FF (7476)

8.1 Create an AND gate with means of NAND gates! 8.2 Create a T-FF with means of a JK master-slave FF! 8.3 Sketch the logic diagram of the in the following gure depicted 3-Bit binary counter using the upper subsitutions! 8.4 Setup this 3-Bit binary counter and verify its operation!

IZMIR INSTITUTE OF TECHNOLOGY


Faculty of Engineering Electrical and Electronics Engineering
Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design (Lab)


Experiment 9: Measurement equipment : Electronic components : Logic Kit 74194, 7474, 7483

9.1 Obtain the datasheet for the integrated circuit 74194! 9.2 Realize all operations that exist in the function table of IC 74194 (shift right, shift left, parallel load)! 9.3 Use two ICs 74194 and transfer 4 bit data from one IC to the other IC! 9.4 Realize serial addition which is shown at the bottom (Fig. 6-5 in the text book) by using the ICs 7474, 7483 and 74194!

SI Shift control CLK

Shift register A

SO x S y

FA
C

Serial input

SI

Shift register B

SO

clear

IZMIR INSTITUTE OF TECHNOLOGY


Faculty of Engineering Electrical and Electronics Engineering
Izmir Y ksek Technoloji Enstit s , M hendislik Fak ltesi, u u u u u Elektrik-Elektronik M hendislii, TR35430 G lbaheky Urla/Izmir u g u c o u

T 0090/232/ 750-6579
-6348

EE 142: Introduction to Logic Design (Lab)


Experiment 10: Measurement equipment : Electronic components : Logic Kit 7476, 7408

10.1 Construct a 4-bit binary ripple counter using two 7476 ICs! Connect all asynchronous clear and preset inputs to logic 1! Connect the count-pulse input to a pulser and check the counter for proper operation! 10.2 Modify the counter in that way, that it is counting down instead of counting up! Check that each input pulse decrements the counter by one! 10.3 Construct a synchronous 4-bit binary counter by using two 7476 ICs and one 7408 IC! Check its operation!

You might also like