Patent ID: 8145467

Claim:
A method of profiling an embedded system, wherein the embedded system includes a processor executing program code and at least one peripheral coupled to the processor, the method comprising: generating a hardware co-simulation interface between a programmable IC configured with the embedded system and a computer based on a plurality of events; simulating the embedded system in the programmable IC; detecting, during the simulation of the embedded system, occurrence of at least one detected event of the plurality of events to produce profiling data; wherein the detecting includes: comparing a program location obtained from a program counter of the processor to a pre-defined location in the program code; and comparing a status value obtained from input/output pins of the at least one peripheral to a pre-defined status value associated with a peripheral event of the plurality of events; storing the profiling data into shared first-in-first-out (FIFO) logic of the programmable IC and the computer; and retrieving the profiling data from the shared FIFO logic at the computer; and storing the retrieved profiling data in a memory at the computer.