Skip to content

Commit

Permalink
target/sim: add Ara test configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mp-17 committed Mar 13, 2024
1 parent 4256d89 commit c24f1c2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion target/sim/src/tb_cheshire_pkg.sv
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
Expand Down

0 comments on commit c24f1c2

Please sign in to comment.