Skip to content

Commit 96350e3

Browse files
committed
fix
1 parent b8fb56a commit 96350e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

himbaechel/uarch/gatemate/pack.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,14 @@ void GateMatePacker::pack_cpe()
471471
if (net->name.in(ctx->id("$PACKER_GND"),ctx->id("$PACKER_VCC"))) {
472472
if (net->name == ctx->id("$PACKER_VCC"))
473473
invert |= 1<< i;
474-
ci.disconnectPort(ctx->idf("IN%d",i+1));
474+
ci.disconnectPort(ctx->idf("D%d",i));
475475
} else {
476476
select |= 1 << i;
477477
}
478478
}
479479
}
480480
ci.params[id_C_FUNCTION] = Property(C_MX4, 3);
481+
ci.params[id_INIT_L02] = Property(0b1100, 4); // IN6
481482
if (ci.type == id_CC_MX4)
482483
ci.params[id_INIT_L03] = Property(0b1100, 4); // IN8
483484
//ci.params[id_INIT_L11] = Property(invert, 4); // Inversion bits
@@ -489,7 +490,6 @@ void GateMatePacker::pack_cpe()
489490
upper->cluster = ci.name;
490491
upper->constr_abs_z = false;
491492
upper->constr_z = -1;
492-
upper->params[id_INIT_L02] = Property(0b1100, 4); // IN6
493493
upper->params[id_INIT_L10] = Property(select, 4); // Selection bits
494494
upper->params[id_INIT_L11] = Property(invert, 4); // Inversion bits
495495
upper->params[id_C_FUNCTION] = Property(C_MX4, 3);

0 commit comments

Comments
 (0)