Quantcast
Channel: UVM Forums RSS Feed
Viewing all articles
Browse latest Browse all 756

extracting data from uvm_do_with macro

$
0
0

Hello,

 

let's say i have a sequence, in this sequence i'm reading data using the uvm_do_with macro.

an example would be a read transaction in an APB agent.

 

how do i extract the data from it?

 

PARTIAL CODE:

 

    virtual task  body();
        apb_item#(AW, DW) it;
 
        case(op_kind)
            `APB_READ: begin
                `uvm_do_with(it,
                    {
                    it.address == tr_address;
                    it.rw          == op_kind;
                    }
                );// `uvm_do_with
            end
 
        endcase
 
    endtask: body
 
Thx,
Assaf
 

Viewing all articles
Browse latest Browse all 756

Trending Articles