Skip to content

Commit

Permalink
Merge pull request #4018 from alainmarcel/alainmarcel-patch-1
Browse files Browse the repository at this point in the history
multi part select fix
  • Loading branch information
alaindargelas authored Dec 6, 2024
2 parents 5120036 + 8c6cd21 commit 100847c
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 100847c

Please sign in to comment.