微處理器 - Lattice LCMXO2-4000HC-4MG132C (STEP-MXO2 V2) - Build nextpnr-machxo2



參考資訊:
https://github.com/YosysHQ/nextpnr

$ sudo apt-get install libeigen3-dev libboost-all-dev

$ cd
$ git clone https://github.com/YosysHQ/nextpnr
$ cd nextpnr
$ git submodule update --init --recursive
$ vim machxo2/CMakeLists.txt
    set(MACHXO2_DEVICES 1200 4000 6900 CACHE STRING
        "Include support for these MachXO2/XO3 devices (available: ${ALL_MACHXO2_DEVICES})")
    message(STATUS "Enabled MachXO2/XO3 devices: ${MACHXO2_DEVICES}")

$ mkdir build
$ cd build
$ cmake -DARCH=machxo2 -DTRELLIS_INSTALL_PREFIX=/usr/local ..
    - Enabled MachXO2/XO3 devices: 1200;4000;6900

$ make -j4
$ sudo make install