From 70f438c1c02dbc85e731bf2bc4602829edaa5fd0 Mon Sep 17 00:00:00 2001 From: Robert Winkler Date: Wed, 23 Apr 2025 22:30:39 +0200 Subject: [PATCH] dependency_support: Add verilog_axi package Signed-off-by: Robert Winkler --- .../BUILD.bazel | 15 +++++++ .../bundled.BUILD.bazel | 45 +++++++++++++++++++ dependency_support/load_external.bzl | 8 ++++ 3 files changed, 68 insertions(+) create mode 100644 dependency_support/com_github_alexforencich_verilog_axi/BUILD.bazel create mode 100644 dependency_support/com_github_alexforencich_verilog_axi/bundled.BUILD.bazel diff --git a/dependency_support/com_github_alexforencich_verilog_axi/BUILD.bazel b/dependency_support/com_github_alexforencich_verilog_axi/BUILD.bazel new file mode 100644 index 0000000000..4a24c1372f --- /dev/null +++ b/dependency_support/com_github_alexforencich_verilog_axi/BUILD.bazel @@ -0,0 +1,15 @@ +# Copyright 2025 The XLS Authors +# +# 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. + +# Needed to make this a package. diff --git a/dependency_support/com_github_alexforencich_verilog_axi/bundled.BUILD.bazel b/dependency_support/com_github_alexforencich_verilog_axi/bundled.BUILD.bazel new file mode 100644 index 0000000000..296e2bc0f6 --- /dev/null +++ b/dependency_support/com_github_alexforencich_verilog_axi/bundled.BUILD.bazel @@ -0,0 +1,45 @@ +# Copyright 2025 The XLS Authors +# +# 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("@xls_pip_deps//:requirements.bzl", "requirement") + +package(default_visibility = ["//visibility:public"]) + +exports_files( + glob(["rtl/*.v"]), +) + +py_binary( + name = "axi_crossbar_wrap", + srcs = ["rtl/axi_crossbar_wrap.py"], + deps = [requirement("Jinja2")], +) + +py_binary( + name = "axi_interconnect_wrap", + srcs = ["rtl/axi_interconnect_wrap.py"], + deps = [requirement("Jinja2")], +) + +py_binary( + name = "axil_crossbar_wrap", + srcs = ["rtl/axi_crossbar_wrap.py"], + deps = [requirement("Jinja2")], +) + +py_binary( + name = "axil_interconnect_wrap", + srcs = ["rtl/axil_interconnect_wrap.py"], + deps = [requirement("Jinja2")], +) diff --git a/dependency_support/load_external.bzl b/dependency_support/load_external.bzl index ef99263da0..1fcfbd1167 100644 --- a/dependency_support/load_external.bzl +++ b/dependency_support/load_external.bzl @@ -98,3 +98,11 @@ def load_external_repositories(): urls = ["https://github.com/facebook/zstd/archive/fdfb2aff39dc498372d8c9e5f2330b692fea9794.zip"], build_file = "//dependency_support/com_github_facebook_zstd:bundled.BUILD.bazel", ) + + http_archive( + name = "com_github_alexforencich_verilog_axi", + sha256 = "f3b58406b51950584cc7b0c67b0710cef10cb14e1f5576e97a2f0b1c0b12fcbe", + strip_prefix = "verilog-axi-516bd5dadc3365b7f9e225d2af8fe0b8d804fe53", + urls = ["https://github.com/alexforencich/verilog-axi/archive/516bd5dadc3365b7f9e225d2af8fe0b8d804fe53.zip"], + build_file = "//dependency_support/com_github_alexforencich_verilog_axi:bundled.BUILD.bazel", + )