google / xls

XLS: Accelerated HW Synthesis
http://google.github.io/xls/
Apache License 2.0
1.18k stars 173 forks source link

In-tree yosys binary doesn't have synth_{ecp,ice40} commands available #188

Open cdleary opened 3 years ago

cdleary commented 3 years ago

Need at least an alwayslink=True on the kernel link target and pointing somewhere else as the YOSYS_DATDIR in the defines. Been using out-of-tree binaries thus far, but we should be able to resolve this!

mithro commented 3 years ago

FYI - @hzeller

mithro commented 3 years ago

FYI - @QuantamHD

QuantamHD commented 3 years ago

I think I've run into this issue before. I have a PR https://github.com/YosysHQ/yosys/pull/2417 out for it in yosys to allow you to set the datdir at runtime. Would that help?

QuantamHD commented 3 years ago

You can also hack it together with something like this

-DYOSYS_DATDIR='std::getenv(\"YOSYS_DATDIR\") ? std::getenv(\"YOSYS_DATDIR\") : \"{YOUR_DEFAULT_DATDIR_HERE}\"'
mithro commented 3 years ago

https://github.com/masc-ucsc/livehd/blob/master/external/BUILD.yosys