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
- from Rev 41 to Rev 34
- ↔ Reverse comparison
Rev 41 → Rev 34
/src/axis_video_frame/avf_agent_class_pkg.sv
36,7 → 36,7
|
// -------------------------------------------------------------------- |
// |
class avf_agent_class #(BYTES_PER_PIXEL, OUTPUTS_PER_TILE = 1, AVF_U = 3); |
class avf_agent_class #(BYTES_PER_PIXEL = 2, OUTPUTS_PER_TILE = 1, AVF_U = 3); |
|
localparam AVF_N = BYTES_PER_PIXEL * OUTPUTS_PER_TILE; // data bus width in bytes |
localparam AVF_B = BYTES_PER_PIXEL * 8; // bits per pixel on TDATA |
/src/tb/bfm_pkg.sv
37,22 → 37,25
// BURSTY |
} traffic_type_e; |
|
|
// -------------------------------------------------------------------- |
// |
class delay_class; |
|
rand int unsigned delay = 0; |
rand int 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 := 60, [1:3] := 30, [4:7] := 10};}); |
default: 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};}); |
endcase |
endfunction: set_delay |
|
|
// -------------------------------------------------------------------- |
// |
virtual function int next(traffic_type_e kind = REGULAR); |
60,10 → 63,12
return(delay); |
endfunction: next |
|
|
// -------------------------------------------------------------------- |
// |
endclass: delay_class |
|
|
// -------------------------------------------------------------------- |
// |
virtual class transaction_class #(parameter type TR_T); |
76,6 → 81,7
assert(this.randomize()); |
endfunction: random |
|
|
//-------------------------------------------------------------------- |
// |
function new; |
82,10 → 88,12
delay_h = new(); |
endfunction: new |
|
|
// -------------------------------------------------------------------- |
// |
pure virtual function void copy(TR_T from); |
|
|
// -------------------------------------------------------------------- |
// |
function automatic TR_T clone; |
96,10 → 104,12
return(clone); |
endfunction: clone |
|
|
// -------------------------------------------------------------------- |
// |
endclass: transaction_class |
|
|
//-------------------------------------------------------------------- |
// |
endpackage: bfm_pkg |