Я пытаюсь использовать методы begin_tr и end_tr в UVM.И я имею в виду uvm trasaction article .
Например,
task run_phase(uvm_phase phase);
// uart_frame frame;
forever begin
// get item from the sequencer
void'(begin_tr(req, "run_phase"));
seq_item_port.get_next_item(req);
frames_sent++;
// send the item to the DUT
send_to_dut(req);
// call sequencer's item_done
seq_item_port.item_done();
end_tr(req);
end
endtask : run_phase
Как видно из приведенного выше примера, begin_tr
и end_tr
только что реализованы в task()
.
Однажды яbegin_tr
*
Я должен был реализовать begin_tr
и end_tr
только в функции task()
? * Я реализовал *1013* и end_tr
за пределами task()
.1021 *