Closed clavin-xlnx closed 3 years ago
It turns out the code above is not quite correct in that the bel
variable is null because the site is not of the right SiteTypeEnum
. This went unchecked, but as of 2020.1.5, Design.placeCell()
checks the parameters to ensure they are not null.
Some sites can support multiple site types. In certain situations when placing a cell onto a BEL of a secondary site type when the
SiteInst
has not yet been created,placeCell()
can fail with an error as limits the search to just the primary site. The issue can be reproduced from the code/design example below:top.zip
A work around is to create the SiteInst first:
However, the top example should work if the
SiteInst
has not yet been created for the site which currently takes place inDesign.placeCell()
.