Skip to content

Commit

Permalink
multi part select fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alaindargelas committed Dec 6, 2024
1 parent 5120036 commit 8c6cd21
Show file tree
Hide file tree
Showing 4 changed files with 598 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/DesignCompile/CompileExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5093,7 +5093,19 @@ UHDM::any *CompileHelper::compileComplexFuncCall(
std::string the_name(fC->SymName(name));
if (!hierPath) {
VObjectType dtype = fC->Type(dotedName);
if (Bit_select && (fC->Child(Bit_select) || fC->Sibling(Bit_select))) {
VObjectType selectType = fC->Type(selectName);
if (selectName &&
(selectType == VObjectType::paConstant_part_select_range)) {
result = compileSelectExpression(component, fC, dotedName, "",
compileDesign, reduce, pexpr,
instance, muteErrors);
if (result && (result->UhdmType() == UHDM::uhdmvar_select)) {
fC->populateCoreMembers(name, dotedName, result);
((var_select *)result)->VpiName(sval);
}
return result;
} else if (Bit_select &&
(fC->Child(Bit_select) || fC->Sibling(Bit_select))) {
result = compileSelectExpression(component, fC, Bit_select, sval,
compileDesign, reduce, pexpr,
instance, muteErrors);
Expand Down
Loading

0 comments on commit 8c6cd21

Please sign in to comment.