Skip to content

Commit 87db379

Browse files
KolosKoblasz-Semifymartin-velay
authored andcommitted
[rom_ctrl, vendoring] Vendored and patched files added
* kmac_app_agent modifications added * rom_ctrl modifications added Signed-off-by: Kolos Koblasz <kolos.koblasz@semify-eda.com>
1 parent eaf3246 commit 87db379

8 files changed

Lines changed: 401 additions & 33 deletions

File tree

hw/vendor/lowrisc_ip/dv/sv/kmac_app_agent/kmac_app_agent.core

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ filesets:
1010
- lowrisc:dv:dv_utils
1111
- lowrisc:dv:dv_lib
1212
- lowrisc:dv:push_pull_agent
13-
- lowrisc:ip:keymgr_pkg
1413
- lowrisc:ip:kmac_pkg
1514
files:
1615
- kmac_app_agent_pkg.sv

hw/vendor/lowrisc_ip/dv/sv/kmac_app_agent/kmac_app_agent_pkg.sv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ package kmac_app_agent_pkg;
77
import uvm_pkg::*;
88
import dv_utils_pkg::*;
99
import dv_lib_pkg::*;
10-
import keymgr_pkg::*;
1110
import push_pull_agent_pkg::*;
1211

1312
// macro includes
1413
`include "uvm_macros.svh"
1514
`include "dv_macros.svh"
1615

1716
// parameters
18-
parameter int KMAC_REQ_DATA_WIDTH = keymgr_pkg::KmacDataIfWidth // data width
19-
+ keymgr_pkg::KmacDataIfWidth / 8 // data mask width
20-
+ 1; // bit last
17+
parameter int KmacDataIfWidth = 64; // keymgr_pkg::KmacDataIfWidth
18+
parameter int KMAC_REQ_DATA_WIDTH = KmacDataIfWidth // data width
19+
+ KmacDataIfWidth / 8 // data mask width
20+
+ 1; // bit last
2121

2222
`define CONNECT_DATA_WIDTH .HostDataWidth(kmac_app_agent_pkg::KMAC_REQ_DATA_WIDTH)
2323

hw/vendor/lowrisc_ip/dv/sv/kmac_app_agent/kmac_app_intf.sv

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
// verilog_lint: waive interface-name-style
66
interface kmac_app_intf (input clk, input rst_n);
77

8-
import keymgr_pkg::*;
9-
108
dv_utils_pkg::if_mode_e if_mode; // interface mode - Host or Device
119

1210
// interface pins used to connect with DUT
@@ -60,7 +58,7 @@ interface kmac_app_intf (input clk, input rst_n);
6058
clk, !rst_n || if_mode == dv_utils_pkg::Host)
6159

6260
// Check strb is aligned to LSB, for example: if strb[1]==0, strb[$:2] should be 0 too
63-
for (genvar k = 1; k < KmacDataIfWidth / 8 - 1; k++) begin : gen_strb_check
61+
for (genvar k = 1; k < kmac_app_agent_pkg::KmacDataIfWidth / 8 - 1; k++) begin : gen_strb_check
6462
`ASSERT(StrbAlignLSB_A, kmac_data_req.valid && kmac_data_req.strb[k] === 0 |->
6563
kmac_data_req.strb[k+1] === 0,
6664
clk, !rst_n || if_mode == dv_utils_pkg::Host)

hw/vendor/lowrisc_ip/ip/rom_ctrl/data/rom_ctrl_testplan.hjson

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
// SPDX-License-Identifier: Apache-2.0
44
{
55
name: "rom_ctrl"
6-
import_testplans: ["hw/dv/tools/dvsim/testplans/csr_testplan.hjson",
7-
"hw/dv/tools/dvsim/testplans/alert_test_testplan.hjson",
8-
"hw/dv/tools/dvsim/testplans/mem_testplan.hjson",
9-
"hw/dv/tools/dvsim/testplans/passthru_mem_intg_testplan.hjson",
10-
"hw/dv/tools/dvsim/testplans/tl_device_access_types_testplan.hjson",
11-
"hw/dv/tools/dvsim/testplans/sec_cm_fsm_testplan.hjson",
12-
"hw/dv/tools/dvsim/testplans/stress_all_with_reset_testplan.hjson",
13-
"hw/dv/tools/dvsim/testplans/sec_cm_count_testplan.hjson",
6+
import_testplans: ["hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/csr_testplan.hjson",
7+
"hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/alert_test_testplan.hjson",
8+
"hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/mem_testplan.hjson",
9+
"hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/passthru_mem_intg_testplan.hjson",
10+
"hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/tl_device_access_types_testplan.hjson",
11+
"hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/sec_cm_fsm_testplan.hjson",
12+
"hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/stress_all_with_reset_testplan.hjson",
13+
"hw/vendor/lowrisc_ip/dv/tools/dvsim/testplans/sec_cm_count_testplan.hjson",
1414
"rom_ctrl_sec_cm_testplan.hjson"]
1515
testpoints: [
1616
{

hw/vendor/lowrisc_ip/ip/rom_ctrl/dv/env/rom_ctrl_bkdr_util.core

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ filesets:
1313
- lowrisc:dv:crypto_dpi_prince:0.1
1414
- lowrisc:dv:crypto_dpi_present:0.1
1515
- lowrisc:prim:secded:0.1
16-
- lowrisc:dv:sram_ctrl_bkdr_util
16+
- lowrisc:dv:digestpp_dpi:0.1
17+
- lowrisc:ip:kmac_pkg
18+
- lowrisc:dv:mem_bkdr_util
1719
files:
20+
- sram_scrambler_pkg.sv
1821
- rom_ctrl_bkdr_util_pkg.sv
1922
- rom_ctrl_bkdr_util.sv: {is_include_file: true}
2023
file_type: systemVerilogSource

0 commit comments

Comments
 (0)