OSCPU / yosys-sta

36 stars 9 forks source link

About the version of YOSYS #7

Open yzcccccccccc opened 2 months ago

yzcccccccccc commented 2 months ago

The Readme file instructs to install yosys with apt install yosys, which will only get a low version of yosys tools. This version of yosys still have some bugs and cannot handle specific HDL files.

For example, I generated ALU.sv (see the attachment) from CHISEL, which means that there is little possibility that my source code is wrong. However, yosys tool will triggered a error as unexpected token blablabla....

One possible way to fix this is following the guide at YOSYS(https://github.com/YosysHQ/yosys) to install the latest version. Actually this works for me. :)

ALU.zip

sashimi-yzh commented 2 months ago

Which version of chisel do you use? 3.x or above?

yzcccccccccc commented 2 months ago

Which version of chisel do you use? 3.x or above?

I use the environment from OSCPU/chisel-playground, which means my chisel version shall be the latest one (namely 6.3.0)?

sashimi-yzh commented 2 months ago

We have reproduced the issue.

You are right. This issue can only be fixed with a higher version of yosys. Besides installing the latest version of yosys, using ubuntu 24.04 is another solution.