aboutsummaryrefslogtreecommitdiffstats
path: root/cyclonev/lab.cc
diff options
context:
space:
mode:
authorgatecat <gatecat@ds0.me>2021-05-03 15:19:52 +0100
committergatecat <gatecat@ds0.me>2021-05-15 14:54:33 +0100
commit24af19b58d4b0b4db7d51d4f76c9334580386e5b (patch)
tree923f67fed2d2a17d98c8dd9a2f41e1f11d9c47b8 /cyclonev/lab.cc
parent431c4cec9ff9652ddafabac7244f19f425ff3e06 (diff)
downloadnextpnr-24af19b58d4b0b4db7d51d4f76c9334580386e5b.tar.gz
nextpnr-24af19b58d4b0b4db7d51d4f76c9334580386e5b.tar.bz2
nextpnr-24af19b58d4b0b4db7d51d4f76c9334580386e5b.zip
cyclonev: Fix some archcheck fails
Signed-off-by: gatecat <gatecat@ds0.me>
Diffstat (limited to 'cyclonev/lab.cc')
-rw-r--r--cyclonev/lab.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/cyclonev/lab.cc b/cyclonev/lab.cc
index 55602da4..a4619a8c 100644
--- a/cyclonev/lab.cc
+++ b/cyclonev/lab.cc
@@ -72,8 +72,8 @@ static void create_alm(Arch *arch, int x, int y, int z, uint32_t lab_idx)
// Carry/share chain
arch->add_bel_pin(bel, id_CIN, PORT_IN, carry_in);
arch->add_bel_pin(bel, id_SHAREIN, PORT_IN, share_in);
- arch->add_bel_pin(bel, id_CIN, PORT_OUT, carry_in);
- arch->add_bel_pin(bel, id_SHAREIN, PORT_OUT, share_out);
+ arch->add_bel_pin(bel, id_COUT, PORT_OUT, carry_out);
+ arch->add_bel_pin(bel, id_SHAREOUT, PORT_OUT, share_out);
// Combinational output
WireId comb_out = arch->add_wire(x, y, arch->id(stringf("COMBOUT[%d]", z * 2 + i)));
arch->add_bel_pin(bel, id_COMBOUT, PORT_OUT, comb_out);
@@ -93,7 +93,7 @@ static void create_alm(Arch *arch, int x, int y, int z, uint32_t lab_idx)
sel_aclr[i] = arch->add_wire(x, y, arch->id(stringf("ACLR%c[%d]", i ? 'B' : 'T', z)));
sel_ef[i] = arch->add_wire(x, y, arch->id(stringf("%cEF[%d]", i ? 'B' : 'T', z)));
// Muxes - three CLK/ENA per LAB, two ACLR
- for (int j = 0; j < 3; i++) {
+ for (int j = 0; j < 3; j++) {
arch->add_pip(lab.clk_wires[j], sel_clk[i]);
arch->add_pip(lab.ena_wires[j], sel_ena[i]);
if (j < 2)