Commit 907ace7a authored by Jules Gonzalez's avatar Jules Gonzalez
Browse files

Update tuto_nmigen.md

parent 3f034ec4
# Nmigen Tutorial
**Python version used :** Python 3.8.5
## Installation
**Nmigen :**
Click on [this link][1] to access a Github containing all the information needed to install Nmigen on different operating systems and other tools to interact with the FPGA card.
[1]: https://github.com/RobertBaruch/nmigen-tutorial
---
During the installation of Next-PNR, we faced some issues that were solved using the following command lines :
*#NIX installation*
`curl -L https://nixos.org/nix/install | sh`
*#Creation of a shell containing the dependencies expected in the PATH, run this line for each new shell (it is faster after the first time because every files will already exist)*
`nix-shell -p icestorm nextpnr yosys 'python3.withPackages (ps: with ps; [ nmigen nmigen-boards ])'`
*#Test on examples*
`git clone https://github.com/icebreaker-fpga/icebreaker-nmigen-examples.git`
`cd icebreaker-nmigen-examples/blink`
`python3 blink.py`
---
Note that you need to replace these terms :
*-from nmigen_boards.icebreaker -> nmigen_boards.icestick*
*- ICEBreakerPlatform -> ICEStickPlatform*
*- led = platform.request("led_r") -> led = platform.request("led")*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment