You need two symbols.
The first is exactly as you did. lets call it icxxx_pwr
The second, is as your, without the two power pins. Call it icxxx.
Wen you design you put both on the schematic, The fist will put the power constraints, the other will be packed together. You might use pack_group for them to be bound together.
This method scales also if you have e.g. 4 opamps in a chip. 1x power and 3x without power.
Hope this helps
thanks for your reply. your way is workable , but the problem is these two gate can not be swapped in this case.
thanks and regards,
We also have tough of this situation and the idea was to have 2 symbols:
- 1x with only two power pins,
- 2x only the Opamp.
You can swap them as you like.
At the end we didn't like that solution, and stayed with
- 1x opamp+pwr
- 1x opamp
It is a little more clear for the schematic. And swapping was not a high priority for us. If needed we do it on the schematic.
thanks you very much.