Skip to content

Commit

Permalink
Merge pull request #1063 from chipsalliance/revert-1062-alainmarcel-p…
Browse files Browse the repository at this point in the history
…atch-1

Revert "filter packed_array_var"
  • Loading branch information
alaindargelas committed Dec 12, 2023
2 parents de36d8e + 62589bb commit 21ddb28
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions templates/SynthSubset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ bool SynthSubset::reportedParent(const any* object) {
// Apply some rewrite rule for Synlig limitations
void SynthSubset::leaveRef_typespec(const ref_typespec* object,
vpiHandle handle) {
//if (isInUhdmAllIterator()) return;
if (isInUhdmAllIterator()) return;
if (const typespec* actual = object->Actual_typespec()) {
if (const ref_typespec* ref_alias = actual->Typedef_alias()) {
// Synlig handles aliased typespec incorrectly.
Expand All @@ -378,13 +378,8 @@ void SynthSubset::leaveRef_typespec(const ref_typespec* object,
// case:
// typedef logic [3:0] nibble;
// nibble mem[15:0];

if (object->VpiParent() &&
(object->VpiParent()->UhdmType() ==
uhdmpacked_array_var)) {
// Do not transform packed_array_var
} else if ((actual->UhdmType() == uhdmlogic_typespec) &&
!actual->VpiName().empty()) {
if ((actual->UhdmType() == uhdmlogic_typespec) &&
!actual->VpiName().empty()) {
logic_typespec* ltps = (logic_typespec*)actual;
if (ltps->Ranges() && (!ltps->Ranges()->empty())) {
ElaboratorContext elaboratorContext(serializer_);
Expand Down

0 comments on commit 21ddb28

Please sign in to comment.