YosysHQ / yosys

Yosys Open SYnthesis Suite
https://yosyshq.net/yosys/
ISC License
3.31k stars 860 forks source link

Synthesis fails with the latest yosys. #4250

Closed zapta closed 4 months ago

zapta commented 4 months ago

Version

Yosys 0.38+113 (git sha1 30fead6d6, clang++ 15.0.0 -fPIC -Os)

On which OS did this happen?

macOS

Reproduction Steps

Run this command with the verilog files from the attached zip file.

yosys -p "synth_ice40 -top main -json hardware.json" leds.v main.v queue.v queue_pusher.v register.v reset_gen.v serial_tx.v sine_gen.v timing.v

Archive 2.zip

Expected Behavior

Yosys completes with no error. This command works with an older version of yosys that reports as

Yosys 0.9+4081 (git sha1 862e84eb, x86_64-apple-darwin20.2-clang 10.0.0-4ubuntu1 -fPIC -Os)

Actual Behavior

Yosys exists with the error: ERROR: +/ice40/brams.txt:1: unknown top-level item bram.

The full log is here https://pastebin.com/jR45mB9b

For comparison, here is the full log of the old yosys version that works https://pastebin.com/DHgKWSQv

povik commented 4 months ago

Could there be something wrong with your installation? I think this would happen if you combine ice40/brams.txt from the older Yosys version you mention, and a newer Yosys binary.

zapta commented 4 months ago

@povik, you are right, I had a leftover symlink. Thanks.