Automagically Assign Pin locations using the Pin Name! | Cypress Semiconductor
Automagically Assign Pin locations using the Pin Name!
I'm in the habit of putting the pin location into the instance name of all my pin components. It makes it really easy to see where a signal is connected by looking at my schematic (that tiny text in the pin itself is just no good!).
But I have often wished that naming a pin "P0_0" would automatically assign it to the pin location P0 in the design wide resources tab. Well my friends, the wait is over! Place the KEES_PinHelper component into your design, and any pin named with the Px_y format will be automatically assigned to the proper location when you generate the application.
Name your pin P0_0 and the pin will be automatically assigned to P0 when you generate the application. If you rename the pin to P12_4, when you regenerate your project, it will automatically be reassigned to P12!
The KEES_PinHelper component includes a control file that looks for pins that are name Px_y and tries to assign them to the appropriate pin. In order for the control file to work, the component must be placed on your schematic. Multiple PinHelper components can be placed without conflict. If a pins position is locked in the pins tab of the cydwr, then you can rename the pin to whatever you like. The component will not work with pin names that have arbitrary text after the pin location information. i.e. "P4_7" will work, but "P4_7_foobar" will not work.
!!!!! The attached file is .CYCOMP archive of the component. To use the file, download the file and change the extension from .zip to .cycomp and import the component into your project or personal library