Skip to content

Commit ae7843f

Browse files
committed
ecp5: Fix case of one net driving multiple DCSs
Signed-off-by: gatecat <gatecat@ds0.me>
1 parent f688fc0 commit ae7843f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ecp5/globals.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ class Ecp5GlobalRouter
468468
dcc->ports[id_CLKO].net = glbptr;
469469
std::vector<PortRef> keep_users;
470470
for (auto user : net->users) {
471-
if (dcs_cell != nullptr && user.cell != dcs_cell) {
471+
if (dcs_cell != nullptr && user.cell->type != id_DCSC) {
472472
// DCS DCC insertion mode
473473
keep_users.push_back(user);
474474
} else if (user.port == id_CLKFB) {

0 commit comments

Comments
 (0)