clock in digital systems. combinational logic circuit a combinational logic circuit is one whose...

31
Clock in Digital Systems

Upload: scarlett-snow

Post on 29-Jan-2016

228 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Clock in

Digital Systems

Page 2: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Combinational logic circuit

A combinational logic circuit is one whose outputs depend only on its current inputs.

1 432

Page 3: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Combinational Circuit

• A logic circuit whose outputs depend only on its current inputs is called a combinational circuit.

Page 4: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Combinational Circuit

• Logic circuit using AND, OR and NOT gates:

Page 5: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Sequential Logic Circuits

Page 6: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Sequential Logic Circuits• A Sequential Logic Circuit is one whose outputs

depend not only on its current inputs, but also on the past sequence of inputs.

2

Page 7: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Sequential Logic Circuits

• The circuit controlled by the channel-up and channel-down pushbuttons on a TV is a sequential circuit.

• The channel selection depends on the past sequence of up/down pushes and the current push.

2

Page 8: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Sequential Logic Circuits

• Outputs depend on the sequence of past inputs.

• As a result, the circuit must “remember” something about the past.

Page 9: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Sequential Logic Circuit

• A circuit with memory, whose outputs depend on the current input and the sequence of past inputs, is called a sequential circuit.

• The behaviour of such a circuit may be described by a state table that specifies its output and next state as functions of its current state and input.

Page 10: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Types of sequential circuits

• There are two main types of sequential circuits:– synchronous

– asynchronous

• their classification depends on the timing of their signals.• A synchronous sequential circuit is a system whose

behaviour can be defined from the knowledge of its signals at discrete instants of time.

• The behaviour of an asynchronous sequential circuit depends upon the order in which its input signals change and can be affected at any instant of time.

Page 11: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Asynchronous Sequential Logic Circuit• An asynchronous sequential circuit uses ordinary

gates and feedback loops. Propagation delay of these gates provide the needed memory, thereby creating sequential-circuit building blocks such as latches and flip-flops that are used in higher-level designs.

Page 12: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

SR Flip-flop with Control Input

Page 13: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

SR Flip_Flop with Clock input

• Q is an abbreviation of Q(t), referred to as the present state.

• Q(t+1), referred to as the next state after application of a single pulse at the clock input.

Page 14: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Synchronous Sequential Logic Circuit

• A synchronous sequential circuit , by definition, must employ signals that affect the memory elements only at discrete instants of time.

• One way of achieving this goal is to use pulses of limited duration throughout the system.

• the device that generates these pulses are called clock and

• the train of pulses are called clock pulses.

Page 15: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Clock

• The state changes of most sequential circuits occur at times specified by a free-running clock signal.

• Active high clock signal:

Page 16: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Clock

• Active low clock signal:

Page 17: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Clock period and frequency

• The clock period is the time between successive transitions in the same direction.

• The clock frequency is the reciprocal of the period. i.e., the number of clock pulses per second.

f = 1/T

Page 18: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Duty cycle

• Duty cycle is the percentage of time that the clock signal is at its asserted level.

Page 19: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Pentium4

• What is the clock frequency of the latest Pentium4 processor?

• What is the clock period of the latest Pentium4 processor?

Page 20: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Motherboard of a Pentium4 System

• What is the clock frequency of the Motherboard of a Pentium4 System?

• What is the clock period of the Motherboard of a Pentium4 System?

Page 21: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Standard Graphic Symbols for Latch and Flip-Flops

Page 22: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Flip-flops

• A device that stores either a 0 or 1.

• Stored value can be changed only at certain times determined by a clock input.

• New value depend on the current state and it’s control inputs.

• A digital circuit that contains filp-flops is called a synchronous sequential circuit.

Page 23: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Flip-flops

S-R latch symbols D flip-flop

J-K flip-flops

Page 24: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Microprocessors?

If the registers of a microprocessor are made of Flop-flops, what kind of digital circuits are they?

• Combinational Logic Circuits

• Sequential Logic Circuits

• Asynchronous Sequential Logic Circuits• Synchronous Sequential Logic Circuits

Page 25: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

What Signal?

• Synchronous Sequential Logic Circuits require a _______________ signal to operate.

• In general, all digital Circuits require a _______________ signal to operate.

Page 26: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Pins of 8284 - Clock Generator and Driver

Page 27: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Inputs to 8284

• X1 and X2 (crystal in)

– X 1 and X2 are the pins to which a crystal is attached. – The crystal frequency must be 3 times the desired

frequency for the microprocessor. – The maximum crystal for the 8284A is 24 MHz and

30 MHz for the 8284A-1. – The IBM PC is connected to a crystal of 14.31818

MHz. – For some turbo compatibles, it is 24 MHz.

Page 28: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Outputs of 8284

• CLK (clock)

– This is an output clock frequency equal to one-third of the crystal oscillator, or EFI input frequency, with a duty cycle of 33%.

– This is connected to the clock input of the 8088/86 and all other devices that must be synchronized with the CPU .

– In the IBM PC it is connected to pin 19 of the 8088 microprocessor and other circuitry under the CLK88 label.

– This frequency, 4.772776 MHz ( 14.31818 divided by 3), is the processor frequency on which all of the timing calculations of the memory and I/O cycle are based.

Page 29: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Which system transfers fastest?

Every clock the data buses transfer 1 Byte of data on both systems.

• System-A is running at a clock frequency of 2 GHz.

• System-B is running at a clock frequency of 3 GHz.

Page 30: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

Which system transfers fastest?

Every clock the data buses transfer 1 Byte of data from the memory to the processor on both systems.

• System-A is running at a clock frequency of 100 MHz.

• System-B is running at a clock frequency of 133 MHz.

Page 31: Clock in Digital Systems. Combinational logic circuit A combinational logic circuit is one whose outputs depend only on its current inputs. 1432

What are their Memory access time?

Every clock the data buses transfer 1 Byte of data from the memory to the processor on both systems.

• System-A is running at a clock frequency of 100 MHz.

• System-B is running at a clock frequency of 133 MHz.