An apparatus and method are disclosed for testing a hard macro that is
embedded in a system on a chip (SOC) that is included in an integrated
circuit chip. The SOC includes the hard macro. A logic design and
operation of the hard macro are unknown. A test wrapper is embedded in
the SOC. The test wrapper includes a scan chain. The test wrapper
surrounds inputs and outputs of the hard macro. The test wrapper receives
a known test data pattern in the scan chain that is included in the test
wrapper. The hard macro receives from the test wrapper a set of non-test
standard SOC inputs when the SOC is not in a test mode and receives the
known test data pattern when the SOC is in the test mode. The hard macro
generates a set of outputs in response to the inputs. The hard macro is
tested utilizing the known test data pattern.