מבנה המחשב - מבוא למחשבים ספרתיים

28
םםםם םםםםםםם- םםםם םםםםם םםםםםםםSynchronous Circuits

Upload: blair-benson

Post on 01-Jan-2016

43 views

Category:

Documents


3 download

DESCRIPTION

מבנה המחשב - מבוא למחשבים ספרתיים. Synchronous Circuits. Question 10.2 - Circuit Analysis. Comb. Logic. AND. D FF Q. CLK. CLK. Question 10.2 - Circuit Analysis. case #1 – negative setup time. t i-1. t i. CLK. C i. D. Logic. Q. Not stable. Stable. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: מבנה המחשב - מבוא למחשבים ספרתיים

מבנה המחשב - מבוא למחשבים ספרתיים

Synchronous Circuits

Page 2: מבנה המחשב - מבוא למחשבים ספרתיים

Question 10.2 - Circuit Analysis

Comb.Logic

AND D FF Q

CLKCLK

Page 3: מבנה המחשב - מבוא למחשבים ספרתיים

Question 10.2 - Circuit Analysis

CLK

case #1 – negative setup time

ti-1 ti

Ci

)()(,max 1 ANDpdGpdttttt pdiisui

Logic

Q

D

Not stable Stable

Page 4: מבנה המחשב - מבוא למחשבים ספרתיים

Question 10.2 - Circuit Analysis

CLK

case #1 – negative setup time

ti-1 ti

Ci

)()(,max 1 ANDpdGpdttttt pdiisui

Logic

Q

D

Not stable Stable

Page 5: מבנה המחשב - מבוא למחשבים ספרתיים

Question 10.2 - Circuit Analysis

CLK

case #2 – positive setup time

ti-1 ti

Ci

Logic

Q

D

Not stable Stable

)()(),(2

1max

)(

11 ANDpdGpdttCLKttt

ANDcontttt

pdiisui

iholdi

Ci

Page 6: מבנה המחשב - מבוא למחשבים ספרתיים

Question 10.2 - Circuit Analysis

CLK

case #2 – positive setup time

ti-1 ti

Ci

Logic

Q

D

Not stable Stable

)()(),(2

1max

)(

11 ANDpdGpdttCLKttt

ANDcontttt

pdiisui

iholdi

Ci

Page 7: מבנה המחשב - מבוא למחשבים ספרתיים

The Marvelous Toy

Page 8: מבנה המחשב - מבוא למחשבים ספרתיים

Toy Design

• Identifying system states

• Identifying state transitions and deciding on Moore or Mealy model

• Detailing the state machine transition and output functions

• The combinational circuits

• The Canonic circuit

• Clock rate calculation

Page 9: מבנה המחשב - מבוא למחשבים ספרתיים

Toy System States

• Only the three switching elements keep state.

• Each has a binary state: Left or Right

• We can model the state of every switch by a single bit.

• Convention: 0=Left, 1=Right

• The total number of states: 23 = 8

Page 10: מבנה המחשב - מבוא למחשבים ספרתיים

State Diagram

000

Page 11: מבנה המחשב - מבוא למחשבים ספרתיים

State Diagram

000

011

100

0/0

1/0

X is LeftZ is LeftY is Left

Enter from LeftOut from LeftSwap X

Enter from RightOut from LeftSwap Y & Z

Page 12: מבנה המחשב - מבוא למחשבים ספרתיים

State Diagram

000

011

100

0/0

1/0 111

0100/0

1/0

Page 13: מבנה המחשב - מבוא למחשבים ספרתיים

State Diagram

000

011

100

0/0

1/0 111

0100/0

1/0

110

001

0/0

1/1

Enter RightOut RightSwap Y&Z

Page 14: מבנה המחשב - מבוא למחשבים ספרתיים

State Diagram

000

011

100

0/0

1/0 111

0100/0

1/0

110

001

0/0

1/1

0/1 1/1

Page 15: מבנה המחשב - מבוא למחשבים ספרתיים

State Diagram

000

011

100

0/0

1/0 111

0100/0

1/0

101

110

001

0/0

1/1

0/1 1/1

0/1

1/1

Page 16: מבנה המחשב - מבוא למחשבים ספרתיים

State Diagram

000

011

100

0/0

1/0 111

0100/0

1/0

101

110

001

0/0

1/1

0/1 1/1

0/1

1/1

0/0

1/1

Page 17: מבנה המחשב - מבוא למחשבים ספרתיים

State Diagram

000

011

100

0/0

1/0 111

0100/0

1/0

101

110

001

0/0

1/1

0/1 1/1

0/1

1/1

0/0

1/10/0

1/1

Page 18: מבנה המחשב - מבוא למחשבים ספרתיים

State Diagram

000

011

100

0/0

1/0 111

0100/0

1/0

101

110

001

0/0

1/1

0/1 1/1

0/1

1/1

0/0

1/1

0/0

1/1

0/01/1

Page 19: מבנה המחשב - מבוא למחשבים ספרתיים

Output Function

Y=0I=0

Y=0I=1

Y=1I=1

Y=1I=0

X=0Z=0

0 0 1 0

X=0Z=1

0 1 1 0

X=1Z=1

1 1 1 1

X=1Z=0

0 0 1 0

Page 20: מבנה המחשב - מבוא למחשבים ספרתיים

Output Function

Output = YI + XZ + ZI (This is λ)

• This circuit has 3 AND(2) in parallel, and then an OR(3)

• No NOT gates.

• Delay = D(AND)+2*D(OR)– Assuming we use OR(2) only

Page 21: מבנה המחשב - מבוא למחשבים ספרתיים

The Next State Function of X

000

011

100

0/0

1/0 111

0100/0

1/0

101

110

001

0/0

1/1

0/1 1/1

0/1

1/1

0/0

1/1

0/0

1/1

0/01/1

Page 22: מבנה המחשב - מבוא למחשבים ספרתיים

Next State Function for X

Y=0I=0

Y=0I=1

Y=1I=1

Y=1I=0

X=0Z=0

1 0 0 1

X=0Z=1

1 0 0 1

X=1Z=1

0 1 1 0

X=1Z=0

0 1 1 0

Page 23: מבנה המחשב - מבוא למחשבים ספרתיים

X Next State Function

X = X’I’+XI (This is part of δ)

• This circuit has: – 2 negations in parallel – 2 AND(2) in parallel, – and then an OR(2)

• Delay = D(NOT)+D(AND)+D(OR)

Page 24: מבנה המחשב - מבוא למחשבים ספרתיים

The Canonic Circuit

State Register

Next State Circuitδ

Output Circuitλ

Input {0,1}

Next State {0,1}3State {0,1}3

Output {0,1}

Page 25: מבנה המחשב - מבוא למחשבים ספרתיים

Stripping away the Flip-Flops

Next State Circuitδ

Output Circuitλ

Input {0,1}

Next State {0,1}3State {0,1}3

Output {0,1}

D-portQ-port

Page 26: מבנה המחשב - מבוא למחשבים ספרתיים

Attaching Delay

Next State Circuitpd(δ)

Output Circuitpd(λ)

Input {0,1}

Next State {0,1}3State {0,1}3

Output {0,1}

D-portQ-port

tpd

pd(IN)

setup(OUT)

tsu

Page 27: מבנה המחשב - מבוא למחשבים ספרתיים

Finding the Clock Rate

Next State Circuitpd(δ)

Output Circuitpd(λ)

Input {0,1}

Next State {0,1}3State {0,1}3

Output {0,1}

D-portQ-port

tpd

pd(IN)

setup(OUT)

tsu

Page 28: מבנה המחשב - מבוא למחשבים ספרתיים

The Clock Rate

supd

pd

su

tpdt

OUTsetuppdt

tpdINpd

OUTsetuppdINpd

CLK

)(

)()(

)()(

)()()(

max}{

We are done!