aboutsummaryrefslogtreecommitdiffstats
path: root/gowin/arch.cc
diff options
context:
space:
mode:
authormyrtle <gatecat@ds0.me>2022-07-21 11:34:51 +0100
committerGitHub <noreply@github.com>2022-07-21 11:34:51 +0100
commit1b54fa2a1c1fae82315916f3b92f6282f376c861 (patch)
tree483d8f5b1d13546f3294e813adf07a571d150a4a /gowin/arch.cc
parentdfea954754966fccb65ca30592ce8c15dad45267 (diff)
parent0285d471381d42cfa68eca2af0e83d112c087728 (diff)
downloadnextpnr-1b54fa2a1c1fae82315916f3b92f6282f376c861.tar.gz
nextpnr-1b54fa2a1c1fae82315916f3b92f6282f376c861.tar.bz2
nextpnr-1b54fa2a1c1fae82315916f3b92f6282f376c861.zip
Merge pull request #1004 from yrabbit/fix-muxes
gowin: Remove incomprehensible names of the muxes
Diffstat (limited to 'gowin/arch.cc')
-rw-r--r--gowin/arch.cc15
1 files changed, 9 insertions, 6 deletions
diff --git a/gowin/arch.cc b/gowin/arch.cc
index 6fe40f76..b37d444c 100644
--- a/gowin/arch.cc
+++ b/gowin/arch.cc
@@ -553,7 +553,10 @@ void Arch::setDelayScaling(double scale, double offset)
args.delayOffset = offset;
}
-void Arch::addCellTimingClass(IdString cell, IdString port, TimingPortClass cls) {cellTiming[cell].portClasses[port] = cls;}
+void Arch::addCellTimingClass(IdString cell, IdString port, TimingPortClass cls)
+{
+ cellTiming[cell].portClasses[port] = cls;
+}
void Arch::addCellTimingClock(IdString cell, IdString port) { cellTiming[cell].portClasses[port] = TMG_CLOCK_INPUT; }
@@ -1019,7 +1022,7 @@ void Arch::addMuxBels(const DatabasePOD *db, int row, int col)
// bel
snprintf(buf, 40, "R%dC%d_MUX2_LUT%c%c", grow, gcol, mux_names[j].type, mux_names[j].bel_idx);
belname = id(buf);
- snprintf(buf, 40, "GW_MUX2_LUT%c", mux_names[j].type);
+ snprintf(buf, 40, "MUX2_LUT%c", mux_names[j].type);
bel_id = id(buf);
addBel(belname, bel_id, Loc(col, row, z), false);
@@ -2041,16 +2044,16 @@ void Arch::assignArchInfo()
}
break;
}
- case ID_GW_MUX2_LUT8:
+ case ID_MUX2_LUT8:
delay = delay + delayLookup(speed->lut.timings.get(), speed->lut.num_timings, id_fx_ofx1);
/* FALLTHRU */
- case ID_GW_MUX2_LUT7:
+ case ID_MUX2_LUT7:
delay = delay + delayLookup(speed->lut.timings.get(), speed->lut.num_timings, id_fx_ofx1);
/* FALLTHRU */
- case ID_GW_MUX2_LUT6:
+ case ID_MUX2_LUT6:
delay = delay + delayLookup(speed->lut.timings.get(), speed->lut.num_timings, id_fx_ofx1);
/* FALLTHRU */
- case ID_GW_MUX2_LUT5: {
+ case ID_MUX2_LUT5: {
delay = delay + delayLookup(speed->lut.timings.get(), speed->lut.num_timings, id_fx_ofx1);
addCellTimingDelay(cname, id_I0, id_OF, delay);
addCellTimingDelay(cname, id_I1, id_OF, delay);