aboutsummaryrefslogtreecommitdiffstats
path: root/generic/viaduct/fabulous/fabulous.cc
diff options
context:
space:
mode:
Diffstat (limited to 'generic/viaduct/fabulous/fabulous.cc')
-rw-r--r--generic/viaduct/fabulous/fabulous.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/viaduct/fabulous/fabulous.cc b/generic/viaduct/fabulous/fabulous.cc
index 287d7e51..9cb7e74f 100644
--- a/generic/viaduct/fabulous/fabulous.cc
+++ b/generic/viaduct/fabulous/fabulous.cc
@@ -317,12 +317,13 @@ struct FabulousImpl : ViaductAPI
}
// K select inputs
for (unsigned j = 0; j < k; j++) {
- ctx->addBelInput(mux, ctx->idf("S%d", j), data.pins.at(ctx->idf("S%d",
- (m == 8 && j == 2) ? 3 : ((i / m) * k + j)
- )).wire);
+ ctx->addBelInput(mux, ctx->idf("S%d", j),
+ data.pins.at(ctx->idf("S%d", (m == 8 && j == 2) ? 3 : ((i / m) * k + j))).wire);
}
// Output
- IdString output = (m == 2) ? mux_outs.at(i / m) : (m == 4) ? mux_outs.at((i / m) * k + 1) : mux_outs.at(3);
+ IdString output = (m == 2) ? mux_outs.at(i / m)
+ : (m == 4) ? mux_outs.at((i / m) * k + 1)
+ : mux_outs.at(3);
ctx->addBelOutput(mux, id_O, data.pins.at(output).wire);
}
}