29
Computer Architecture and Organization Unit -1

Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Embed Size (px)

Citation preview

Page 1: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Computer Architecture and Organization

Unit -1

Page 2: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Digital Logic Circuits

– Logic Gates

– Boolean Algebra

– Map Simplification

– Combinational Circuits

– Flip-Flops

– Sequential Circuits

Page 3: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Logic Gates

• Digital Computers

- Imply that the computer deals with digital information

- Digital information: is represented by binary digits (0 and 1)

• Functions of gates can be described by :

- Truth Table

- Boolean Function

- Karnaugh Map

Page 4: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

GATES

• Gates – blocks of HW that produce 1 or 0 when input logic requirements are satisfied

Gate

GATEBinary digital input signal

Binary digital output signal

Page 5: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Basic Logic Blocks

- Combinational Logic Block : logic blocks whose output logic value

depends only on the input logic values

- Sequential Logic Block

: logic blocks whose output logic value depends on the input values and

the state of the blocks

Page 6: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Combinational Gates

Page 7: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

BOOLEAN ALGEBRABoolean Algebra

* Algebra with Binary(Boolean) Variable and Logic Operations * Boolean Algebra is useful in Analysis and Synthesis of

Digital Logic Circuits

- Input and Output signals can be represented by Boolean Variables, and - Function of the Digital Logic Circuits can be represented by

Logic Operations, i.e., Boolean Function(s) - From a Boolean function, a logic diagram can be constructed using AND, OR, and I

Truth Table

* The most elementary specification of the function of a Digital Logic Circuit is the Truth Table

- Table that describes the Output Values for all the combinations of the Input Values, called MINTERMS

- n input variables → 2n minterms

Page 8: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Logic circuit design

Page 9: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Equivalent Circuits

Page 10: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Combinational Circuits

- Multiplexer

- Encoder

- Decoder

- Adders

Page 11: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

MULTIPLEXERCombinational Logic Circuits

4-to-1 Multiplexer

I0

I1

I2

I3

S0

S1

Y

0 0 I0

0 1 I1

1 0 I2

1 1 I3

Select OutputS1 S0 Y

Page 12: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

ADDERSHalf Adder

Combinational Logic Circuits

x

y

x

y

c = xy s = xy’ + x’y = x y

xy c

s

0 0 0 00 1 0 11 0 0 11 1 1 0

x y c s

010

00

01

1

Page 13: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Full Adder

0 0 0 0 00 0 1 0 10 1 0 0 10 1 1 1 01 0 0 0 11 0 1 1 01 1 0 1 01 1 1 1 1

cn = xy + xcn-1+ ycn-1

= xy + (x y)cn-1 s = x’y’cn-1+x’yc’n-1+xy’c’n-1+xycn-1

= x y cn-1 = (x y) cn-1

x

y

cn-1

x

y

cn-1

cn s

xy

cn-1

S

cn

Full Adderx y cn-1 cn s

0

0

10

0

1

11

0

1

0

1

1

0

10

Page 14: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Encoder

Page 15: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

NAND gate decoder

Page 16: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Sequential Logic Blocks

• Flip – Flop

• Latch

• Latch Vs. Flip –Flop

• Counters

• Registers

Page 17: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Flip Flops

Page 18: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

D Flip Flop

Page 19: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Latch

• A latch is a kind of bistable multivibrator, an electronic circuit which has two stable states and thereby can store one bit of information. Today the word is mainly used for simple transparent storage elements, while slightly more advanced non-transparent (or clocked) devices are described as flip-flops. Informally, as this distinction is quite new, the two words are sometimes used interchangeably.

Page 20: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

S - R Latch

The symbol for an SR latch.

SR latch operation

S R Action

0 0 Keep state

0 1 Q = 0

1 0 Q = 1

1 1Restricted

combination

Page 21: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

D-LATCHD-Latch Forbidden input values are forced not to occur by using an inverter between the inputs

Flip Flops

Q

Q’D(data)

E(enable)

D Q

E Q’

E Q’

D Q

D Q(t+1)0 01 1

Page 22: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Latch vs. Flip Flop

• Latch is a edge triggered device whereas Flip flop is a level triggered.

• Latches are faster and flip flops are slower.• Latches take less power to implement than flip-

flops. • The output of a latch changes independent of a

clock signal whereas the Output of a Flip - Flop changes at specific times determined by a clocking signal.

• In Latch We do not require clock pulses and flip flops are clocked devices.

Page 23: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

EDGE-TRIGGERED FLIP FLOPSCharacteristics

- State transition occurs at the rising edge or falling edge of the clock pulse

Latches

Edge-triggered Flip Flops (positive)

respond to the input only during these periods

respond to the input only at this time

Flip Flops

Page 24: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

RegistersSequential Circuits

DQ

C DQ

C DQ

C DQ

C

A0 A1 A2 A3

ClockI0 I1 I2 I3

Shift Registers

D Q C

D Q C

D Q C

D Q C

SerialInput

Clock

SerialOutput

Page 25: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Sequential Circuits - Registers

Page 26: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Bidirectional Shift Register with Parallel Load

D

QC D

QC D

QC D

QC

A0 A1 A2A3

4 x 1MUX

4 x 1MUX

4 x 1MUX

4 x 1MUX

Clock S0S1SeriaIInput

I0 I1 I2I3

SerialInput

Page 27: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Sequential Circuits - Counters

Page 28: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Ring counter

Page 29: Computer Architecture and Organization Unit -1. Digital Logic Circuits – Logic Gates – Boolean Algebra – Map Simplification – Combinational Circuits –

Johnson Counter