Utilities for working with Verilog within Bazel.
Wrapper for GTKWave to view traces generated by Bazel rules.
Bazel representation of a Verilog module's source files, dependencies, and top module.
load("@rules_verilog//verilog:defs.bzl", "verilog_module")
verilog_module(
name = "counter",
top = "counter",
srcs = ["counter.sv"],
)
verilog_module(
name = "counter_top",
top = "counter_top",
srcs = [
"counter_top.sv",
],
deps = [":counter"],
)
To incorporate rules_verilog
into your project at the following to your WORKSPACE
file.
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "rules_verilog",
# See release page for latest version url and sha.
)