mirror of https://github.com/YosysHQ/nextpnr.git
|
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| README.md | ||
| blinky.v | ||
| blinky_tb.v | ||
| simple.sh | ||
| simtest.sh | ||
README.md
MachXO2 Architecture Example
This contains a simple example of running nextpnr-machxo2:
simple.shgenerates JSON output (pnrblinky.json) of a classic blinky example fromblinky.v.simtest.shwill useyosysto generate a Verilog file frompnrblinky.json, calledpnrblinky.v. It will then and comparepnrblinky.v's simulation behavior to the original verilog file (blinky.v) using theiverilogcompiler andvvpruntime. This is known as post-place-and-route simulation.
As nextpnr-machxo2 is developed the contents simple.sh and simtest.sh
are subject to change.
Environment Variables For simple.sh And simtest.sh
YOSYS- Set to the location of theyosysbinary to test. Defaults to theyosyson the path. You may want to set this to ayosysbinary in your source tree if doing development.NEXTPNR- Set to the location of thenextpnr-machxo2binary to test. Defaults to thenextpnr-machxo2binary at the root of thenextpnrsource tree. This should be set, for instance, if doing an out-of-tree build ofnextpnr-machxo2.CELLS_SIM- Set to the location ofmachxo2/cells_sim.vsimulation models. Defaults to whateveryosys-configassociated with the aboveYOSYSbinary returns. You may want to set this to/path/to/yosys/src/share/machxo2/cells_sim.vif doing development;yosys-configcannot find these "before-installation" simulation models.