From c24f1c25e7e301a1fee25c6fc28f12194946eff2 Mon Sep 17 00:00:00 2001 From: Matteo Perotti Date: Wed, 13 Mar 2024 16:22:39 +0100 Subject: [PATCH] target/sim: add Ara test configuration --- target/sim/src/tb_cheshire_pkg.sv | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/target/sim/src/tb_cheshire_pkg.sv b/target/sim/src/tb_cheshire_pkg.sv index 77ab78a2..1e322c98 100644 --- a/target/sim/src/tb_cheshire_pkg.sv +++ b/target/sim/src/tb_cheshire_pkg.sv @@ -16,11 +16,21 @@ package tb_cheshire_pkg; return ret; endfunction + // A dedicated Ara config + function automatic cheshire_cfg_t gen_cheshire_ara_cfg(); + cheshire_cfg_t ret = DefaultCfg; + ret.Ara = 1; + ret.AraNrLanes = 2; + ret.AraVLEN = 2048; + return ret; + endfunction + // Number of Cheshire configurations - localparam int unsigned NumCheshireConfigs = 32'd2; + localparam int unsigned NumCheshireConfigs = 32'd3; // Assemble a configuration array indexed by a numeric parameter localparam cheshire_cfg_t [NumCheshireConfigs-1:0] TbCheshireConfigs = { + gen_cheshire_ara_cfg(), // 2: Ara-enabled configuration gen_cheshire_rt_cfg(), // 1: RT-enabled configuration DefaultCfg // 0: Default configuration };