[dv] Update mem_model to use bus-params_pkg
Replaces parameters from top_pkg with parameters from bus_params_pkg.
Signed-off-by: Srikrishna Iyer <sriyer@google.com>
diff --git a/hw/dv/sv/mem_model/mem_model.core b/hw/dv/sv/mem_model/mem_model.core
index f6da092..7804201 100644
--- a/hw/dv/sv/mem_model/mem_model.core
+++ b/hw/dv/sv/mem_model/mem_model.core
@@ -8,7 +8,7 @@
filesets:
files_dv:
depend:
- - lowrisc:constants:top_pkg
+ - lowrisc:opentitan:bus_params_pkg
files:
- mem_model_pkg.sv
- mem_model.sv: {is_include_file: true}
diff --git a/hw/dv/sv/mem_model/mem_model.sv b/hw/dv/sv/mem_model/mem_model.sv
index ffce8a5..f1692d2 100644
--- a/hw/dv/sv/mem_model/mem_model.sv
+++ b/hw/dv/sv/mem_model/mem_model.sv
@@ -2,9 +2,9 @@
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
-class mem_model #(int AddrWidth = top_pkg::TL_AW,
- int DataWidth = top_pkg::TL_DW,
- int MaskWidth = top_pkg::TL_DBW) extends uvm_object;
+class mem_model #(int AddrWidth = bus_params_pkg::BUS_AW,
+ int DataWidth = bus_params_pkg::BUS_DW,
+ int MaskWidth = bus_params_pkg::BUS_DBW) extends uvm_object;
typedef bit [AddrWidth-1:0] mem_addr_t;
typedef bit [DataWidth-1:0] mem_data_t;