5 TESTING YOUR CODE WITH SIMULATION

There are two ways to find the bugs that will inevitably arise in an FPGA design. The first is to program the FPGA, run it, and see what happens. This is called finding bugs on hardware. The other way is to use a computer to inject test cases into your FPGA code to see how the code responds before you actually program the FPGA. This is called finding bugs in simulation.

For very simple projects, such as the ones we’ve explored so far in this book, jumping straight to programming the FPGA without any kind of simulation may be a reasonable approach (and it’s the one we’ve taken up to this point). However, ...

Get Getting Started with FPGAs now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.