anchor.diff:     rule rx_serial2;
         phy.rx_serial.data_2(rx_serial_wire[2]);
      endrule
  -`ifdef NUMBER_OF_ALTERA_PORTS
  +`ifndef NUMBER_OF_ALTERA_PORTS
      rule rx_serial3;
         phy.rx_serial.data_3(rx_serial_wire[3]);
      endrule
  
positive.code:    rule tx_serial2;
        tx_serial[2] <= phy.tx_serial.data_2;
     endrule
  `ifdef NUMBER_OF_ALTERA_PORTS
     rule tx_serial3;
        tx_serial[3] <= phy.tx_serial.data_3;
     endrule
  
negative.code:            0: phy.xgmii_tx.dc_0(v);
             1: phy.xgmii_tx.dc_1(v);
             2: phy.xgmii_tx.dc_2(v);
  `ifndef NUMBER_OF_ALTERA_PORTS
             3: phy.xgmii_tx.dc_3(v);
  `endif
           endcase
  