This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AET Events



I am a little bit confused about the AET events. I couldn't find any documentation about what which event means and how it's generated.

I tried learning a little bit about the different events by looking at the examples of the AET lib. So I looked at the event_triggered_timer_start example of the AET lib,  which confused me even more. What does AET_EVT_MISC_EXEC_CYCLES mean?

The documentation says "Execute Cycle Event". Ok now I'm wiser. What the hell is an "Execute Cycle Event"?

The whole documentation of the events looks like this. the description of an event is basically its name, which is . But all I get to know about the events is a name and a number. Both are in general not really helpful.

Does TI provide any information of how events are generated and/or what they mean?

By the way the event_triggered_timer_start example does produce very interesting output. The counter is always 0x0. Maybe it should look like this. Here is the log:

[C66xx_0] Reg: TB_ENA, value: 0x0
[C66xx_0] Reg: TB_1W_2_ORS, value: 0x0
[C66xx_0] Reg: TB_1W_2_CNTL, value: 0x0
[C66xx_0] AET Claimed
[C66xx_0] The initial value of the counter is 0x0
[C66xx_0] Reg: FUNC_CNTL, value: 0xa
[C66xx_0] Reg: CNT_0_RLD, value: 0xffffffff
[C66xx_0] ---Begin Allocating Aux Evt Generators to signals---
[C66xx_0] Reg: AUX_EVT_1_CNTL, value: 0x644
[C66xx_0] Reg: AEGSEL#0, value: 0x00000040
[C66xx_0] Reg: AEGSEL#1, value: 0x00000000
[C66xx_0] Reg: AUX_1_ENA, value: 0x200
[C66xx_0] ---End Allocating Aux Evt Generators to signals---
[C66xx_0] Reg: TB_ENA, value: 0x0
[C66xx_0] Reg: AUX_EVT_1_CNTL, value: 0x244
[C66xx_0] Reg: AEGSEL#0, value: 0x00004040
[C66xx_0] Reg: AEGSEL#1, value: 0x00000000
[C66xx_0] Reg: AUX_1_ENA, value: 0x400
[C66xx_0] Reg: TB_1W_1_ORS, value: 0x800
[C66xx_0] Reg: TB_1W_1_CNTL, value: 0x800aaaa
[C66xx_0] Reg: FUNC_CNTL, value: 0x1b00000a
[C66xx_0] Reg: CIS_BUS_SEL, value: 0x20000
[C66xx_0] Reg: TB_DM, value: 0x0
[C66xx_0] Reg: TB_ENA, value: 0x2
[C66xx_0] ---End Job Event Timer Stop---
[C66xx_0] AET Enabled
[C66xx_0] Read #0 of the counter is 0x0
[C66xx_0] Read #1 of the counter is 0x0
[C66xx_0] Read #2 of the counter is 0x0
[C66xx_0] Read #3 of the counter is 0x0
[C66xx_0] Read #4 of the counter is 0x0
[C66xx_0] Read #5 of the counter is 0x0
[C66xx_0] Read #6 of the counter is 0x0
[C66xx_0] Read #7 of the counter is 0x0
[C66xx_0] Read #8 of the counter is 0x0
[C66xx_0] Read #9 of the counter is 0x0
[C66xx_0] Read #10 of the counter is 0x0

I just used the .out file which is included in the example folder and load it on my C6678. Any idea what's wrong here?

Regards Fabian

  • Hey anybody working on this?

    I've got another thread running, with I problem which might correlate with this one: http://e2e.ti.com/support/embedded/bios/f/355/p/247586/869351.aspx#869351

    Maybe I have just problems with the MISC events on my C6678. But I don't have any idea what's wrong.

    I really would appreciate some help on this one.

    Regards Fabian

  • Hello,Fabian Lindner!

    I have run the project named statistical_profiling in aetlib.

    I tried to use AET_readCounter function, but the value is negative.

    I think we have the same question.

    Do you solve you problem?

    In addition, can you tell me the meaning about the AET counter? It counts what.

    Thank you ~

  • Hi,

    sorry I could not solve the problem yet. I just do not use the AET library ;-) I only use the CTools ucLib

    Sorry but I'm not very familiar with how the counter works.

    I just found this page: http://processors.wiki.ti.com/index.php/C6000_AET_Logic

    Counter Mode - For each CPU clock cycle that the trigger is active, the counter will decrement by 1.

    So basically it counts the CPU cycles a certain trigger is active. I don't know which trigger. I'm not sure if the counter needs to be started (event_triggered_timer_start uses an AET job to start the timer) and this is missing in the statistical profiling.

    Maybe this helps a litte bit.

    Regards Fabian

  • Thank you, Fabian Lindner.

    No matter what,Thank you for your reply.

    Meng