Open magnetworks opened 9 months ago
Here's the problematic line:
solve mseccfg.mml before pmp_cfg[i].w, pmp_cfg[i].r;
mseccfg
is a rand variable of a packed struct. dsim
does not currently allow slices/members of packed structs in the "solve before" directive. It would be a substantive rewrite of the code, which is not in the immediate pipeline. Would solving for mseccfg
instead of a specific bit within it be an acceptable workaround?
solve mseccfg before pmp_cfg[i].w, pmp_cfg[i].r;
There should be an upcoming enhancement to DSim that will allow more slices/members to be used in solve/before constraints and will solve this issue.
Meanwhile, you can get the desired behaviour by adding a variable that is equal to mseccfg.mml and using it in the solve-before.
rand bit tmpVar;
...
constraint xwr_c {
tmpVar == msccfg.mml;
foreach (pmp_cfg[i]) {
solve tmpVar before pmp_cfg[i].w, pmp_cfg[i].r
}
...
}
Hi, I'm trying to build & run the repo using DSIM. I'm get the following error -
Any help with this would be great.