Presented herein is a system, method, and apparatus for firmware
code-coverage in complex system on chip. A circuit for analyzing code
coverage of firmware by test inputs comprises an input and a memory. The
input receives an address from a code address bus. The memory stores
recorded addresses from the code address bus. The memory comprises a
plurality of memory locations, each of the memory locations mapped to a
particular one of a corresponding plurality of addresses associated with
the firmware. The contents of the memory location associated with the
address received from the code address bus being incremented responsive
to receipt of the address.