This is a gazelle extension that generates and updates VHDL rules and Verilog rules for Bazel from Orbit files.
To generate and update your HDL rules:
bazel run //:gazelle
The above command walks the current workspace, runs orbit analyze, and writes per-package BUILD.bazel files whose srcs and deps lists reflect the relationship between your HDL files. Cross-package and cross-library references resolve automatically through a workspace-wide index.
See the examples directory for working examples for VHDL, Verilog, SystemVerilog, and RDL sources.
Add the following lines to your MODULE.bazel file:
bazel_dep(name = "gazelle", version = "0.51.0")
bazel_dep(name = "gazelle_orbit", version = "0.1.0")
bazel_dep(name = "rules_verilog", version = "1.2.0")
bazel_dep(name = "rules_vhdl", version = "0.2.0")
Add the following lines to your root BUILD.bazel file:
load("@gazelle//:def.bzl", "gazelle")
gazelle(
name = "gazelle",
gazelle = "@gazelle_orbit",
)
Run the following command to update VHDL rules and Verilog rules:
bazel run //:gazelle
A gazelle extension to produce VHDL rules and Verilog rules from Orbit files
@chaseruskin/gazelle_orbit