Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to debug the fpga? #537

Open
peteasa opened this issue Dec 9, 2024 · 3 comments
Open

how to debug the fpga? #537

peteasa opened this issue Dec 9, 2024 · 3 comments

Comments

@peteasa
Copy link
Contributor

peteasa commented Dec 9, 2024

I wonder if anyone has used iverilog to debug the FPGA? That plus gtkwave are a very powerful pair of applications to debug.

It would require a bit of setup with some test scripts but might help debug custom FPGA changes.

@peteasa
Copy link
Contributor Author

peteasa commented Dec 11, 2024

Here is an example of the output from gtkwave during the startup of the iir module
startup_4_loops

@nano-aaiv
Copy link

I haven't! But I'm interested in this topic. What's the advantage of iverilog? Can we use vivado's simulator for this purpose?

@peteasa
Copy link
Contributor Author

peteasa commented Dec 18, 2024

The advantage of iverilog is that it is quick to make changes and re-run the simulation. I have pushed my version of the harness here https://github.com/peteasa/pyrpl_testbench/tree/main/fpga. This does not replace the vivado simulator, its just very quick to run with little overhead.

Also I like to keep the test code separate from the production code. It seems very easy to do that with the iverilog compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants