AMC13 IP and MAC Address Assignment

The AMC13 has two PCB Tongues. Tongue 1 (T1) and Tongue 2 (T2) each has their own FPGA (Virtex6/Kintex7 for T1, Spartan6 for T2) and therefore each has their own IP address. Typically T2 has an IP address one higher in the last octet than T1.

BU Crate MCH IP addresses

MCH IP Address
Vadatech MCH

How the AMC13 IP Address is assigned

1. Via the Serial Number

This scheme acts as the "backup" plan, using the jumper connections on T2 to assign IP addresses to both tongues The address is 192.168.z.x
  • Final Byte for Spartan Chip (T2) = 254 - 2*SN[6:0]
  • Final Byte for Virtex/Kintex Chip (T1) = 255 - 2*SN[6:0].
z is 1 for SN 0-127 and 2 for SN 128-255 and 3 for SN 256-383.

N.B.Serial numbers 0, 128, 256 are not used as it would result in IP address ending in 255, which can cause troubles on some networks.


In this scheme, the MMC sends a configuration packet which contains the IP address to be assigned from non-volitile EEPROM to the Spartan and Virtex chips at powerup. For information on how to load new configuration information into the SPI, see the MMC software page

3. RARP from a software daemon.

RARP is enabled with an IP address beginning with 00 in the first octet is set using method 2 above.

Note that we are working out a new scheme as we go into mass production in early 2014. We expect that the default addresses will be in the range 192.168.x.y where x is 1-4 and y is 128-254. HCAL will use a crate-based scheme where x is the crate and y is 4*slot.

AMC13 MAC address assignment


For all AMC13XG with current firmware, the MAC address is in the range 08-00-30-F3-00-00 to 08-00-30-F3-01-FF with the low 9 bits as follows:

  bits 0-5     complement of serial number bits 0-5
  bit 6        =0 for T2 board (lower IP)
               =1 for T1 board (upper IP)
  bit 7, 8     serial number bits 6, 7 (complemented for S/N > 64) 


If we have a board with serial number 37, we can calculate the last digit of the MAC address:

63-37 = 26, which is 0x1a in hex

SN37 MAC addresses:

08-00-30-F3-00-1a (for T2, low IP)and

08-00-30-F3-00-5a (for T1, higher IP)

For modules with serial numbers above 63 the upper two bits are complemented and assigned to MAC address bits 7, 8.

example SN66 (0b01000010)

  bit 8 bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit0
66 (inserted) 0 1   0 0 0 0 1 0
  upper 2 bits     lower six bits      
compliment 1 0   1 1 1 1 0 1
  Byte2 Byte 1       Byte 0      
66 T2 1 0 0 1 1 1 1 0 1
66 T2 1 3       d      
66 T1 1 0 1 1 1 1 1 0 1
66 T1 1 7       d      

SN66 MAC addresses:

08-00-30-F3-01-3d (for T2, low IP)and

08-00-30-F3-01-7d (for T1, higher IP)

-- EricHazen - 12 Mar 2014

This topic: BUCMSPublic > WebHome > HcalDTC > IPaddressAssignment
Topic revision: r24 - 16 Sep 2015 - EricHazen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback