Line 38... |
Line 38... |
class riffa_agent_class #(N);
|
class riffa_agent_class #(N);
|
|
|
riffa_transaction_class #(N) tr_h;
|
riffa_transaction_class #(N) tr_h;
|
rp_tx_bfm_class #(N) tx_h;
|
rp_tx_bfm_class #(N) tx_h;
|
rp_rx_bfm_class #(N) rx_h;
|
rp_rx_bfm_class #(N) rx_h;
|
// mailbox #(riffa_transaction_class #(N)) tx_q, rx_q;
|
|
mailbox #(riffa_transaction_class #(N)) tx_q;
|
mailbox #(riffa_transaction_class #(N)) tx_q;
|
|
|
|
|
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
//
|
//
|
Line 70... |
Line 69... |
endtask: queue_tx_counting
|
endtask: queue_tx_counting
|
|
|
|
|
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
//
|
//
|
|
task queue_tx_hex(string str, int off, bit last);
|
|
tr_h = new(1, off, last);
|
|
tr_h.hex(str, off, last);
|
|
queue_tx(tr_h);
|
|
endtask: queue_tx_hex
|
|
|
|
|
|
// --------------------------------------------------------------------
|
|
//
|
task queue_tx_random(int len, int off, bit last);
|
task queue_tx_random(int len, int off, bit last);
|
tr_h = new(len, off, last);
|
tr_h = new(len, off, last);
|
tr_h.random(len, off, last);
|
tr_h.random(len, off, last);
|
queue_tx(tr_h);
|
queue_tx(tr_h);
|
endtask: queue_tx_random
|
endtask: queue_tx_random
|
Line 82... |
Line 90... |
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
//
|
//
|
task queue_rx(int len, int off, bit last);
|
task queue_rx(int len, int off, bit last);
|
tr_h = new(len, off, last);
|
tr_h = new(len, off, last);
|
rx_h.put(tr_h);
|
rx_h.put(tr_h);
|
// rx_q.put(tr_h);
|
|
endtask: queue_rx
|
endtask: queue_rx
|
|
|
|
|
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
//
|
//
|
Line 106... |
Line 113... |
//
|
//
|
function new(virtual riffa_chnl_if #(.N(N)) chnl_bus);
|
function new(virtual riffa_chnl_if #(.N(N)) chnl_bus);
|
tx_h = new(chnl_bus);
|
tx_h = new(chnl_bus);
|
rx_h = new(chnl_bus);
|
rx_h = new(chnl_bus);
|
this.tx_q = new;
|
this.tx_q = new;
|
// this.rx_q = new;
|
|
endfunction: new
|
endfunction: new
|
|
|
|
|
// --------------------------------------------------------------------
|
// --------------------------------------------------------------------
|
//
|
//
|