Text this: Test time minimization for system-on-chip with test bus assignment and sizin