just wanted to let you know that your question has been noted and we are looking what kind of solution we can provide for this.

What is the background of your question? Do you want to write code that should do some kind of self configuration depnding what device it runs on? Is the code supossed to find out what chip it is running on? Always curios what our customer's applications are.

Currently there is no way to specifically test for which ports are supported. The closest to that would be defines that are created for each pin, identifying the port. You can find these in cyfitter.h. For example:

#define Test_Pin__0__PORT 0

Assigns Test_Pin to port 0. If you know what all pins you want, you could determine what all ports are being used.

The information should be present in the report file that is generated, but this probably isn't enough for what you want to do. We'll keep this in mind for future releases.