Repository navigation
Use Bazel registry packages for Yosys and Icarus Verilog - #5564
rahulcomet wants to merge 2 commits into
Conversation
|
Cool, thanks for working on it! The patches to yosys and iverilog look like they might make sense upstream in the BCR. Did you attempt sending pull requests there to get the projects as such fixed ? |
|
Thanks for taking a look, Henner! I haven’t submitted the patches to BCR yet. I kept them in XLS for the initial review. Would you prefer that I upstream both fixes before this PR merges? |
|
I think it is fine to have the patches first in XLS, as long as there is a plan to upstream them later. The iterator patch in fact looks like it should be upstream to iverilator. |
|
Sounds good, thanks! I checked Icarus Verilog, and |
| bazel_dep(name = "rules_flex", version = "0.4") | ||
| bazel_dep(name = "rules_m4", version = "0.3") | ||
| bazel_dep(name = "swig", version = "4.3.0.bcr.2") | ||
| bazel_dep(name = "iverilog", version = "13.0.bcr.1") |
There was a problem hiding this comment.
I'd probably put the single_version_override right after iverilog (similar for yosys).
That way it is easier to see the association.
|
|
||
| rules_hdl_tools = use_extension("@rules_hdl//dependency_support:tools_extension.bzl", "tools_extension") | ||
| # The rules_hdl synthesis rules refer to this repository by its legacy name. | ||
| override_repo(rules_hdl_tools, at_clifford_yosys = "yosys") |
There was a problem hiding this comment.
Is there a plan to phase this out ? Maybe file an issue with rules_hdl
@QuantamHD @mikesinouye - if we use yosys and iverilog from BCR as well in rules_hdl, some things can be simplified.
|
I can't approve the changes, as I am only an associated member of XLS. But I'd probably suggest @mikex-oss, @ericastor, or @proppy - they also need to look how changes in the *.bzl files might need adaption of their copybara scripts. |
|
I moved the For the phase-out, XLS can drop the |
Migrate XLS to Icarus Verilog
13.0.bcr.1and Yosys0.68.bcr.3from the Bazel Central Registry. Update the simulator and synthesis rules to find the packaged tools and runtime files. The patch uses Yosys0.68.bcr.3because OpenROAD’ssv-elabdependency already selects that version.Two small compatibility patches add the missing
<iterator>include for Icarus and provide the Tcl runtime files for sandboxed Yosys synthesis.Fixes #4478
Verification
rules_hdlSky130 adder synthesized successfully with Yosys and ABC.