Jump to content

Using channel_logs in systemc to print a log of all transactions on the Match lib connections


shaddad

Recommended Posts

I am using the channel_logs to print a log of all transactions on Match lib connections like this:

  channel_logs logs;
  if (plusargs::test("LOG_CHANNELS")) {
    // Create log with record of Connections channels traffic
    INFO("Channel logs: channel_logs*.log");
    logs.enable("channel_logs", true);
    logs.log_hierarchy(*tb_inst);
  }

 

However, the generated log does not show the values on some AXI bus fields such as axim_aruser and axim_awuser.

How do I make the log show this information? 

 

Link to comment
Share on other sites

If you run this example:

https://github.com/Stuart-Swan/Matchlib-Examples-Kit-For-Accellera-Synthesis-WG/tree/master/matchlib_examples/examples/08_dma

The log file will have:

8 | id{0x0} addr{0x0} burst{} len{0x0} size{} cache{} auser{}  | 6 ns
9 | data{0x1000} last{0x1} wstrb{0x0FF} wuser{}  | 6 ns
10 | id{0x0} resp{0x0} buser{}  | 7 ns

The auser{} has no data inside the curly braces. That means that the bitwidth of that field has been configured to be zero.

If you really want the bitwidth of that field to be non-zero, you'll need to create a custom AXI4 configuration class that makes those fields have non-zero widths.

There is an example of doing so in this example:

https://github.com/Stuart-Swan/Matchlib-Examples-Kit-For-Accellera-Synthesis-WG/blob/master/matchlib_examples/examples/55_mixed_axi/mixed_dma.h

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...