Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR Topics n High-level synthesis. n...

35
Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR Topics High-level synthesis. Architectures for low power. Testability and architecture.

Transcript of Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR Topics n High-level synthesis. n...

Page 1: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Topics

High-level synthesis. Architectures for low power. Testability and architecture.

Page 2: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

High-level synthesis

Sequential operation is not the most abstract description of behavior.

We can describe behavior without assigning operations to particular clock cycles.

High-level synthesis (behavioral synthesis) transforms an unscheduled behavior into a register-transfer behavior.

Page 3: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Tasks in high-level synthesis

Scheduling: determines clock cycle on which each operation will occur.

Binding (allocation): chooses which function units will execute which operations.

Page 4: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Functional modeling code in VHDL

o1 <= i1 or i2;

if i3 = ‘0’ then

o1 <= ‘1’;

o2 <= a + b;

else

o1 <= ‘0’

end if;

clock cycle boundary canbe moved to design differentregister transfers

Page 5: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Data dependencies

Data dependencies describe relationships between operations:– x <= a + b; value of x depends on a, b

High-level synthesis must preserve data dependencies.

Page 6: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Data flow graph

Data flow graph (DFG) models data dependencies.

Does not require that operations be performed in a particular order.

Models operations in a basic block of a functional model -no conditionals.

Requires single-assignment form.

Page 7: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Data flow graph construction

original code:

x <= a + b;

y <= a * c;

z <= x + d;

x <= y - d;

x <= x + c;

single-assignment form:

x1 <= a + b;

y <= a * c;

z <= x1 + d;

x2 <= y - d;

x3 <= x2 + c;

Page 8: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Data flow graph construction, cont’d

Data flow forms directed acyclic graph (DAG):

Page 9: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Goals of scheduling and allocation

Preserve behavior - at end of execution, should have received all outputs, be in proper state (ignoring exact times of events).

Utilize hardware efficiently. Obtain acceptable performance.

Page 10: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Data flow to data path-controller

One feasible schedule for last DFG:

Page 11: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Binding values to registers

registers fall onclock cycleboundaries

Page 12: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Choosing function units

muxes allowfunction unitsto be sharedfor severaloperations

Page 13: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Building the sequencer

sequencer requires three states,even with no conditionals

Page 14: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Choices during high-level synthesis

Scheduling determines number of clock cycles required; binding determines area, cycle time.

Area tradeoffs must consider shared function units vs. multiplexers, control.

Delay tradeoffs must consider cycle time vs. number of cycles.

Page 15: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Finding schedules

Two simple schedules:– As-soon-as-possible (ASAP) schedule puts

every operation as early in time as possible.– As-late-as-possible (ALAP) schedule puts

every operation as late in schedule as possible. Many schedules exist between ALAP and

ASAP extremes.

Page 16: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

ASAP and ALAP schedules

ASAP

ALAP

Page 17: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Critical path of schedule

Longest path through data flow determines minimum schedule length:

Page 18: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Operator chaining

May execute several operations in sequence in one cycle - operator chaining.

Delay through function units may not be additive, such as through several adders.

Page 19: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Control implementation

Clock cycles are also known as control steps.

Longer schedule means more states in controller.

Cost of controller may be hard to judge from casual inspection of state transition graph.

Page 20: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Controllers and scheduling

functional model:

x <= a + b;

y <= c + d;one state

two states

Page 21: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Distributed control

one centralized controller

two distributed controllers

Page 22: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Synchronized communication between FSMs

To pass values between two machines, must schedule outputof one machine to coincide with input expected by the other:

Page 23: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Hardwired vs. microcoded control

Hardwired control has a state register and “random logic.”

A microcoded machine has a state register which points into a microcode memory.

Styles are equivalent; choice depends on implementation considerations.

Page 24: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Data path-controller delay

Watch out for long delay paths created by combination of data path and controller:

Page 25: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Architectures for low power

Two important methods:– architecture-driven voltage scaling– power-down modes

Page 26: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Architecture-driven voltage scaling

Add extra logic to increase parallelism so that system can run at lower rate.

Power improvement for n parallel units over Vref:– Pn(n) = [1 + Ci(n)/nCref + Cx(n)/Cref](V/Vref)

Page 27: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Power-down modes

CMOS doesn consume power when not transitioning. Many systems can incorporate power-down modes:– condition the clock on power-down mode;– add state to control for power-down mode;– modify the control logic to ensure that power-d

own/power-up don corrupt control state.

Page 28: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Architecture testing

Want to make system as testable as possible with minimum cost in hardware, testing time.

Can use knowledge of architecture to help choose testability points.

May want to modify architecture to improve testability.

Page 29: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Some scan latches are more useful than others

Acyclic register-transfer graphs are easy to test.

Register-transfers with feedback are harder to test - state becomes contaminated during test.

When choosing partial scan registers, choose feedback paths first.

Page 30: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Identifying partial scan opportunities

Construct register graph, which shows connections between registers:– nodes are registers;– edge between two nodes if there is a combinatio

nal path between them. Sequential depth is distance from primary in

put to a node.

Page 31: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Register graph example

machine

register graph

Page 32: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Analyzing register graphs

High sequential depth implies that the register is harder to test.

Registers contained register-graph cycles (FF2-FF3) are hard to test (although self-loops are not hard).

Add partial scan registers to effectively reduce sequential depth of node and its neighbors.

Page 33: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Built-in self test (BIST)

Includes on-chip machine responsible for:– generating tests;– evaluating correctness of tests.

Allows many tests to be applied. Can’t afford large memory for test results -

rely on compression and statistical analysis.

Page 34: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

Generating vectors

Use a linear-feedback shift register to generate a pseudo-random sequence of bit vectors:

Page 35: Modern VLSI Design 2e: Chapter 8 Copyright  1998 Prentice Hall PTR Topics n High-level synthesis. n Architectures for low power. n Testability and architecture.

Modern VLSI Design 2e: Chapter 8 Copyright 1998 Prentice Hall PTR

BIST architecutre

One LFSR to generates test sequence. Another LFSR captures/compresses results. Can store a small number of signatures

which contain expected compressed result for valid system.