ecp5: Implement getPipLocation and related API
Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
parent
5ddde5c49f
commit
834f7e4bfd
12
ecp5/arch.h
12
ecp5/arch.h
@ -421,7 +421,8 @@ struct Arch : BaseCtx
|
||||
|
||||
int getGridDimX() const { return chip_info->width; };
|
||||
int getGridDimY() const { return chip_info->height; };
|
||||
int getTileDimZ(int, int) const { return 4; };
|
||||
int getTileBelDimZ(int, int) const { return 4; };
|
||||
int getTilePipDimZ(int, int) const { return 1; };
|
||||
|
||||
// -------------------------------------------------
|
||||
|
||||
@ -774,6 +775,15 @@ struct Arch : BaseCtx
|
||||
return chip_info->tiletype_names[locInfo(pip)->pip_data[pip.index].tile_type].get();
|
||||
}
|
||||
|
||||
Loc getPipLocation(PipId pip) const
|
||||
{
|
||||
Loc loc;
|
||||
loc.x = pip.location.x;
|
||||
loc.y = pip.location.y;
|
||||
loc.z = 0;
|
||||
return loc;
|
||||
}
|
||||
|
||||
int8_t getPipClass(PipId pip) const { return locInfo(pip)->pip_data[pip.index].pip_type; }
|
||||
|
||||
BelId getPackagePinBel(const std::string &pin) const;
|
||||
|
Loading…
Reference in New Issue
Block a user