blob: eb4ab1b3af333488fb43b56e221b88fb27383607 [file] [log] [blame]
# Copyright 2024 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_cc_library", "chisel_library")
package(default_visibility = ["//visibility:public"])
chisel_library(
name = "matcha",
srcs = [
"Axi2Sram.scala",
"Crossbar.scala",
"Kelvin.scala",
],
deps = [
"//hdl/chisel/src/common:common",
"//hdl/chisel/src/kelvin:kelvin",
],
)
chisel_cc_library(
name = "kelvin_cc_library",
chisel_lib = ":matcha",
emit_class = "matcha.EmitKelvin",
module_name = "Kelvin",
verilog_deps = [
"//hdl/verilog:clock_gate",
"//hdl/verilog:sram_1rw_256x256",
"//hdl/verilog:sram_1rw_256x288",
],
)
chisel_cc_library(
name = "crossbar_cc_library",
chisel_lib = ":matcha",
emit_class = "matcha.EmitCrossbar",
module_name = "Crossbar",
)