I'm designing modular hardware; many modules can be plugged into different slots on the motherboard. Modules can be stacked by placing them on top of each other by mezzanine connectors. My problem is knowing which slot the modules are in and in which layer. Modules will be identical in software and hardware and can communicate with each other via SMBUS. How can I find the location of the modules and which layer they are in?
Example with identical modules:
- MoBo Location X0Y0: 2 Modules stacked
- MoBo Location X1Y0: No modules attached
- MoBo Location X1Y1: 4 Modules stacked