From eced9a81183729cbb1274d9ed7541246fd1f7183 Mon Sep 17 00:00:00 2001 From: Luca Valente Date: Mon, 15 Jan 2024 11:41:47 +0100 Subject: [PATCH] `axi_test`: add `clear_memory_regions` to `axi_rand_master`. --- src/axi_test.sv | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/axi_test.sv b/src/axi_test.sv index c9fca2697..6a06d1340 100644 --- a/src/axi_test.sv +++ b/src/axi_test.sv @@ -808,6 +808,10 @@ package axi_test; mem_map.push_back({addr_begin, addr_end, mem_type}); endfunction + function void clear_memory_regions(); + mem_map.delete(); + endfunction + function void add_traffic_shaping(input int unsigned len, input int unsigned freq); if (traffic_shape.size() == 0) traffic_shape.push_back({len, freq});