[Runtime] SpinalHDL v1.3.9 git head : a4cb4aadf0820174c1b48023bfcd3e9981de1d4a [Runtime] JVM max memory : 1820.5MiB [Runtime] Current date : 2020.01.23 10:44:55 [Progress] at 0.000 : Elaborate components [Progress] at 0.513 : Checks and transforms [Progress] at 0.705 : Generate Verilog [Done] at 0.806
# pacman -Syuu :: 正在同步软件包数据库... 错误:无法从 repo.msys2.org : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'mingw32.db'] 49% 错误:无法从 sourceforge.net : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'mingw32.db' 3% 错误:无法从 www2.futureware.at : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'mingw32.db'7% 错误:无法从 mirror.yandex.ru : Operation too slow. Less than 1 bytes/sec transferred the last 10 seconds 获取文件 'mingw32.db' 10% 错误:无法升级 mingw32 (下载数据库出错)
Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/i686
编辑 /etc/pacman.d/mirrorlist.mingw64 ,在文件开头添加:
1
Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/mingw/x86_64
编辑 /etc/pacman.d/mirrorlist.msys ,在文件开头添加:
1
Server = https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$arch
然后执行 pacman -Sy 刷新软件包数据即可。
Step3: Install Verilator
1 2 3 4 5 6
pacman -Syuu #Close the MSYS2 shell once you're asked to pacman -Syuu pacman -S --needed base-devel mingw-w64-x86_64-toolchain \ git flex\ mingw-w64-x86_64-cmake
1
pacman -S mingw-w64-x86_64-verilator
Step4: Add to ENV
Add D:\msys64\usr\bin;D:\msys64\mingw64\bin to you windows PATH
Step4: Spinal simulation by verialtor
1 2 3 4 5 6 7 8 9 10 11 12
[Progress] Verilator compilation started VDFT2Cell.mk:67: /mingw64/share/verilator/include/verilated.mk: No such file or directory make: *** No rule to make target '/mingw64/share/verilator/include/verilated.mk'. Stop. Exception in thread "main" java.lang.AssertionError: assertion failed: Verilator C++ model compilation failed at scala.Predef$.assert(Predef.scala:170) at spinal.sim.VerilatorBackend.compileVerilator(VerilatorBackend.scala:376) at spinal.sim.VerilatorBackend.<init>(VerilatorBackend.scala:429) at spinal.core.sim.SpinalVerilatorBackend$.apply(SimBootstraps.scala:120) at spinal.core.sim.SpinalSimConfig.compile(SimBootstraps.scala:400) at spinal.core.sim.SpinalSimConfig.compile(SimBootstraps.scala:364) at FFT.DFT2CellTest$.main(FFTsim.scala:27) at FFT.DFT2CellTest.main(FFTsim.scala)
x86_64-w64-mingw32-g++.exe: error: /d/msys64/mingw64/share/verilator/include/verilated.cpp: No such file or directory x86_64-w64-mingw32-g++.exe: fatal error: no input files compilation terminated. make: *** [/d/msys64/mingw64/share/verilator/include/verilated.mk:192: verilated.o] Error 1 make: *** Waiting for unfinished jobs.... x86_64-w64-mingw32-g++.exe: error: /d/msys64/mingw64/share/verilator/include/verilated_vcd_c.cpp: No such file or directory x86_64-w64-mingw32-g++.exe: fatal error: no input files compilation terminated. Exception in thread "main" java.lang.AssertionError: assertion failed: Verilator C++ model compilation failed
任然遇到问题: 检查环境变量Paht的值为C:\Users\Administrator\.babun\cygwin\bin;D:\Program\emacs-26.2\bin;C:\Users\Administrator\.babun;C:\Users\Administrator\AppData\Roaming\npm;%IntelliJ IDEA Community Edition%;C:\Users\Administrator\AppData\Local\Pandoc\;c:\msys64\usr\bin\;c:\msys64\mingw64\bin\ 发现很乱 ,删除一些不用的 D:\Program\emacs-26.2\bin;C:\Users\Administrator\.babun;C:\Users\Administrator\AppData\Local\Pandoc\;c:\msys64\usr\bin\;c:\msys64\mingw64\bin\; 更新PATH