Digital System Design - 國立臺灣大學

Post on 21-Oct-2021

4 views 0 download

transcript

Digital System Design for Circuit and Electronics

Additional material

Intro. VLSI: CMOS inverter

CMOS inverter: black and white representation

A counter layout

Rules for design rule checking: basic rules

Rules for composition

Concept of the State Machine Example: Odd Parity Checker

Next State/Output Functions

NS = PS xor PI; OUT = PS

D

R

Q

Q

Input

CLK PS/Output

\Reset

NS

D FF Implementation

T

R

Q

Q

Input

CLK

Output

\Reset

T FF Implementation

Timing Behavior: Input 1 0 0 1 1 0 1 0 1 1 1 0

Clk

Output

Input 1 0 0 1 1 0 1 0 1 1 1 0

1 1 0 1 0 0 1 1 0 1 1 1

State Behavior of R-S Latch

Truth Table Summary of R-S Latch Behavior

Q

hold 0 1

unstable

S

0 0 1 1

R

0 1 0 1

Sequential Switching Networks

Edge triggered device sample inputs on the event edge

7474

Bubble here for negative

edge triggered device

Positive edge-triggered flip-flop

D Q

Clk

D-FlipFlop

In

Q 0

Q 1

Clk

100

Cascaded Flipflops and Setup/Hold/Propagation Delays

Shift Register S,R are preset, preclear New value to first stage while second stage obtains current value of first stage

Correct Operation, assuming positive edge triggered FF

IN

CLK

Q0 Q1D

C

Q

Q

D

C

Q

Q

Design Procedure

Excitation Tables: What are the necessary inputs to cause a particular kind of change in state?

D 0 1 0 1

T 0 1 1 0

Q + 0 1 0 1

Q 0 0 1 1

S 0 1 0 X

R X 0 1 0

K X X 1 0

J 0 1 X X

Design problem

• Please design a sequence recognizer of

1011, using first a RS flip-flop, then a D flip flop.

Results

X 0 1

00 Y1 Y2 0 1

01 0 1

10 0 1

11 0 1

X 0 1

00 0 1

01 0 1

10 0 1

11 0 1

Input = X D = X S = X’Y1’ Y2 R = X’Y1Y2’ + X Y1 Y2 Z = X Y1 Y2 (output)

Circuit of 1011 recognizer

END