Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PicoSoC demo does not work out of the box #377

Open
JamesTimothyMeech opened this issue Apr 28, 2023 · 3 comments
Open

PicoSoC demo does not work out of the box #377

JamesTimothyMeech opened this issue Apr 28, 2023 · 3 comments

Comments

@JamesTimothyMeech
Copy link

JamesTimothyMeech commented Apr 28, 2023

When I attempt to build the PicoSoC demo by running TARGET="arty_100" make -C picosoc_demo

it initially appears to build the example but then I get his error:

Successfully finished Verilog frontend. Can't open input file /usr/local/xc7/share/f4pga/techmaps/xc7_vpr/techmap/iobs.v' for reading: No such file or directory ERROR: TCL interpreter returned an error: Yosys command produced an error Traceback (most recent call last): File "/home/james/.conda/envs/xc7/bin/symbiflow_synth", line 8, in <module> sys.exit(synth()) File "/home/james/.conda/envs/xc7/lib/python3.7/site-packages/f4pga/wrappers/sh/__init__.py", line 571, in synth p_run_sh_script(ROOT / SH_SUBDIR / "synth.f4pga.sh", env=env) File "/home/james/.conda/envs/xc7/lib/python3.7/site-packages/f4pga/wrappers/sh/__init__.py", line 51, in p_run_sh_script check_call([str(script)] + sys_argv[1:], env=env) File "/home/james/.conda/envs/xc7/lib/python3.7/subprocess.py", line 363, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/home/james/.conda/envs/xc7/lib/python3.7/site-packages/f4pga/wrappers/sh/xc7/synth.f4pga.sh', '-t', 'top', '-v', '/home/james/Desktop/Casino/f4pga-examples/xc7/picosoc_demo/picosoc_noflash.v', '/home/james/Desktop/Casino/f4pga-examples/xc7/picosoc_demo/picorv32.v', '/home/james/Desktop/Casino/f4pga-examples/xc7/picosoc_demo/simpleuart.v', '/home/james/Desktop/Casino/f4pga-examples/xc7/picosoc_demo/progmem.v', '/home/james/Desktop/Casino/f4pga-examples/xc7/picosoc_demo/arty.v', '-d', 'artix7', '-p', 'xc7a100tcsg324-1']' returned non-zero exit status 1. make: *** [/home/james/Desktop/Casino/f4pga-examples/xc7/picosoc_demo/../../common/common.mk:67: /home/james/Desktop/Casino/f4pga-examples/xc7/picosoc_demo/build/arty_100/top.eblif] Error 1 make: Leaving directory '/home/james/Desktop/Casino/f4pga-examples/xc7/picosoc_demo'

@JamesTimothyMeech JamesTimothyMeech changed the title PicoSoC demo PicoSoC demo does not work out of the box Apr 28, 2023
@LouisTheLuis
Copy link

I am experiencing a similar issue. Seemingly the f4pga directory is not in the share folder.

@pgielda
Copy link
Member

pgielda commented Jul 19, 2023

picosoc demo is tested in CI and the last run is green: https://github.com/chipsalliance/f4pga-examples/actions/runs/5593603252/jobs/10227444844

Having said that it targets arty_35

Have you tried other targets or just arty_100?

@LouisTheLuis
Copy link

LouisTheLuis commented Jul 21, 2023

figured it out: it was a pretty dumb issue with the installation. the

for PKG in $F4PGA_PACKAGES; do wget -qO- https://storage.googleapis.com/symbiflow-arch-defs/artifacts/prod/foss-fpga-tools/symbiflow-arch-defs/continuous/install/${F4PGA_TIMESTAMP}/symbiflow-arch-defs-${PKG}-${F4PGA_HASH}.tar.xz | tar -xJC $F4PGA_INSTALL_DIR/${FPGA_FAM} done

wasn't making the /share/f4pga directory. it had to be modified to

for PKG in $F4PGA_PACKAGES; do wget -qO- https://storage.googleapis.com/symbiflow-arch-defs/artifacts/prod/foss-fpga-tools/symbiflow-arch-defs/continuous/install/${F4PGA_TIMESTAMP}/symbiflow-arch-defs-${PKG}-${F4PGA_HASH}.tar.xz | sudo tar -xJC $F4PGA_INSTALL_DIR/${FPGA_FAM} done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants