27.12.2014 Views

xor and xnor gates - AP Computer Science

xor and xnor gates - AP Computer Science

xor and xnor gates - AP Computer Science

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Lab #5<br />

Name: ____________________________ Per: _____<br />

XOR AND XNOR<br />

Title: XOR<br />

XNOR GATES<br />

Materials:<br />

[1] 7404 inverter IC<br />

[1] 7486 2-input exclusive OR gate IC<br />

Procedure:<br />

1. Insert a 7486 in the breadboard.<br />

2. Wire the 2-input XOR gate shown in Fig. 3-12.<br />

3. Move the input switches as shown in Table 3-12. Observe <strong>and</strong><br />

record the output results in the XOR column in Table 3-12.<br />

4. Construct the 2-input XNOR gate diagrammed in Fig. 3-13 <strong>and</strong><br />

complete Table 3-12. Get Instructor’s Signature.<br />

5. Move the inputs switches as shown in Table 3-12. Observe <strong>and</strong><br />

record the output results in the XNOR column in Table 3-12.<br />

6. Construct the 3-input XOR gate diagrammed in Fig. 3-14.<br />

7. Move the input switches as shown in Table 3-13. Observe <strong>and</strong><br />

record the output results in the XOR column in Table 3-13.<br />

8. Construct the 3-input XNOR gate diagrammed in Fig. 3-15.<br />

9. Move the input switches as shown in Table 3-13. Observe <strong>and</strong><br />

record the output results in the XNOR column in Table 3-13.<br />

Get Instructor’s Signature.<br />

A B<br />

A<br />

Questions (answer on a separate piece of paper – “Draw” means<br />

you must use a template):<br />

1. Write the Boolean expression for each of the following circuits<br />

you constructed in this experiment:<br />

a. 2-input XOR gate<br />

b. 2-input XNOR gate<br />

c. 3-input XOR gate<br />

d. 3-input XNOR gate<br />

2. Draw a logic symbol diagram of a 2-input XOR gate using<br />

four 2-input NAND <strong>gates</strong>.<br />

3. The XOR gate’s output is a ___________ (0,1) when an odd<br />

number of inputs are High.<br />

4. The XNOR gate’s output is a ____________ (0,1) when an<br />

even number of inputs are High.<br />

B<br />

1<br />

2<br />

7486<br />

3<br />

1<br />

3<br />

7486<br />

2<br />

Fig. 3-13 2-input XNOR gate<br />

1<br />

7404<br />

2<br />

Fig. 3-12 2-input XOR gate


Inputs Outputs<br />

A B XOR XNOR<br />

0 0<br />

0 1<br />

A<br />

B<br />

C<br />

1 0<br />

1 1<br />

Table 3-12 Truth Table for XOR <strong>and</strong> XNOR<br />

1<br />

2<br />

7486<br />

3<br />

4<br />

5<br />

6<br />

A<br />

B<br />

C<br />

Fig. 3-14 3-input XOR gate<br />

1<br />

3<br />

7486<br />

2<br />

4<br />

5<br />

6<br />

1<br />

7404<br />

2<br />

Inputs Outputs<br />

A B C XOR XNOR<br />

0 0 0<br />

0 0 1<br />

0 1 0<br />

0 1 1<br />

1 0 0<br />

1 0 1<br />

1 1 0<br />

1 1 1<br />

Table 3-13<br />

Fig. 3-15 3-input XNOR gate

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!