gatecat / nextpnr-xilinx

Experimental flows using nextpnr for Xilinx devices
ISC License
214 stars 43 forks source link

Site_type Ingestion Confusion #81

Closed fred-freeman closed 7 months ago

fred-freeman commented 7 months ago

I'm trying to get a grasp on the source before working on development and I am confused by one thing.

In xilinx_device.py there is

    def get_site_type_data(sitetype):
               .....
                    # Import bels
                    bel_idx_by_name = {}
                    for bel, beldata in sorted(vdata["bels"].items()):
                                                ........

I have been working with the prjxray-db repo at https://github.com/f4pga/prjxray-db/tree/master but when I open a site_type file (for instance site_type_SLICEL.json) there are 3 top sections

site_pins, site_pips, type

there is no "bels" section. Is this just simply a byproduct of prjxray-db being outdated and the prjxray source will include that information? Or am I missing something more critical?

fred-freeman commented 7 months ago

For anyone else who runs into this confusion. The trick was that site_type_XXX.json was NOT referring to the prjxray database like I assumed. It was referring to the metadata files that nextpnr has locally stored at https://github.com/gatecat/nextpnr-xilinx-meta/blob/772a3d5204e82bbb1622f6a4d5d6d2fd32277bd3/kintex7/site_type_SLICEL.json

I am closing this ticket my bad for the confusion here. Just sharing the knowledge for the future.