blob: f01f1e70cec3732bdd594dffb03e87a2e0861dc4 [file] [log] [blame]
# Copyright 2025 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
load("@kelvin_hw//rules:chisel.bzl", "chisel_binary", "chisel_cc_library", "chisel_library")
package(default_visibility = ["//visibility:public"])
chisel_library(
name = "crossbar_config_lib",
srcs = ["CrossbarConfig.scala"],
)
chisel_binary(
name = "validate_crossbar_config",
main_class = "kelvin.soc.CrossbarConfigValidator",
deps = [":crossbar_config_lib"],
)
chisel_library(
name = "kelvin_xbar_lib",
srcs = ["KelvinXbar.scala"],
deps = [
":crossbar_config_lib",
"//hdl/chisel/src/bus",
"//hdl/chisel/src/kelvin",
"//hdl/chisel/src/kelvin:kelvin_params",
],
)
chisel_cc_library(
name = "kelvin_xbar_cc_library",
chisel_lib = ":kelvin_xbar_lib",
emit_class = "kelvin.soc.KelvinXbarEmitter",
module_name = "KelvinXbar",
)