...
Fiber 2 controls ctrl[10] (tx/rx = 0) and ctrl[11] (tx/rx = 1)
etc...
Mapping for Pgp4:
For mapping ctr: each ctr has 4 App
SFP0 controls ctr 0 (Rx/Tx 0), 1 (Rx/Tx 1)
SFP1 controls ctr 2 (Rx/Tx 0), 3 (Rx/Tx 1)
SFP2 controls ctr 4 (Rx/Tx 0), 5 (Rx/Tx 1)
SFP3 controls ctr 6 (Rx/Tx 0), 7 (Rx/Tx 1)
QSFP0 related to 4 fiber (have labels on top)
- Fiber 1 controls ctr 8 (Rx/Tx 0), 9 (Rx/Tx 1)
- Fiber 2 controls ctr 10 (Rx/Tx 0), 11 (Rx/Tx 1)
- Fiber 3 controls ctr 12 (Rx/Tx 0), 13 (Rx/Tx 1)
- Fiber 4 controls ctr 14 (Rx/Tx 0), 15 (Rx/Tx 1)
QSFP1 related to 4 fiber (have labels on top)
- Fiber 1 controls ctr 16 (Rx/Tx 0), 17 (Rx/Tx 1)
- Fiber 2 controls ctr 18 (Rx/Tx 0), 19 (Rx/Tx 1)
- Fiber 3 controls ctr 20 (Rx/Tx 0), 21 (Rx/Tx 1)
- Fiber 4 controls ctr 22 (Rx/Tx 0), 23 (Rx/Tx 1)
Note that in addition to changing the tx/rx in the module connectivity, you also need to change the "port" and SFPPortFrontPanel variables in the controller file to equal the tx/rx value.
...