Skip to content

Commit

Permalink
fixup! Break down drivers of complex-type variables
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Oct 18, 2024
1 parent 84a8c94 commit 844f42b
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/slang_frontend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2273,18 +2273,14 @@ struct PopulateNetlist : public TimingPatternInterpretor, public ast::ASTVisitor
RTLIL::SigSpec aload_chunk = driven_chunk;
aload_chunk.replace(aloads[0].values);

RTLIL::SigSpec aldff_d, aldff_q, aldff_aload;
RTLIL::SigSpec dffe_d, dffe_q; // fallback
RTLIL::SigSpec aldff_q;
RTLIL::SigSpec dffe_q; // fallback

for (int i = 0; i < driven_chunk.size(); i++) {
if (aload_chunk[i] != driven_chunk[i]) {
aldff_d.append(staging_chunk[i]);
if (RTLIL::SigSpec(aload_chunk)[i] != RTLIL::SigSpec(driven_chunk)[i])
aldff_q.append(driven_chunk[i]);
aldff_aload.append(aload_chunk[i]);
} else {
dffe_d.append(staging_chunk[i]);
else
dffe_q.append(driven_chunk[i]);
}
}

if (!aldff_q.empty()) {
Expand Down

0 comments on commit 844f42b

Please sign in to comment.