The-OpenROAD-Project / OpenSTA

OpenSTA engine
GNU General Public License v3.0
415 stars 174 forks source link

Couldn't able to read SPEF in openSTA #245

Closed Tanvir-Rizve closed 3 months ago

Tanvir-Rizve commented 3 months ago

I encountered an issue while trying to read a Standard Parasitic Exchange Format (SPEF) file using OpenSTA. The error occurs at the line where a port has a negative index. Specifically, the SPEF file contains a port with the naming convention port_a[-2]. image (1) image (2)

While OpenSTA processes ports with positive indices, such as port_a[2], without any issues, it fails when encountering ports with negative indices.

image (4) image (5)

rovinski commented 3 months ago

As far as I can tell from the SPEF spec, that's not a valid bit_identifier because it must be a positive integer. image In the best case, you would have to escape [, -, and ] using \ which would no longer treat it as a bus. Or make sure all bus indices are positive.

maliberty commented 3 months ago

Issues or PRs should be filed with https://github.com/parallaxsw/OpenSTA if still relevant. This is effectively a fork (though not strictly for historical reasons).