diff options
author | gatecat <gatecat@ds0.me> | 2022-03-15 07:42:00 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 07:42:00 +0000 |
commit | 6ed625be8e4e4f6f1ec7d74d4180b4ed60c96f9d (patch) | |
tree | e2c7abb567088b5287455ef240a5786c2137b2db /gowin/gfx.cc | |
parent | b852df3260a19aad40607c7520e3ed19895e636f (diff) | |
parent | badef293ebdf15567ddbf060f65c2eb7c1faa4ed (diff) | |
download | nextpnr-6ed625be8e4e4f6f1ec7d74d4180b4ed60c96f9d.tar.gz nextpnr-6ed625be8e4e4f6f1ec7d74d4180b4ed60c96f9d.tar.bz2 nextpnr-6ed625be8e4e4f6f1ec7d74d4180b4ed60c96f9d.zip |
Merge pull request #945 from yrabbit/wip-oddr
gowin: add support for ODDR primitive
Diffstat (limited to 'gowin/gfx.cc')
-rw-r--r-- | gowin/gfx.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gowin/gfx.cc b/gowin/gfx.cc index daae5c71..fcd42c7c 100644 --- a/gowin/gfx.cc +++ b/gowin/gfx.cc @@ -5639,14 +5639,14 @@ void gfxSetBelDefaultDecal(Arch *arch, BelInfo &bel) break; case ID_GW_MUX2_LUT5: active.x = inactive.x = bel.x + mux2lut5_x; - active.y = inactive.y = arch->gridDimY - 1. - bel.y + mux2lut5_y[(bel.z - arch->mux_0_z) >> 1]; + 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: active.x = inactive.x = bel.x + mux2lut6_x; - active.y = inactive.y = arch->gridDimY - 1. - bel.y + mux2lut6_y[(bel.z - arch->mux_0_z) / 5]; + 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); |