system_rdl_library

Rules

system_rdl_library

load("@rules_systemrdl//systemrdl:system_rdl_library.bzl", "system_rdl_library")

system_rdl_library(name, deps, srcs, exporter_args, output_name, root)

A SystemRDL library.

Outputs of these rules are generally extracted via a filegroup.

load("@rules_verilog//systemrdl:system_rdl_library.bzl", "system_rdl_library")

system_rdl_library(
    name = "atxmega_spi",
    srcs = ["atxmega_spi.rdl"],
    exporter_args = {
        "regblock": [
            "--cpuif",
            "axi4-lite-flat",
        ],
    },
)

filegroup(
    name = "atxmega_spi.sv",
    srcs = ["atxmega_spi"],
    output_group = "system_rdl_regblock",
)

ATTRIBUTES

NameDescriptionTypeMandatoryDefault
nameA unique name for this target.Namerequired
depsAdditional system_rdl_library dependencies.List of labelsoptional[]
srcsSource files which define the entire SystemRDL dag.List of labelsrequired
exporter_argsA mapping of exporter names to arguments.Dictionary: String -> List of stringsoptional{}
output_nameBasename used for declared outputs (and validated against the root file's top-level addrmap). Defaults to the target name. Use this when the addrmap name in the SystemRDL source differs from the target name.Stringoptional""
rootThe top source file of the SystemRDL library.LabeloptionalNone