Xilinx / RapidWright

Build Customized FPGA Implementations for Vivado
http://www.rapidwright.io
Other
276 stars 106 forks source link

SiteType class not visible #5

Closed mmicko closed 5 years ago

mmicko commented 5 years ago

In class com.xilinx.rapidwright.device.Site there is a method public SiteType getPrimarySiteType() but SiteType is not exposed in API, so it's methods are not visible to user instead it return mangled class com.xilinx.rapidwright.device.c

clavin-xlnx commented 5 years ago

Thank you for pointing this out. This method should return a value of the type SiteTypeEnum and will be fixed in the next release. Any data relevant to site types should be accessible through the Site or SiteInst class.

clavin-xlnx commented 5 years ago

On further inspection, this specific API will be removed. In the class com.xilinx.rapidwright.device.Site the method "public SiteTypeEnum getSiteTypeEnum()" will return the SiteTypeEnum. Also, as a result of this issue, I have added the following APIs:

com.xilinx.rapidwright.device.Site "public SiteTypeEnum[] getAlternateSiteTypeEnums()" com.xilinx.rapidwright.design.SiteInst "public SiteTypeEnum getPrimarySiteTypeEnum()" com.xilinx.rapidwright.design.SiteInst "public SiteTypeEnum[] getAlternateSiteTypeEnums()"

These APIs will be available in the next RapidWright release, 2018.2.1.

mmicko commented 5 years ago

Thanks, but can we as well get BEL[] getElements() in Site class ? Now we can do BEL getBEL(String name), but we need to know all names in that case per SiteTypeEnum.

clavin-xlnx commented 5 years ago

Yes, it seems like these are missing and I have filed a new issue ( #7 ) to track this request. Thank you for pointing out the inconsistency. The next release will contain these APIs.

mmicko commented 5 years ago

Thanks for taking care of this.