@Tim Edwards When I review the .mag file generated through Openlane flow, all the Port Label has additional information like
port <Number> nsew signal <Port Direction: input/output/birectional/power/ground>
<< labels >>
flabel metal2 s 6090 109200 6146 110800 0 FreeSans 224 90 0 0 DIn0[0]
port 0 nsew signal input
flabel metal2 s 6458 109200 6514 110800 0 FreeSans 224 90 0 0 DIn0[1]
port 1 nsew signal input
flabel metal2 s 6826 109200 6882 110800 0 FreeSans 224 90 0 0 DIn0[2]
port 2 nsew signal input
flabel metal2 s 7194 109200 7250 110800 0 FreeSans 224 90 0 0 DIn0[3]
port 3 nsew signal input
flabel metal2 s 7562 109200 7618 110800 0 FreeSans 224 90 0 0 DIn0[4]
port 4 nsew signal input
Where as these definition are missing while manually creating cell through magic tool. How to add the port direction and number in magic tools.?
Background: I see .lef writing through magic tool include all the input/output and power declaration only when these port definition are present.
PIN DIn0[0]
DIRECTION INPUT ;
USE SIGNAL ;
PORT
LAYER met2 ;
RECT 30.450 546.000 30.730 554.000 ;
END
END DIn0[0]
PIN DIn0[1]
DIRECTION INPUT ;
USE SIGNAL ;
PORT
LAYER met2 ;
RECT 32.290 546.000 32.570 554.000 ;
END
END DIn0[1]
PIN DIn0[2]
DIRECTION INPUT ;
USE SIGNAL ;
PORT
LAYER met2 ;
RECT 34.130 546.000 34.410 554.000 ;
END