Docsity

Notes on Basic Logic Gates - Computer Logic Design | ECE 238L, Lab Reports of Electrical and Electronics Engineering

Toggle sidebar
bg1
ECE 238 Laboratory Lectures – University of New Mexico
Lecture Notes - Introduction to Discrete Digital Logic.
Basic Logic Gates
AND Gate
The notation for the AND of A and B is A*B or AB.
Truth Table
Symbol
A
BY = A and B
OR Gate
The notation for the OR of A and B is A+B.
Truth Table
Symbol
A
BY = A or B
Inverter
The notation for the COMPLEMENT or NOT of A is A'.
Truth Table
Symbol
AY = not A
TTL and CMOS technology
TTL stands for Transistor-to-Transistor Logic. In this lab TTL chips will be used to implement
basic logic gates such as AND, OR, NAND and others. On TTL technology gates are made of
bipolar transistors (see figure 1). Main characteristics of these gates include their relatively high
switching speed, immunity to noise and high consumption of power.
TTL chips can be identified by its code,
which will always start with the numbers 74
or 54 followed by some more numbers or
characters that will serve to uniquely identify
the chip.
Figure 1. Two kinds of bipolar transistors.
Fall2005 , alnz @ v1.0
1
pf3
pf4
pf5

Partial preview of the text

Download Notes on Basic Logic Gates - Computer Logic Design | ECE 238L and more Lab Reports Electrical and Electronics Engineering in PDF only on Docsity!

ECE 238 Laboratory Lectures – University of New Mexico

Lecture Notes - Introduction to Discrete Digital Logic.

Basic Logic Gates

AND Gate

The notation for the AND of A and B is A*B or AB.

Truth Table Symbol

A

B

Y = A and B

OR Gate

The notation for the OR of A and B is A+B.

Truth Table Symbol

A

B

Y = A or B

Inverter

The notation for the COMPLEMENT or NOT of A is A'.

Truth Table Symbol

A Y = not A

TTL and CMOS technology

TTL stands for Transistor-to-Transistor Logic. In this lab TTL chips will be used to implement basic logic gates such as AND, OR, NAND and others. On TTL technology gates are made of bipolar transistors (see figure 1). Main characteristics of these gates include their relatively high switching speed, immunity to noise and high consumption of power.

TTL chips can be identified by its code, which will always start with the numbers 74 or 54 followed by some more numbers or characters that will serve to uniquely identify the chip.

Figure 1. Two kinds of bipolar transistors.

In order to operate this chip it is necessary to take a look at their datasheet. Basic information to notice is the truth table and schematic of the chip as well as maximum and minimum voltages and current rates. Figure 2 shows a sample of this information.

Figure 2. Example of information from 7400 TTL datasheet

CMOS stands for Oxide Semiconductor. Chips implementing

S transistor

OS chips is tha er range f voltage. For instance, while TTL input digital zero levels range from 0 to 0.8 volts, CMOS can

Figure 4. Example of CMOS

Logic Trainer

  1. The power switch is in the top left-hand corner. Leave the power off while building and

e Logic Trainer.

Complementary Metal-

gates with this technology use MOS transistors. Figure 3 shows the symbol for these kinds of transistors. In comparison with TTL technology, CMOS power consumption is small, which makes them ideal for most of today’s digital applications.

Another important difference with TTL and CM

Figure 3. MO

t CMOS can support a wid o go up to 4 volts. Figure 4 shows the voltage ranges for CMOS and TTL.

and TTL voltage levels

A description of basic features for the Logic Trainer (Figure 5) follows:

modifying the circuit. If you blow a fuse, notify your TA

  1. Sources for +5 Volts and Ground are in the top right-hand corner.
  2. Switches for inputs are along the bottom of the Logic Trainer. Up is true (logic 1). Use jumper wires to connect the switches to the main surface area of th

If you do not know how to convert an AND/OR circuit to NAND or NOR click here for instructions.

K-Maps

This section will show you how to transition from complex (larger) equations to smaller equations

riables

and then to hardware. Let's start with a three variable problem and then progress to a four variable.

Three Va

Here is a Boolean function of three variables: F3 = (Y + Z') X + X'YZ

a. Truth table for F

The most important information that this truth table gives you is contained in the first and last columns. The first column represents each distinct set of inputs. The last column represents the behavior of the output to each set of inputs. The other columns represent an isolated part of the equations and are useful in determining the final output.

b. K-map for F

X, Y and Z are the inputs. The values in the yellow area are the outputs. You fill in the K- Map by placing each output in the box corresponding to its inputs.

c. Simplify the Boolean function.

The K-Map will allow you to simplify the function. C You cannot combine ones along the diagonal. Ho combine ones along the edges.

ombine the adjacent 1's in multiples of two. wever, the edges are adjacent, so you can

F3 = Y Z + XZ'

The simplified equations results from two pairs of ones. Each term in the equation is color coded to match the pair that represents it in the K-Map.

d. Design an AND/OR circuit.

a. 3 inputs: X, Y and Z b. 1 output: F c. Draw a Logic diagram (figure 7) he e

d. Draw a Layout diagram giving t relative position of the chips on th breadboard (figure 8)

Figure 7. Logic Diagram

Figure 8. Layout Diagram

Four Variables

Here is a B variables: F4 = B'CE'+ A'B'E'+ AC'E'+ ABC'E

for F

oolean function of four

a. Truth table

b. K-maps for F