Professional Documents
Culture Documents
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Register-transfer design
combinational D Q combinational D Q
logic logic
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Block diagrams
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Register-transfer simulation
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Simulation coding
Hardware description languages are typically
supported by a simulation system: VHDL,
Verilog, etc.
– Simulation engine takes care of scheduling events
during simulation.
Can hand-code a simulation in a programming
language.
– Must be sure that register-transfer events happen in
proper order.
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Sample VHDL code
sync: process begin
wait until CLOCK’event and CLOCK=‘1’;
state <= state_next;
end process sync;
combin: process begin
sync process models
case state is
registers
when S0 =>
combin process models
out1 <= a + c;
combinational logic
state_next <= S1;
...
end process combin;
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Sample C simulator
while (TRUE) {
switch (state) { loop executed once
case S0: per clock cycle
x = a + b;
state = S1; each case corresponds
next; to a state; sets outputs,
case S1: next state
...
}
}
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Data path-controller systems
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Data and control are equivalent
if x = ‘0’ then
reg1 <= a;
else
reg1 <= b;
end if;
code
register-transfer
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Alternate data path-controller
systems
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
ASM charts
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
ASM state
s1 x=a+b
y=c-d+e
o1 = 1
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Actions in state
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Implementing operations in an
ASM state
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Data paths from states
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Function unit sharing example
mux allows +
to compute
a+b, a+c
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Conditionals
F
x a=b
T
00 01 10 11
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Execution of conditionals
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Implementing an ASM branch in
a Moore machine
ASM chart
state transition
graph of
controller
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Mealy machines and ASM
0
i1 y=c+d
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Extracting data path and
controller
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR
Data path-controller extraction
Modern VLSI Design 3e: Chapter 8 Copyright 1998, 2002 Prentice Hall PTR