Cleanup
This commit is contained in:
parent
150428fe7b
commit
f92728b826
@ -32,8 +32,9 @@ NPNR_PACKED_STRUCT(struct GateMatePipExtraDataPOD {
|
|||||||
uint8_t type;
|
uint8_t type;
|
||||||
});
|
});
|
||||||
|
|
||||||
enum MuxFlags {
|
enum MuxFlags
|
||||||
MUX_INVERT = 1,
|
{
|
||||||
|
MUX_INVERT = 1,
|
||||||
MUX_VISIBLE = 2,
|
MUX_VISIBLE = 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -59,9 +59,9 @@ bool GateMateImpl::isBelLocationValid(BelId bel, bool explain_invalid) const
|
|||||||
Loc loc = ctx->getBelLocation(bel);
|
Loc loc = ctx->getBelLocation(bel);
|
||||||
int x = loc.x - 2;
|
int x = loc.x - 2;
|
||||||
int y = loc.y - 2;
|
int y = loc.y - 2;
|
||||||
if (x<2 || x>167)
|
if (x < 2 || x > 167)
|
||||||
return false;
|
return false;
|
||||||
if (y<2 || y>127)
|
if (y < 2 || y > 127)
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user