diff options
author | myrtle <gatecat@ds0.me> | 2022-07-21 11:34:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-21 11:34:51 +0100 |
commit | 1b54fa2a1c1fae82315916f3b92f6282f376c861 (patch) | |
tree | 483d8f5b1d13546f3294e813adf07a571d150a4a /gowin/gfx.cc | |
parent | dfea954754966fccb65ca30592ce8c15dad45267 (diff) | |
parent | 0285d471381d42cfa68eca2af0e83d112c087728 (diff) | |
download | nextpnr-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/gfx.cc')
-rw-r--r-- | gowin/gfx.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gowin/gfx.cc b/gowin/gfx.cc index fcd42c7c..9c9bc3fc 100644 --- a/gowin/gfx.cc +++ b/gowin/gfx.cc @@ -5637,28 +5637,28 @@ void gfxSetBelDefaultDecal(Arch *arch, BelInfo &bel) } arch->setBelDecal(bel.name, active, inactive); break; - case ID_GW_MUX2_LUT5: + case ID_MUX2_LUT5: active.x = inactive.x = bel.x + mux2lut5_x; active.y = inactive.y = arch->gridDimY - 1. - bel.y + mux2lut5_y[(bel.z - BelZ::mux_0_z) >> 1]; active.decal = id_DECAL_MUXUPPER_ACTIVE; inactive.decal = id_DECAL_MUXUPPER_INACTIVE; arch->setBelDecal(bel.name, active, inactive); break; - case ID_GW_MUX2_LUT6: + case ID_MUX2_LUT6: active.x = inactive.x = bel.x + mux2lut6_x; active.y = inactive.y = arch->gridDimY - 1. - bel.y + mux2lut6_y[(bel.z - BelZ::mux_0_z) / 5]; active.decal = id_DECAL_MUXLOWER_ACTIVE; inactive.decal = id_DECAL_MUXLOWER_INACTIVE; arch->setBelDecal(bel.name, active, inactive); break; - case ID_GW_MUX2_LUT7: + case ID_MUX2_LUT7: active.x = inactive.x = bel.x + mux2lut7_x; active.y = inactive.y = arch->gridDimY - 1. - bel.y + mux2lut7_y; active.decal = id_DECAL_MUXLOWER_ACTIVE; inactive.decal = id_DECAL_MUXLOWER_INACTIVE; arch->setBelDecal(bel.name, active, inactive); break; - case ID_GW_MUX2_LUT8: + case ID_MUX2_LUT8: active.x = inactive.x = bel.x + mux2lut8_x; active.y = inactive.y = arch->gridDimY - 1. - bel.y + mux2lut8_y; active.decal = id_DECAL_MUXUPPER_ACTIVE; |