OpenCores
URL https://opencores.org/ocsvn/qaz_libs/qaz_libs/trunk

Subversion Repositories qaz_libs

[/] [qaz_libs/] [trunk/] [PCIe/] [sim/] [src/] [riffa_agent_class_pkg.sv] - Diff between revs 37 and 39

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 37 Rev 39
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
 
 
 
 
  // --------------------------------------------------------------------
  // --------------------------------------------------------------------
  //
  //

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.