Skip to content

Instantly share code, notes, and snippets.

@nevercast
Created July 10, 2020 02:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nevercast/118dae3721730a80f7b2897c58c881ec to your computer and use it in GitHub Desktop.
Save nevercast/118dae3721730a80f7b2897c58c881ec to your computer and use it in GitHub Desktop.
$ python examples/uart_tx.py --build
Building only...
ABC command line: "source /tmp/yosys-abc-000000/abc.script".
+ read_blif /tmp/yosys-abc-000000/input.blif
+ read_lut /tmp/yosys-abc-000000/lutdefs.txt
+ strash
+ ifraig
+ scorr
Warning: The network is combinational (run "fraig" or "fraig_sweep").
+ dc2
+ dretime
+ strash
+ dch -f
+ if
+ mfs2
+ lutpack -S 1
+ dress
Total number of equiv classes = 44.
Participating nodes from both networks = 94.
Participating nodes from the first network = 43. ( 58.90 % of nodes)
Participating nodes from the second network = 51. ( 69.86 % of nodes)
Node pairs (any polarity) = 43. ( 58.90 % of names can be moved)
Node pairs (same polarity) = 41. ( 56.16 % of names can be moved)
Total runtime = 0.00 sec
+ write_blif /tmp/yosys-abc-000000/output.blif
ERROR: Failed to parse JSON file 'top.json': unexpected trailing 'i' (105).
Traceback (most recent call last):
File "C:\Python37\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Python37\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\Projects\FPGA\TinyFPGA BX\nMigenExperiments\.venv\Scripts\yowasp-nextpnr-ice40.exe\__main__.py", line 7, in <module>
File "d:\projects\fpga\tinyfpga bx\nmigenexperiments\.venv\lib\site-packages\yowasp_nextpnr_ice40\__init__.py", line 85, in _run_nextpnr_ice40_argv
sys.exit(run_nextpnr_ice40(sys.argv[1:]))
File "d:\projects\fpga\tinyfpga bx\nmigenexperiments\.venv\lib\site-packages\yowasp_nextpnr_ice40\__init__.py", line 81, in run_nextpnr_ice40
return _run_wasm_app("nextpnr-ice40.wasm", ["yowasp-nextpnr-ice40", *argv])
File "d:\projects\fpga\tinyfpga bx\nmigenexperiments\.venv\lib\site-packages\yowasp_nextpnr_ice40\__init__.py", line 33, in _run_wasm_app
app.exports["_start"]()
File "d:\projects\fpga\tinyfpga bx\nmigenexperiments\.venv\lib\site-packages\wasmtime\_func.py", line 115, in __call__
raise Trap.__from_ptr__(trap)
wasmtime._trap.Trap: wasm trap: unreachable
wasm backtrace:
0: 0x1685ed - <unknown>!<wasm function 2901>
1: 0x16190b - <unknown>!<wasm function 2823>
2: 0x161938 - <unknown>!<wasm function 2824>
3: 0x15192 - <unknown>!<wasm function 243>
4: 0x14cb5 - <unknown>!<wasm function 234>
5: 0x97308 - <unknown>!<wasm function 907>
6: 0x9bef - <unknown>!<wasm function 53>
7: 0xbd8e - <unknown>!<wasm function 62>
8: 0xd5fcb - <unknown>!<wasm function 1054>
9: 0x168a07 - <unknown>!<wasm function 2908>
10: 0x168a8f - <unknown>!<wasm function 2910>
11: 0x1685f2 - <unknown>!<wasm function 2902>
12: 0x1768 - <unknown>!<wasm function 21>
Traceback (most recent call last):
File "examples/uart_tx.py", line 79, in <module>
test_bench
File "D:\Projects\FPGA\TinyFPGA BX\nMigenExperiments\examples\helper\entry.py", line 15, in sim_or_program
platform.build(top, do_program=False)
File "D:\Projects\FPGA\TinyFPGA BX\nMigenExperiments\.venv\lib\site-packages\nmigen\build\plat.py", line 94, in build
products = plan.execute_local(build_dir)
File "D:\Projects\FPGA\TinyFPGA BX\nMigenExperiments\.venv\lib\site-packages\nmigen\build\run.py", line 93, in execute_local
subprocess.check_call(["cmd", "/c", "call {}.bat".format(self.script)])
File "C:\Python37\lib\subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmd', '/c', 'call build_top.bat']' returned non-zero exit status 1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment