1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-02-16 21:01:31 +00:00
This commit is contained in:
Miodrag Milanovic
2024-12-26 09:34:24 +01:00
committed by Lofty
parent f3cf710625
commit 9a917602d4
2 changed files with 5 additions and 4 deletions

View File

@@ -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,
};

View File

@@ -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;
}