gatecat / nextpnr-xilinx

Experimental flows using nextpnr for Xilinx devices
ISC License
207 stars 41 forks source link

xilinx/python/xilinx_device: fix fabricname extraction #52

Closed trabucayre closed 1 year ago

trabucayre commented 1 year ago

Since commit https://github.com/gatecat/nextpnr-xilinx/commit/565588a69ea95a52f7c7592f4ed81d9bef6cfb60 fabricname is built by splitting name using t followed by adding a t at the end. This is fine for artix7 and kintex7 but not for zynq7 or spartan7.

This PR replace the split by a regex to extract base name (without package and speed grade) to have a solution compatible with all devices currently supported.