Using the SCV Reader (System-C Transactions)

Content outdated

We are in the process of migrating all content to impulse version 2.0.

With the SCV reader you can read System-C transaction text database traces.

Screen Cast: Using the SCV Reader

A SCV text database file stores transaction traces in plain text format. It contains the following definition, followed by a list of attribute and transaction definition.
  • scv_tr_stream : A transaction stream containing a collection of related transactions.
  • scv_tr_generator : A transaction generator for a specific transaction type, containing information such as the transaction type names, and attribute names.

Here a typical example:

scv_tr_stream (ID 1, name "pipelined_stream", kind "transactor")        
scv_tr_stream (ID 2, name "addr_stream", kind "transactor")
scv_tr_stream (ID 3, name "data_stream", kind "transactor")
scv_tr_generator (ID 4, name "read", scv_tr_stream 1,
begin_attribute (ID 0, name "addr", type "UNSIGNED")
end_attribute (ID 1, name "data", type "UNSIGNED")
)
scv_tr_generator (ID 5, name "write", scv_tr_stream 1,
begin_attribute (ID 0, name "addr", type "UNSIGNED")
end_attribute (ID 1, name "data", type "UNSIGNED")
)
scv_tr_generator (ID 6, name "addr", scv_tr_stream 2,
begin_attribute (ID 0, name "addr", type "UNSIGNED")
)
scv_tr_generator (ID 7, name "data", scv_tr_stream 3,
begin_attribute (ID 0, name "data", type "UNSIGNED")
)
tx_begin 1 4 0 s
a 0
tx_begin 2 6 0 s
a 0
tx_relation "addr_phase" 2 1
tx_end 2 6 100 ns
tx_begin 3 7 100 ns
a UNDEFINED
tx_relation "data_phase" 3 1
tx_end 3 7 260 ns
tx_end 1 4 260 ns
a 0

To generate a SCV text database, your code need to add few additional lines, similar to the code below:

    scv_startup();

    scv_tr_text_init();

    scv_tr_db db("my_db");
    scv_tr_db::set_default_db(&db);


Here you find an extended guide how to generate TLM transaction traces.

Usage

The reader can be used to open workspace resources and in combination with ports (direct connection to the targets using TCP, Pipe, ...).

Configuration

The SCV reader does not require any configuration.

toem

technical software and tooling

Company

Contact Us

This email address is being protected from spambots. You need JavaScript enabled to view it.