Dual Mode 3D AOI/SPI