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

Could you provide instructions and an small example? #16

Open
rodrigomelo9 opened this issue Nov 1, 2021 · 2 comments
Open

Could you provide instructions and an small example? #16

rodrigomelo9 opened this issue Nov 1, 2021 · 2 comments

Comments

@rodrigomelo9
Copy link

Hi. I know that it is experimental, but I saw a blinking led several months ago on Twitter (I didn't find it again). I have a DE10-nano and I want to try (as far I remember, the example was in this same board).

Regards,
Rodrigo

@Ravenslofty
Copy link
Owner

So, first, you need Yosys. Build it with make -jN, install it with sudo make install. You should now have a command called yosys.

Next, download Mistral, and set MISTRAL_ROOT as the path to it. While you can build the source to get the mistral-cv command, normally Mistral and nextpnr are built together.

Next, download nextpnr, make a build directory inside the nextpnr source and enter it, build it with cmake .. -DARCH=mistral -DMISTRAL_ROOT=$MISTRAL_ROOT && make -jN, install it with sudo make install. If the build fails due to running out of memory, just retry it. You should now have a command called nextpnr-mistral.

Next, download openFPGALoader, make a build directory within the source directory, enter it, run cmake .. && make -jN, and install it with sudo make install. You should now have the command openFPGALoader.

Finally, download mistral-test, enter the tests directory, edit the Makefile to remove the --compress-rbf option from nextpnr (compressed bitstreams cannot be loaded through JTAG), run make blinky.rbf to build the bitstream, and then openFPGALoader -b de10nano blinky.rbf.

@rodrigomelo9
Copy link
Author

Great! Thanks. I will try and let you know.

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