Skip to content

Commit 5e1609d

Browse files
committed
Merge branch 'isa_fix_uvm_fr_masker' into 'devel'
fix(frame_packer-uvm): replacement of removed variables in one frame sequence See merge request ndk/ndk-fpga!248
2 parents 76a069f + 911389b commit 5e1609d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

comp/mfb_tools/flow/frame_masker/uvm/tbench/tests/sequence_one_frame.sv

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ class sequence_one_frame #(int unsigned MFB_REGIONS, int unsigned MFB_REGION_SIZ
1111
endfunction
1212

1313
virtual task create_sequence_item();
14+
int unsigned rdy;
1415
gen.randomize();
1516

1617
// Randomization of READY
17-
void'(rdy_rdy.randomize());
18-
if (rdy_rdy.m_value == 0) begin
18+
assert(std::randomize(rdy) with { rdy dist {0 :/ (100 -rdy_probability), 1 :/ rdy_probability}; } );
19+
if (rdy == 0) begin
1920
gen.src_rdy = 0;
2021
return;
2122
end
@@ -27,8 +28,7 @@ class sequence_one_frame #(int unsigned MFB_REGIONS, int unsigned MFB_REGION_SIZ
2728
for (int unsigned region = 0; region < REGIONS; region++) begin
2829
for (int unsigned index = 0; index < REGION_SIZE; index++) begin
2930
if (state_packet == state_packet_space_new) begin
30-
void'(rdy_length.randomize());
31-
space_size = rdy_length.m_value;
31+
space_size = $urandom_range(space_size_min, space_size_max);;
3232
state_packet = state_packet_space;
3333
end
3434

0 commit comments

Comments
 (0)