From a814e6c1b06dc9f46e6c5c9642453e189fe1df92 Mon Sep 17 00:00:00 2001 From: Pirmin Vogel Date: Tue, 23 Jan 2024 17:55:00 +0100 Subject: [PATCH] [aes,dv] Fix aes_ctrl_cg sample function declaration This resolves lowRISC/OpenTitan#20753. Signed-off-by: Pirmin Vogel --- hw/ip/aes/dv/cov/aes_cov_if.sv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/ip/aes/dv/cov/aes_cov_if.sv b/hw/ip/aes/dv/cov/aes_cov_if.sv index 101a450ae2ce8..32688cf300d9e 100644 --- a/hw/ip/aes/dv/cov/aes_cov_if.sv +++ b/hw/ip/aes/dv/cov/aes_cov_if.sv @@ -32,7 +32,7 @@ interface aes_cov_if covergroup aes_ctrl_cg with function sample( - bit aes_op, + bit [aes_pkg::AES_OP_WIDTH-1:0] aes_op, bit [aes_pkg::AES_MODE_WIDTH-1:0] aes_mode, bit [aes_pkg::AES_KEYLEN_WIDTH-1:0] aes_keylen, bit aes_man_op, @@ -307,7 +307,7 @@ interface aes_cov_if endfunction function automatic void cg_ctrl_sample( - bit aes_op, + bit [aes_pkg::AES_OP_WIDTH-1:0] aes_op, bit [aes_pkg::AES_MODE_WIDTH-1:0] aes_mode, bit [aes_pkg::AES_KEYLEN_WIDTH-1:0] aes_keylen, bit aes_man_op,