Repository navigation
How to get slang in yosys #4697
|
I'm working from the current tip of tree, I have some complex System Verilog and need slang. It doesn't seem to be there - it's a shared library that should be in tools/install/yosys/share/yosys/plugins/slang.so I tried building it using build_openroad.sh and it did seem to build (several) slangs - but the shared library didn't show up either Anyone got any suggestions? |
Replies: 2 comments 1 reply
|
I think you already have it. There's just no From Yosys 0.67 on, slang is built into Yosys itself instead of being a plugin. ORFS's own synth script says so and calls # read_slang is built into Yosys (>=0.67); no plugin load needed.Your build is 0.68, so If that prints the help, you're good. For the flow itself, just set The |
|
Ah, thanks! all the docs say to use "yosys -m slang -p "slang_version"" to verify your build so I'd assumed that was my issue |
I think you already have it. There's just no
slang.soanymore.From Yosys 0.67 on, slang is built into Yosys itself instead of being a plugin. ORFS's own synth script says so and calls
read_slangwithout loading anything (synth_preamble.tcl#L97-L98):# read_slang is built into Yosys (>=0.67); no plugin load needed.Your build is 0.68, so
-m slangfails only because it looks for a plugin file that doesn't exist. Try it without the-m:If that prints the help, you're good. For the flow itself, just set
SYNTH_HDL_FRONTEND=slangin your design config (FlowVariables), andSYNTH_SLANG_ARGSif you need extra flags.The
yosys -m slang -p "slang_version"line in the ins…