Preface |
|
xi | |
Acknowledgments |
|
xiii | |
|
1 The Finite State Machine Approach |
|
|
1 | (20) |
|
|
1 | (1) |
|
1.2 Sequential Circuits and State Machines |
|
|
1 | (3) |
|
1.3 State Transition Diagrams |
|
|
4 | (2) |
|
1.4 Equivalent State Transition Diagram Representations |
|
|
6 | (2) |
|
1.5 Under- and Overspecified State Transition Diagrams |
|
|
8 | (3) |
|
|
11 | (1) |
|
1.7 Moore-to-Mealy Conversion |
|
|
12 | (2) |
|
1.8 Mealy-to-Moore Conversion |
|
|
14 | (1) |
|
1.9 Algorithmic State Machine Chart |
|
|
15 | (1) |
|
1.10 When to Use the FSM Approach |
|
|
16 | (1) |
|
1.11 List of Main Machines Included in the Book |
|
|
17 | (1) |
|
|
18 | (3) |
|
2 Hardware Fundamentals---Part I |
|
|
21 | (18) |
|
|
21 | (1) |
|
|
21 | (3) |
|
2.3 Metastability and Synchronizers |
|
|
24 | (4) |
|
|
28 | (1) |
|
|
29 | (3) |
|
2.6 Pipelined Implementations |
|
|
32 | (1) |
|
|
33 | (6) |
|
3 Hardware Fundamentals---Part II |
|
|
39 | (34) |
|
|
39 | (1) |
|
3.2 Hardware Architectures for State Machines |
|
|
39 | (2) |
|
3.3 Fundamental Design Technique for Moore Machines |
|
|
41 | (3) |
|
3.4 Fundamental Design Technique for Mealy Machines |
|
|
44 | (2) |
|
3.5 Moore versus Mealy Time Behavior |
|
|
46 | (1) |
|
3.6 State Machine Categories |
|
|
47 | (2) |
|
3.7 State-Encoding Options |
|
|
49 | (3) |
|
3.7.1 Sequential Binary Encoding |
|
|
49 | (1) |
|
|
50 | (1) |
|
|
50 | (1) |
|
|
50 | (1) |
|
3.7.5 Modified One-Hot Encoding with All-Zero State |
|
|
51 | (1) |
|
3.7.6 Other Encoding Schemes |
|
|
52 | (1) |
|
|
52 | (2) |
|
|
54 | (2) |
|
3.10 Capturing the First Bit |
|
|
56 | (2) |
|
3.11 Storing the Final Result |
|
|
58 | (2) |
|
3.12 Multimachine Designs |
|
|
60 | (2) |
|
3.13 State Machines for Datapath Control |
|
|
62 | (5) |
|
|
67 | (6) |
|
4 Design Steps and Classical Mistakes |
|
|
73 | (8) |
|
|
73 | (1) |
|
4.2 Classical Problems and Mistakes |
|
|
73 | (6) |
|
4.2.1 Skipping the State Transition Diagram |
|
|
73 | (1) |
|
|
73 | (1) |
|
4.2.3 Incorrect State Transition Diagram Composition |
|
|
74 | (1) |
|
4.2.4 Existence of State Bypass |
|
|
75 | (1) |
|
|
75 | (1) |
|
4.2.6 Lack of Synchronizers |
|
|
76 | (1) |
|
4.2.7 Incorrect Timer Construction |
|
|
76 | (1) |
|
4.2.8 Incomplete VHDL/SystemVerilog Code |
|
|
76 | (2) |
|
4.2.9 Overregistered VHDL/SystemVerilog Code |
|
|
78 | (1) |
|
|
79 | (2) |
|
5 Regular (Category 1) State Machines |
|
|
81 | (24) |
|
|
81 | (1) |
|
5.2 Architectures for Regular (Category 1) Machines |
|
|
82 | (2) |
|
|
84 | (1) |
|
5.4 Examples of Regular (Category 1) Machines |
|
|
84 | (13) |
|
|
84 | (1) |
|
|
85 | (1) |
|
5.4.3 Basic One-Shot Circuit |
|
|
86 | (2) |
|
5.4.4 Temperature Controller |
|
|
88 | (1) |
|
5.4.5 Garage Door Controller |
|
|
89 | (1) |
|
5.4.6 Vending Machine Controller |
|
|
90 | (1) |
|
5.4.7 Datapath Control for an Accumulator |
|
|
91 | (2) |
|
5.4.8 Datapath Control for a Greatest Common Divisor Calculator |
|
|
93 | (2) |
|
5.4.9 Generic Sequence Detector |
|
|
95 | (1) |
|
5.4.10 Transparent Circuits |
|
|
96 | (1) |
|
5.4.11 LCD, I2C, and SPI Interfaces |
|
|
97 | (1) |
|
|
97 | (8) |
|
6 VHDL Design of Regular (Category 1) State Machines |
|
|
105 | (24) |
|
|
105 | (1) |
|
6.2 General Structure of VHDL Code |
|
|
105 | (2) |
|
6.3 VHDL Template for Regular (Category 1) Moore Machines |
|
|
107 | (4) |
|
|
111 | (3) |
|
6.4.1 Combinational Logic Separated into Two Processes |
|
|
111 | (1) |
|
6.4.2 State Register Plus Output Register in a Single Process |
|
|
112 | (1) |
|
6.4.3 Using Default Values |
|
|
112 | (1) |
|
6.4.4 A Dangerous Template |
|
|
113 | (1) |
|
6.5 VHDL Template for Regular (Category 1) Mealy Machines |
|
|
114 | (2) |
|
6.6 Design of a Small Counter |
|
|
116 | (4) |
|
6.7 Design of a Garage Door Controller |
|
|
120 | (3) |
|
6.8 Design of a Datapath Controller for a Greatest Common Divisor Calculator |
|
|
123 | (3) |
|
|
126 | (3) |
|
7 SystemVerilog Design of Regular (Category 1) State Machines |
|
|
129 | (14) |
|
|
129 | (1) |
|
7.2 General Structure of SystemVerilog Code |
|
|
129 | (1) |
|
7.3 SystemVerilog Template for Regular (Category 1) Moore Machines |
|
|
130 | (3) |
|
7.4 SystemVerilog Template for Regular (Category 1) Mealy Machines |
|
|
133 | (2) |
|
7.5 Design of a Small Counter |
|
|
135 | (2) |
|
7.6 Design of a Garage Door Controller |
|
|
137 | (3) |
|
7.7 Design of a Datapath Controller for a Greatest Common Divisor Calculator |
|
|
140 | (1) |
|
|
141 | (2) |
|
8 Timed (Category 2) State Machines |
|
|
143 | (42) |
|
|
143 | (1) |
|
8.2 Architectures for Timed (Category 2) Machines |
|
|
144 | (2) |
|
|
146 | (1) |
|
8.3.1 Time Measurement Unit |
|
|
146 | (1) |
|
|
146 | (1) |
|
|
146 | (1) |
|
8.4 Transition Types and Timer Usage |
|
|
147 | (1) |
|
8.5 Timer Control Strategies |
|
|
147 | (6) |
|
8.5.1 Preliminary Analysis |
|
|
148 | (1) |
|
8.5.2 Timer Control Strategy #1 (Generic) |
|
|
149 | (1) |
|
8.5.3 Timer Control Strategy #2 (Nongeneric) |
|
|
150 | (1) |
|
8.5.4 Time Behavior of Strategies #1 and #2 |
|
|
151 | (2) |
|
8.6 Truly Complementary Time-Based Transition Conditions |
|
|
153 | (1) |
|
8.7 Repetitively Looped State Machines |
|
|
154 | (1) |
|
8.8 Time Behavior of Timed Moore Machines |
|
|
155 | (1) |
|
8.9 Time Behavior of Timed Mealy Machines |
|
|
156 | (2) |
|
8.10 Number of Flip-Flops |
|
|
158 | (1) |
|
8.11 Examples of Timed (Category 2) Machines |
|
|
158 | (18) |
|
|
159 | (1) |
|
|
160 | (1) |
|
|
161 | (2) |
|
8.11.4 Reference-Value Definer |
|
|
163 | (3) |
|
8.11.5 Traffic Light Controller |
|
|
166 | (1) |
|
8.11.6 Car Alarm (with Chirps) |
|
|
167 | (1) |
|
|
168 | (2) |
|
8.11.8 Triggered Circuits |
|
|
170 | (2) |
|
|
172 | (1) |
|
|
173 | (3) |
|
|
176 | (9) |
|
9 VHDL Design of Timed (Category 2) State Machines |
|
|
185 | (22) |
|
|
185 | (1) |
|
9.2 VHDL Template for Timed (Category 2) Moore Machines |
|
|
185 | (4) |
|
9.3 VHDL Template for Timed (Category 2) Mealy Machines |
|
|
189 | (2) |
|
9.4 Design of a Light Rotator |
|
|
191 | (3) |
|
9.5 Design of a Car Alarm (with Chirps) |
|
|
194 | (4) |
|
9.6 Design of a Triggered Monostable Circuit |
|
|
198 | (3) |
|
|
201 | (6) |
|
10 SystemVerilog Design of Timed (Category 2) State Machines |
|
|
207 | (14) |
|
|
207 | (1) |
|
10.2 SystemVerilog Template for Timed (Category 2) Moore Machines |
|
|
207 | (3) |
|
10.3 SystemVerilog Template for Timed (Category 2) Mealy Machines |
|
|
210 | (2) |
|
10.4 Design of a Light Rotator |
|
|
212 | (2) |
|
10.5 Design of a Car Alarm (with Chirps) |
|
|
214 | (3) |
|
10.6 Design of a Triggered Monostable Circuit |
|
|
217 | (3) |
|
|
220 | (1) |
|
11 Recursive (Category 3) State Machines |
|
|
221 | (24) |
|
|
221 | (1) |
|
11.2 Recursive (Category 3) State Machines |
|
|
222 | (1) |
|
11.3 Architectures for Recursive (Category 3) Machines |
|
|
223 | (1) |
|
11.4 Category 3 to Category 1 Conversion |
|
|
224 | (1) |
|
11.5 Repetitively Looped Category 3 Machines |
|
|
225 | (1) |
|
11.6 Number of Flip-Flops |
|
|
226 | (1) |
|
11.7 Examples of Recursive (Category 3) State Machines |
|
|
226 | (14) |
|
|
226 | (2) |
|
11.7.2 Long-String Comparator |
|
|
228 | (1) |
|
11.7.3 Reference-Value Definer |
|
|
229 | (2) |
|
11.7.4 Reference-Value Definer with Embedded Debouncer |
|
|
231 | (1) |
|
11.7.5 Datapath Control for a Sequential Multiplier |
|
|
232 | (2) |
|
11.7.6 Sequential Divider |
|
|
234 | (2) |
|
11.7.7 Serial Data Receiver |
|
|
236 | (1) |
|
|
237 | (3) |
|
|
240 | (5) |
|
12 VHDL Design of Recursive (Category 3) State Machines |
|
|
245 | (20) |
|
|
245 | (1) |
|
12.2 VHDL Template for Recursive (Category 3) Moore Machines |
|
|
245 | (3) |
|
12.3 VHDL Template for Recursive (Category 3) Mealy Machines |
|
|
248 | (1) |
|
12.4 Design of a Datapath Controller for a Multiplier |
|
|
249 | (3) |
|
12.5 Design of a Serial Data Receiver |
|
|
252 | (4) |
|
12.6 Design of a Memory Interface |
|
|
256 | (5) |
|
|
261 | (4) |
|
13 SystemVerilog Design of Recursive (Category 3) State Machines |
|
|
265 | (14) |
|
|
265 | (1) |
|
13.2 SystemVerilog Template for Recursive (Category 3) Moore Machines |
|
|
265 | (2) |
|
13.3 SystemVerilog Template for Recursive (Category 3) Mealy Machines |
|
|
267 | (1) |
|
13.4 Design of a Datapath Controller for a Multiplier |
|
|
268 | (3) |
|
13.5 Design of a Serial Data Receiver |
|
|
271 | (2) |
|
13.6 Design of a Memory Interface |
|
|
273 | (5) |
|
|
278 | (1) |
|
14 Additional Design Examples |
|
|
279 | (40) |
|
|
279 | (11) |
|
|
279 | (4) |
|
14.1.2 Typical FSM Structure for Alphanumeric LCD Drivers |
|
|
283 | (1) |
|
14.1.3 Complete Design Example: Clock with LCD Display |
|
|
284 | (6) |
|
|
290 | (15) |
|
|
290 | (1) |
|
14.2.2 Open-Drain Outputs |
|
|
291 | (1) |
|
|
292 | (3) |
|
14.2.4 Typical FSM Structure for I2C Applications |
|
|
295 | (1) |
|
14.2.5 Complete Design Example: RTC (Real-Time Clock) Interface |
|
|
296 | (9) |
|
|
305 | (10) |
|
|
305 | (1) |
|
|
306 | (1) |
|
14.3.3 Complete Design Example: FRAM (Ferroelectric RAM) Interface |
|
|
307 | (8) |
|
|
315 | (4) |
|
15 Pointer-Based FSM Implementation |
|
|
319 | (12) |
|
|
319 | (1) |
|
|
319 | (2) |
|
15.3 Serial Data Transmitter |
|
|
321 | (1) |
|
15.4 Serial Data Receiver |
|
|
322 | (3) |
|
15.5 SPI Interface for an FRAM |
|
|
325 | (4) |
|
|
329 | (2) |
Bibliography |
|
331 | (2) |
Index |
|
333 | |