We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I want to design a emulator and implement the "code coverage" function in the emulator,what should I do? I guess I should do sth. in AGDI driver or in emulator hardware.Am I right?Who can tell me the right way?
I want to design a emulator if you, indeed mean an emulator not a simulator, all I can say is: good luck.
Why do you think the emulator makers get $$$$ for $ worth of hardware. Could it just be that the software investment is huge?
Erik
In fact,our customers like emulator more than simulator,so I think it is necessary to satisfy their needs.Thank you for your reply.
Did you read: http://www.keil.com/appnotes/docs/apnt_145.asp
Implementing of Code Coverage is documented there.
I had read it before a few days,but I found that the implementing of "Code Coverage" was uncompleted in the application note.It only mention "supp.hCover", but the "supp.hCover=1" can only enable the "Code Coverage" button of toolbar in keil.After I had ran code and then stopped running in keil,I could not see any "green flags" on the left vertical bar of the code area,these green flags can indicate all instructions that have been executed,but they didn't appear.If I pressed the "code coverage" button in my testing about "supp.hCover",Keil would show me a dialog,but the dialog could tell me nothing.
So I think the implementing of "Code Coverage" was uncompleted in the application note,maybe I need a detailed spec of AGDI.
It is complete: take a look to the topic "The Memory Interface". The _AG_MemAtt function can return all relevant information from the target. The attributes for Code Coverage are:
#define AG_ATR_EXECD 0x10 // Location has been 'Executed' #define AG_ATR_JTAKEN 0x4000 // Jump at location was true executed