Configuring multiple scan chains for minimum test time