rules_vhdl 0.4.1Latest published 1.3mo ago
MODULE.bazel
bazel_dep(name = "rules_vhdl", version = "0.4.1")
README

rules_vhdl

BCR CI

A small Bazel module that provides reusable VHDL dependency graph metadata via vhdl_library.

What This Module Does

vhdl_library collects:

  • srcs (.vhd, .vhdl) — VHDL source files
  • data — data files needed during compilation or simulation
  • deps — other vhdl_library targets
  • library — VHDL library name (defaults to the target's name)
  • standard — VHDL standard version (optional; empty string means "unspecified")
  • top_entity — the library's entry-point entity name (optional; empty string means "unspecified")

and propagates a transitive VhdlInfo provider that downstream rules can consume.

Installation (Bzlmod)

Add to MODULE.bazel:

# See releases for available versions.
bazel_dep(name = "rules_vhdl", version = "{version}")

Usage

load("@rules_vhdl//vhdl:defs.bzl", "vhdl_library")

vhdl_library(
    name = "utils",
    srcs = ["utils_pkg.vhd"],
    library = "my_utils",
)

vhdl_library(
    name = "core",
    srcs = ["core.vhd"],
    deps = [":utils"],
)

vhdl_library(
    name = "soc",
    srcs = ["soc_top.vhdl"],
    top_entity = "soc_top",
    deps = [":core"],
)

VhdlInfo is exported from @rules_vhdl//vhdl:defs.bzl for custom rule authors.

Development

Run all checks locally:

bazel test //...

License

Apache-2.0.

About

Provide foundational vhdl interfaces for Bazel rulesets (e.g., vhdl_library).

@hw-bzl/rules_vhdl@hw-bzl
Homepage
4stars
Thursday, July 2, 2026
@hw-bzl-bot#9521 rules_vhdl@0.4.1 (#9521)

Languages

Python8.8%
VHDL2.3%
SystemVerilog0.1%
Verilog0.1%

Maintainers

@MrAMS
@UebelAndre

Compatibility

Versions

0.4.1 +3h38% 92026-07-02
0.4.0 +8d4% 12026-07-02
0.3.0 +11d4% 12026-06-24
0.2.0 +11d29% 72026-06-12
0.1.2 +2.0mo8% 22026-06-01
0.1.1 +1d17% 42026-04-02
0.1.02026-03-31