SymbiFlow / conda-packages

Conda build recipes for the toolchains needed by LiteX / MiSoC firmware
https://github.com/mithro/HDMI2USB-litex-firmware
Apache License 2.0
2 stars 10 forks source link

nextpnr-xilinx: add all artix devices #141

Closed acomodi closed 4 years ago

acomodi commented 4 years ago

Signed-off-by: Alessandro Comodi acomodi@antmicro.com

This PR adds two additional devices for nextpnr-xilinx:

mithro commented 4 years ago

LGTM!

mithro commented 4 years ago

However,

+ python xilinx/python/bbaexport.py --device xc7a100tcsg324-1 --bba /tmp/.../conda/conda-bld/nextpnr-xilinx_1602142033573/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho/share/nextpnr-xilinx/xc7a100tcsg324-1.bba
Traceback (most recent call last):
  File "xilinx/python/bbaexport.py", line 347, in <module>
    main()
  File "xilinx/python/bbaexport.py", line 28, in main
    d = import_device(args.device, xraydb_root, metadata_root)
  File "/tmp/.../conda/conda-bld/nextpnr-xilinx_1602142033573/work/xilinx/python/xilinx_device.py", line 457, in import_device
    with open(prjxray_root + "/" + name + "/tilegrid.json") as gf:
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/.../conda/conda-bld/nextpnr-xilinx_1602142033573/work/xilinx/python/../external/prjxray-db/artix7/xc7a100tcsg324-1/tilegrid.json'
Traceback (most recent call last):
  File "/tmp/.../conda/bin/conda-build", line 11, in <module>
    sys.exit(main())
  File "/tmp/.../conda/lib/python3.8/site-packages/conda_build/cli/main_build.py", line 474, in main
    execute(sys.argv[1:])
  File "/tmp/.../conda/lib/python3.8/site-packages/conda_build/cli/main_build.py", line 463, in execute
    outputs = api.build(args.recipe, post=args.post, test_run_post=args.test_run_post,
  File "/tmp/.../conda/lib/python3.8/site-packages/conda_build/api.py", line 186, in build
    return build_tree(
  File "/tmp/.../conda/lib/python3.8/site-packages/conda_build/build.py", line 3000, in build_tree
    packages_from_this = build(metadata, stats,
  File "/tmp/.../conda/lib/python3.8/site-packages/conda_build/build.py", line 2125, in build
    utils.check_call_env(cmd, env=env, rewrite_stdout_env=rewrite_env,
  File "/tmp/.../conda/lib/python3.8/site-packages/conda_build/utils.py", line 410, in check_call_env
    return _func_defaulting_env_to_os_environ('call', *popenargs, **kwargs)
  File "/tmp/.../conda/lib/python3.8/site-packages/conda_build/utils.py", line 390, in _func_defaulting_env_to_os_environ
    raise subprocess.CalledProcessError(proc.returncode, _args)
acomodi commented 4 years ago

We need to wait for https://github.com/daveshah1/nextpnr-xilinx/pull/23, as we need to bump the prjxray-db with the 100T and 200T parts

mithro commented 4 years ago

Build at https://travis-ci.com/github/SymbiFlow/conda-packages/jobs/400238882 seems to indicate it is working;

bin/nextpnr-xilinx
info/about.json
info/files
info/git
info/hash_input.json
info/has_prefix
info/index.json
info/licenses/COPYING
info/paths.json
info/recipe/build.sh
info/recipe/conda_build_config.yaml
info/recipe/meta.yaml
info/recipe/meta.yaml.template
info/recipe/recipe_append.yaml
info/test/run_test.sh
share/nextpnr-xilinx/xc7a100tcsg324-1.bba
share/nextpnr-xilinx/xc7a100tcsg324-1.bin
share/nextpnr-xilinx/xc7a200tsbg484-1.bba
share/nextpnr-xilinx/xc7a200tsbg484-1.bin
share/nextpnr-xilinx/xc7a35tcpg236-1.bba
share/nextpnr-xilinx/xc7a35tcpg236-1.bin
share/nextpnr-xilinx/xc7a35tcsg324-1.bba
share/nextpnr-xilinx/xc7a35tcsg324-1.bin
share/nextpnr-xilinx/xc7z010clg400-1.bba
share/nextpnr-xilinx/xc7z010clg400-1.bin
share/nextpnr-xilinx/xc7z020clg484-1.bba
share/nextpnr-xilinx/xc7z020clg484-1.bin

BTW - Does nextpnr actually require both the .bba and the .bin?

Travis CI - Test and Deploy with Confidence
Travis CI enables your team to test and ship your apps with confidence. Easily sync your projects with Travis CI and you'll be testing your code in minutes.