Skip to content

Commit

Permalink
[WIP] Patch AXI for verilator
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelRiedel committed Feb 23, 2024
1 parent b85908f commit 0c36ec3
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions hardware/deps/patches/axi.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
diff --git a/hardware/deps/axi/src/axi_to_mem_interleaved.sv b/hardware/deps/axi/src/axi_to_mem_interleaved.sv
index 9a5f8780..06dc1c2a 100644
--- a/hardware/deps/axi/src/axi_to_mem_interleaved.sv
+++ b/hardware/deps/axi/src/axi_to_mem_interleaved.sv
@@ -282,6 +282,8 @@ module axi_to_mem_interleaved_intf #(
input logic clk_i,
/// Asynchronous reset, active low
input logic rst_ni,
+ /// Testmode enable
+ input logic test_i,
/// Status output, busy flag of `axi_to_mem`
output logic busy_o,
/// AXI4+ATOP slave port
@@ -337,6 +339,7 @@ module axi_to_mem_interleaved_intf #(
) i_axi_to_mem_interleaved (
.clk_i,
.rst_ni,
+ .test_i,
.busy_o,
.axi_req_i ( mem_axi_req ),
.axi_resp_o ( mem_axi_resp ),
diff --git a/hardware/deps/axi/src/axi_to_mem_split.sv b/hardware/deps/axi/src/axi_to_mem_split.sv
index 28ce4083..3e98bda2 100644
--- a/hardware/deps/axi/src/axi_to_mem_split.sv
+++ b/hardware/deps/axi/src/axi_to_mem_split.sv
@@ -196,6 +196,8 @@ module axi_to_mem_split_intf #(
input logic clk_i,
/// Asynchronous reset, active low.
input logic rst_ni,
+ /// Testmode enable
+ input logic test_i,
/// See `axi_to_mem_split`, port `busy_o`.
output logic busy_o,
/// AXI4+ATOP slave interface port.
@@ -244,6 +246,7 @@ module axi_to_mem_split_intf #(
) i_axi_to_mem_split (
.clk_i,
.rst_ni,
+ .test_i,
.busy_o,
.axi_req_i (axi_req),
.axi_resp_o (axi_resp),

0 comments on commit 0c36ec3

Please sign in to comment.