nextpnr/machxo2/examples
gatecat 510969ab97 Create machxo2 backend (renamed from generic).
Signed-off-by: William D. Jones <thor0505@comcast.net>
2021-02-12 10:36:59 +00:00
..
__init__.py Create machxo2 backend (renamed from generic). 2021-02-12 10:36:59 +00:00
.gitignore Create machxo2 backend (renamed from generic). 2021-02-12 10:36:59 +00:00
bitstream.py Create machxo2 backend (renamed from generic). 2021-02-12 10:36:59 +00:00
blinky_tb.v Create machxo2 backend (renamed from generic). 2021-02-12 10:36:59 +00:00
blinky.v Create machxo2 backend (renamed from generic). 2021-02-12 10:36:59 +00:00
README.md Create machxo2 backend (renamed from generic). 2021-02-12 10:36:59 +00:00
simple_config.py Create machxo2 backend (renamed from generic). 2021-02-12 10:36:59 +00:00
simple_timing.py Create machxo2 backend (renamed from generic). 2021-02-12 10:36:59 +00:00
simple.py Create machxo2 backend (renamed from generic). 2021-02-12 10:36:59 +00:00
simple.sh Create machxo2 backend (renamed from generic). 2021-02-12 10:36:59 +00:00
simtest.sh Create machxo2 backend (renamed from generic). 2021-02-12 10:36:59 +00:00
write_fasm.py Create machxo2 backend (renamed from generic). 2021-02-12 10:36:59 +00:00

MachXO2 Architecture Example

This contains a simple example of the nextpnr machxo2 API. As time goes on, python scripts required as boilerplate will be removed.

  • simple.py procedurally generates a simple FPGA architecture with IO at the edges, logic slices in all other tiles, and interconnect only between adjacent tiles

  • simple_timing.py annotates cells with timing data (this is a separate script that must be run after packing)

  • write_fasm.py uses the nextpnr Python API to write a FASM file for a design

  • bitstream.py uses write_fasm.py to create a FASM ("FPGA assembly") file for the place-and-routed design

  • Run simple.sh to build an example design on the FPGA above