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
| Name | Description | Type | Mandatory | Default |
|---|---|---|---|---|
| name | A unique name for this target. | Name | required | |
| deps | Additional system_rdl_library dependencies. | List of labels | optional | [] |
| srcs | Source files which define the entire SystemRDL dag. | List of labels | required | |
| exporter_args | A mapping of exporter names to arguments. | Dictionary: String -> List of strings | optional | {} |
| output_name | Basename 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. | String | optional | "" |
| root | The top source file of the SystemRDL library. | Label | optional | None |