43
Chapter-2

Chapter-2. Digital electronic circuits are used to build computer hardware as well as other products (digital hardware) These circuits are fabricated

Embed Size (px)

Citation preview

Page 1: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

Chapter-2

Page 2: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)

These circuits are fabricated on silicon wafers which form the chips.

Chips have from tens to millions of transistors

Page 3: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

Transistor is a semiconductor device used to control flow of electric current.

It has three connections to an external circuit.

The transistor provides amplification of a signal.

A small current(input)through one pair of terminal causes a large current through the other pair (output).

Page 4: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

Transistor is used as a switch with a binary function: five volts – ON, less than

five volts – OFF 5 volts = on 0 volts = off In a digital circuit, a signal is

represented in one of two states or logic level.

0 = false = no 1 = true  = yes

Page 5: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

B - Base C – Collector E - Emitter

Page 6: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

Transistors are used to create logic gates.

logic gates are blocks of hardware that produce signals of 0 or 1.

There are seven basic logic gates: AND, OR, XOR, NOT, NAND, NOR, and XNOR

Page 7: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

Operations of logic gates are described using Boolean Algebra.

And , or and not are Boolean functions. Transistors construct circuits which

implement Boolean functions. Input and out put relationship of the

binary variables can be represented as truth tables.

Page 8: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 9: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 10: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 11: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 12: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 13: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 14: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 15: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 16: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 17: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 18: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 19: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

The 7400 series TTL integrated circuits

Page 20: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 21: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

Combinatorial or combinational circuits: They consist of basic Boolean operations

(AND, OR, NOT), and the output represents a Boolean function.

They are logic circuits whose output depends upon the presently given input only.

They don't have any memory. They are used to perform Boolean algebra

on the present input and stored data. They do not have any clock.

Page 22: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

They are logic circuits whose output depend upon past output states.

Flips-Flops (or Bistables) are the basic Sequential Logic Elements.

Sequential circuits have state, which means sequential circuits have memory.

State is updated based on a clock.

Page 23: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

Flip-flop: It is a state maintaining mechanism. It is a binary cell capable of storing one bit of

information. It has only one out put A flip-flop maintains its state until directed by

a clock pulse .

Clock: It allows the hardware to operate without requiring the input to change.

It emits alternating sequence of 0 and 1.NO. of times the clock cycles through 1 to 0 in a

sec is its speed.

Page 24: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 25: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 26: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

A register which goes through a predetermined sequence of states when input is applied is a counter.

A counter accumulates numeric total, it has multiple outputs

When it reaches the maximum limit the counter is reset to zero, indicating an overflow.

A counter which follows binary sequence is called a binary counter.

N-bit binary counter is a register of n flip flops and sequence of states from 0 to 2N - 1

Page 27: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 28: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

It requires 3 flip flops and the sequence is 8.

State transition occurs every time the clock pulse occurs.

It takes input from the clock pulse and output depends on internal state (outputs are taken off each flip-flop in the counter

Page 29: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

Multiplexer: It is a digital circuit with multiple signal inputs, which gives a single output. The out put is selected by a only one

addressing input.De-multiplexer: It is a digital circuit that takes a single data

input, and gives multiple outputs The addressing inputs select which one of the

outputs will receive the input signal one or more address inputs

Page 30: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

n-bit binary number and produces an output on one of 2n output lines.

That means two, three, or four addressing lines, de-multiplex up to four, eight, or sixteen multiplexed signals respectively.

1-to-2 line decoder/de-multiplexer 2-to-4 line decoder/de-multiplexer 3-to-8 line decoder/de-multiplexer

Page 31: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 32: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

  

Page 33: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated
Page 34: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

D S1 S0 Y0 Y1 Y2 Y3

D 0 0 D 0 0 0

D 0 1 0 D 0 0

D 1 0 0 0 D 0

D 1 1 0 0 0 D

Page 35: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 36: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 37: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 38: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

To start the circuit connect another input (e.g. push button)to the counter reset.

When the user pushes the button the counter resets to zero.

Counter’s output becomes 000

When the de-multiplexer receives the input of all zero’s it turns on its first output.

Page 39: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

Replication in hardware

Hardware engineers prefer replication to iteration.

Hence the need for minimization of the circuits.

Rule is to optimize the Boolean formula’s forming the circuits.

Ex : not (not x) = x, a pair of directly connected inverters are removed from the circuit without affecting the result.

x nor (not x) , nor gate and inverter used together will always give a zero.

Page 40: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 41: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 42: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.

Page 43: Chapter-2.  Digital electronic circuits are used to build computer hardware as well as other products (digital hardware)  These circuits are fabricated

From Essentials of Computer Architecture by Douglas E. Comer. ISBN 0131491792. © 2005 Pearson Education, Inc. All rights reserved.