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

Subversion Repositories qaz_libs

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /qaz_libs/trunk/BFM/src/tb
    from Rev 34 to Rev 41
    Reverse comparison

Rev 34 → Rev 41

/bfm_pkg.sv
37,25 → 37,22
// BURSTY
} traffic_type_e;
 
 
// --------------------------------------------------------------------
//
class delay_class;
 
rand int delay = 0;
rand int unsigned delay = 0;
 
 
// --------------------------------------------------------------------
//
virtual function void set_delay(traffic_type_e kind = REGULAR);
case(kind)
NONE: delay = 0;
REGULAR: assert(this.randomize() with{delay dist {0 := 40, [1:3] := 40, [4:7] := 20};});
default: assert(this.randomize() with{delay dist {0 := 40, [1:3] := 40, [4:7] := 20};});
REGULAR: assert(this.randomize() with{delay dist {0 := 60, [1:3] := 30, [4:7] := 10};});
default: delay = 0;
endcase
endfunction: set_delay
 
 
// --------------------------------------------------------------------
//
virtual function int next(traffic_type_e kind = REGULAR);
63,12 → 60,10
return(delay);
endfunction: next
 
 
// --------------------------------------------------------------------
//
endclass: delay_class
 
 
// --------------------------------------------------------------------
//
virtual class transaction_class #(parameter type TR_T);
81,7 → 76,6
assert(this.randomize());
endfunction: random
 
 
//--------------------------------------------------------------------
//
function new;
88,12 → 82,10
delay_h = new();
endfunction: new
 
 
// --------------------------------------------------------------------
//
pure virtual function void copy(TR_T from);
 
 
// --------------------------------------------------------------------
//
function automatic TR_T clone;
104,12 → 96,10
return(clone);
endfunction: clone
 
 
// --------------------------------------------------------------------
//
endclass: transaction_class
 
 
//--------------------------------------------------------------------
//
endpackage: bfm_pkg

powered by: WebSVN 2.1.0

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