From f92728b82606ee3fc84bc04bc716a59a28baa846 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Thu, 26 Dec 2024 09:34:24 +0100 Subject: [PATCH] Cleanup --- himbaechel/uarch/gatemate/extra_data.h | 5 +++-- himbaechel/uarch/gatemate/gatemate.cc | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/himbaechel/uarch/gatemate/extra_data.h b/himbaechel/uarch/gatemate/extra_data.h index 0af9a334..4ebaea43 100644 --- a/himbaechel/uarch/gatemate/extra_data.h +++ b/himbaechel/uarch/gatemate/extra_data.h @@ -32,8 +32,9 @@ NPNR_PACKED_STRUCT(struct GateMatePipExtraDataPOD { uint8_t type; }); -enum MuxFlags { - MUX_INVERT = 1, +enum MuxFlags +{ + MUX_INVERT = 1, MUX_VISIBLE = 2, }; diff --git a/himbaechel/uarch/gatemate/gatemate.cc b/himbaechel/uarch/gatemate/gatemate.cc index 1d88f9d4..cb7aa8ae 100644 --- a/himbaechel/uarch/gatemate/gatemate.cc +++ b/himbaechel/uarch/gatemate/gatemate.cc @@ -59,9 +59,9 @@ bool GateMateImpl::isBelLocationValid(BelId bel, bool explain_invalid) const Loc loc = ctx->getBelLocation(bel); int x = loc.x - 2; int y = loc.y - 2; - if (x<2 || x>167) + if (x < 2 || x > 167) return false; - if (y<2 || y>127) + if (y < 2 || y > 127) return false; return true; }