[aes/dv] added EDN to aes dv
Signed-off-by: Rasmus Madsen <rasmus.madsen@wdc.com>
diff --git a/hw/ip/aes/dv/env/aes_env.core b/hw/ip/aes/dv/env/aes_env.core
index 9f26142..a17ada6 100644
--- a/hw/ip/aes/dv/env/aes_env.core
+++ b/hw/ip/aes/dv/env/aes_env.core
@@ -12,6 +12,7 @@
depend:
- lowrisc:dv:ralgen
- lowrisc:dv:cip_lib
+ - lowrisc:dv:push_pull_agent
- lowrisc:dv:csr_utils
- lowrisc:dv:aes_model_dpi
- lowrisc:dv:aes_cov
diff --git a/hw/ip/aes/dv/env/aes_env_cfg.sv b/hw/ip/aes/dv/env/aes_env_cfg.sv
index 1f6a73d..8310a1b 100644
--- a/hw/ip/aes/dv/env/aes_env_cfg.sv
+++ b/hw/ip/aes/dv/env/aes_env_cfg.sv
@@ -167,6 +167,7 @@
virtual function void initialize(bit [TL_AW-1:0] csr_base_addr = '1);
list_of_alerts = aes_env_pkg::LIST_OF_ALERTS;
+ has_edn = 1;
super.initialize(csr_base_addr);
endfunction
diff --git a/hw/ip/aes/dv/env/aes_env_pkg.sv b/hw/ip/aes/dv/env/aes_env_pkg.sv
index c90c856..79f2969 100644
--- a/hw/ip/aes/dv/env/aes_env_pkg.sv
+++ b/hw/ip/aes/dv/env/aes_env_pkg.sv
@@ -12,6 +12,7 @@
import tl_agent_pkg::*;
import dv_lib_pkg::*;
import cip_base_pkg::*;
+ import push_pull_agent_pkg::*;
import aes_reg_pkg::*;
import aes_ral_pkg::*;
import aes_pkg::*;
diff --git a/hw/ip/aes/dv/tb/tb.sv b/hw/ip/aes/dv/tb/tb.sv
index 1a738a2..bf53f5b 100644
--- a/hw/ip/aes/dv/tb/tb.sv
+++ b/hw/ip/aes/dv/tb/tb.sv
@@ -25,7 +25,8 @@
pins_if #(1) devmode_if(devmode);
tl_if tl_if(.clk(clk), .rst_n(rst_n));
-
+ // edn_clk, edn_rst_n and edn_if is defined and driven in below macro
+ `DV_EDN_IF_CONNECT
`DV_ALERT_IF_CONNECT
// dut
@@ -39,10 +40,10 @@
.idle_o ( ),
.lc_escalate_en_i ( lc_ctrl_pkg::Off ),
- .clk_edn_i ( clk ),
- .rst_edn_ni ( rst_n ),
- .edn_o ( edn_req ),
- .edn_i ( {edn_req, 1'b0, 32'h12345678} ),
+ .clk_edn_i ( edn_clk ),
+ .rst_edn_ni ( edn_rst_n ),
+ .edn_o ( edn_if.req ),
+ .edn_i ( {edn_if.ack, edn_if.d_data} ),
.tl_i ( tl_if.h2d ),
.tl_o ( tl_if.d2h ),