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

4

Counting Button Presses

In Chapter 3, Combinational Logic, we learned the basics of Hardware Description Language (HDL) designs by creating a simple design that could detect the number of switches that are on, and the position of the highest switch. The design also featured addition, subtraction, and multiplication. We also discussed signed and unsigned numbers as well as some constructs we needed for our implementation. This was a good first step, but we lacked the ability to store values, which meant that when we released our operator button, the output would go to all 0s.

In this chapter, we’ll learn how to maintain the state of a design by adding sequential elements. Limited to combinational logic with no way to store information, we can’t ...

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