cse202 logic design idraelshafee.net/spring2018/cse202-logic-design-i...dr. ahmed elshafee, acu :...

15
Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -1 / 15 - CSE202 Logic Design I – Laboratory 01 (Not ,AND, & OR gate) Gates (7804, 7408, & 7432) # Student ID Student Name Grade (10) Instructor signature 1 2 3 4 5 Delivery Date

Upload: others

Post on 10-Mar-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -1 / 15 -

CSE202 Logic Design I – Laboratory 01

(Not ,AND, & OR gate) Gates (7804,

7408, & 7432)

# Student ID Student Name Grade (10)

Instructor signature

1

2

3

4

5

Delivery Date

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -2 / 15 -

Part (01) Discovering 7404 (not gate) Objective

To get familiar with ED100 logic design evaluation and testing kit.

To test and verify the behavior of not gate.

Theory Overview The basic logic gates are the building blocks of more complex logic circuits. These logic gates perform the basic Boolean functions, such as Inversion. Fig. below shows the circuit symbol of not gate, the small circle on the output of the circuit symbols designates the logic complement.

Digital IC gates are classified by family to which they belong. Each logic family has its own basic electronic circuit upon which more complex digital circuits and functions are developed. The following logic families are the most frequently used; TTL _Transistor-transistor logic ECL _Emitter-coupled logic MOS _Metal-oxide semiconductor CMOS _Complementary metal-oxide semiconductor. TTL and ECL are based upon bipolar transistors. TTL has a well-established popularity among logic families. ECL is used only in systems requiring high-speed operation. MOS and CMOS, are based on field effect transistors. They are widely used in large scale integrated circuits because of their high component density and relatively low power consumption. CMOS logic consumes far less power than MOS logic. There are various commercial integrated circuit chips available. TTL ICs are usually distinguished by numerical designation as the 5400 and 7400 series.

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -3 / 15 -

Procedure 1. Insert a NOT gate [TTL 7404 #4-T] into the logic lab breadboard 2. Construct the circuit as shown in Fig 3. Set data switch SW1. Record the level of the output L1 4. Connect the output of first not gate as input to the next not gate, connect output to L2, as shown in figure

5. Set data switch SW1. Record the level of the output L1, L2

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -4 / 15 -

6. Connect the output of 2nd not gate as input to the next not gate, connect output to L3, as shown in figure

5. Set data switch SW1. Record the level of the output L1, L2, L3

Results and data analysis Single note gate

Input (SW1) Output (L1) 1 0 Two cascaded note gate

Input (SW1) Output (L1) Output (L2) 1 0 Three cascaded note gate

Input (SW1) Output (L1) Output (L2) Output (L3) 1 0

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -5 / 15 -

Questions and Conclusions 1. What is the minimum number of gates needed to build a repeater or interface to a new circuit stage (detect the input signal and generate new clean signal)?

………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… 2. In the two cascaded not cages, use voltmeter to measure the input voltage value and the final output voltage level? Is the output voltage level is the same as input voltage? Justify your answer?

Input (volt) Final Output (volt)

………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… …………………………………………………………………………………………………

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -6 / 15 -

Part (02) Discovering 7408 (And gate), and 7432 (Or gate) Objective To find the basic AND & OR gates concept and study on multiple inputs and propagation delay.

Theory Overview The basic logic gates are the building blocks of more complex logic circuits. These logic

gates perform the basic Boolean functions, such as AND, OR gates, Fig. below shows the circuit

symbol, Boolean function, and truth table.

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -7 / 15 -

AND gate Procedure

1. Insert a AND gate [TTL 7408 #4-T] into the logic lab breadboard Construct the circuit as shown in Fig

2. Set data switches (SW1, SW2) as shown in Table 1 and check the outputs (L1) 3. Construct the two level 3-input AND gate using 2-input AND gates

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -8 / 15 -

4. The circuit can be represented symbolically as

5. Set data switches (SW1, SW2, SW3) as shown in Table 2 and check the outputs (L1, L2)

Results and data analysis Table 01

Input1 (SW1) Input2 (SW2) Output (L1)

Table 02

Input1 (SW1)

Input2 (SW2)

Input3 (SW3)

Output1 (L1) Output2 (L2)

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -9 / 15 -

Questions and Conclusions 1. Which voltage on the input node is non-valid logic level?

a. Greater than 2 V b. Between 0.8 V and 2 V c. Less than 0.8 V d. An open circuit e. 2 and 4?

………………………………………………………………………………………………… ………………………………………………………………………………………………… 2. Given a 3-input AND gate with inputs A, B, and C, input A and C are high and B is low, the output will be? a. Low b. High c. undetermined d. All possible combinations

………………………………………………………………………………………………… ………………………………………………………………………………………………… 3. Construct a 4 input AND gate using the same concept used in experiment. Build block diagram, truth table, verify results using

………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… …………………………………………………………………………………………………

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -10 / 15 -

OR gate Procedure

1. Insert a AND gate [TTL 7432 #4-T] into the logic lab breadboard Construct the circuit as shown in Fig

2. Set data switches (SW1, SW2) as shown in Table 3 and check the outputs (L1)

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -11 / 15 -

3. Construct the two level 3-input AND gate using 2-input AND gates

4. The circuit can be represented symbolically as

5. Set data switches (SW1, SW2, SW3) as shown in Table 2 and check the outputs (L4)

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -12 / 15 -

Results and data analysis Table 03

Input1 (SW1) Input2 (SW2) Output (L1)

Table 04

Input1 (SW1)

Input2 (SW2)

Input3 (SW3)

Output1 (L1)

Output2 (L2)

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -13 / 15 -

Questions and Conclusions 4. Given a 3-input OR gate with inputs A, B, and C, input A and C are high and B is low, the output will be? a. Low b. High c. undetermined d. All possible combinations

………………………………………………………………………………………………… ………………………………………………………………………………………………… 5. Construct a 4 input OR gate using the same concept used in experiment. Build block diagram, truth table, verify results using

………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… ………………………………………………………………………………………………… …………………………………………………………………………………………………

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -14 / 15 -

Part (03) Build a simple Control Circuit based on logic gates Part 1: Security system installed in a house; consists of

Door sensor (D) : 0 = closed; 1= opened

Light sensor (L): 0 = night; 1 = day

Windows (w) : 0: closed; 1 = opened

Alarm (A) : 0 = no alarm; 1 = Alarm System is designed to protect home at day and night, that if

door is opened during day light; alarm will not be activated, if door is open during night; alarm will be activated.

If window is opened during day light; alarm will not be activated, if door is open during night; alarm will be activated.

Build a truth table

L D W A

0 0 0 0

0 0 1 1

0 1 0 1

0 1 1 1

1 0 0 0

1 0 1 0

1 1 0 0

1 1 1 0

Build Expression:

A = L’D’W+L’DW’+L’DW

Dr. Ahmed ElShafee, ACU : Spring 2018, CSE202 Logic Design I -15 / 15 -

Build Gates layout diagram:

Implement project on Bread Board