Professional Documents
Culture Documents
Topics: Basics of Register-Transfer Design
Topics: Basics of Register-Transfer Design
Copyright
Register-transfer design
A register-transfer system is a sequential
machine.
Register-transfer design is structural
complex combinations of state machines may
not be easily described solely by a large state
transition graph.
Register-transfer design concentrates on
functionality, not details of logic design.
Copyright
combinational
logic
combinational
logic
combinational
logic
Copyright
Block diagrams
Block diagrams specify structure:
Copyright
wire bundle
of width 5
Register-transfer simulation
Simulates to clock-cycle accuracy. Doesnt
guarantee timing.
Important to get proper function of machine
before jumping into detailed logic design.
(But be sure to take into account critical
delays when choosing register-transfer
organization.)
Copyright
Simulation coding
Copyright
Copyright
Sample C simulator
while (TRUE) {
switch (state) {
case S0:
x = a + b;
state = S1;
next;
case S1:
...
}
}
Copyright
Copyright
Copyright
Data operators
Copyright
Copyright
controller
data path
data path
one controller,
one data path
controller
data path
two communicating
data path-controller
systems
Copyright
ASM charts
An ASM chart is a register-transfer
description.
ASM charts let us describe function without
choosing a partitioning between control and
data.
Once we have specified the function, we can
refine it into a block diagram which
partitions data and control.
Copyright
Copyright
ASM state
x=a+b
y=c-d+e
o1 = 1
Copyright
Actions in state
Actions in a state are unconditionally
executed.
A state can execute as many actions as you
want, but you must eventually supply
hardware for all those actions.
A register may be assigned to only once in a
state (single-assignment rule).
Copyright
Implementing operations in an
ASM state
Copyright
Sequences of states
States are linked by transitions.
States are executed sequentially. Each state
may take independent actions (including
assigning to a variable assigned to in a
previous state).
s1
x=a+b
s2
x=c+d
y=a+d
Copyright
Copyright
mux allows +
to compute
a+b, a+c
Copyright
Conditionals
Conditional chooses which state to execute
next based on primary input or present state
value.
Can be drawn in either of two ways:
x
00
Modern VLSI Design 3e: Chapter 8
01
a=b
10
11
T
Copyright
Execution of conditionals
An ASM chart describes a Moore sequential
machine. If the logic associated with an
ASM chart fragment doesnt correspond to
a legal sequential machine, then it isnt a
legal ASM chart.
Conditional can evaluate only present state
or primary input value on present cycle.
Copyright
state transition
graph of
controller
Copyright
i1
y=c+d
Copyright
Copyright
Copyright