Merge pull request #899 from antmicro/nexus-dsp-packing

Fix for Nexus DSP packing
This commit is contained in:
gatecat 2022-01-25 12:30:39 +00:00 committed by GitHub
commit 1301feb4ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1784,7 +1784,7 @@ struct NexusPacker
copy_port(ctx, ci, mt.has_addsub ? id_SIGNED : id_SIGNEDA, mult9[i], id_ASIGNED);
}
bool mult36_used = (mt.a_width >= 36) && (mt.b_width >= 36);
bool mult36_used = (mt.a_width >= 36) && (mt.b_width >= 36) && !(mt.wide > 0);
// Configure mult18x36s
for (int i = 0; i < mt.N18x36; i++) {
mult18x36[i]->params[id_MULT36] = mult36_used ? std::string("ENABLED") : std::string("DISABLED");