Skip to Main Content
The FPGA Programming Handbook - Second Edition
book

The FPGA Programming Handbook - Second Edition

by Frank Bruno, Guy Eschemann
April 2024
Intermediate to advanced content levelIntermediate to advanced
550 pages
11h 36m
English
Packt Publishing
Content preview from The FPGA Programming Handbook - Second Edition

5

Let’s Build a Calculator

In Chapter 4, Counting Button Presses, we learned how to store values using Flip Flops (FFs). We learned about timing and constraints, simulation and delta cycles, and clock domain crossing. In this chapter, we are going to use our HDL knowledge of combinational logic and sequential elements to discuss state machine design. We’ll look at classic state machine designs and develop a traffic light controller, a staple of Electrical Engineering (EE) projects.

We’ve built a controller for a seven-segment display that we can use to show numerical values and we know how to handle button and switch inputs safely. Now, we’ll take this knowledge and show how we can define a state machine to keep track of the calculations we ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Programming with STM32: Getting Started with the Nucleo Board and C/C++

Programming with STM32: Getting Started with the Nucleo Board and C/C++

Donald Norris

Publisher Resources

ISBN: 9781805125594Supplemental Content