Skip to content

Commit

Permalink
Small change in a test
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Oct 24, 2023
1 parent 244153d commit 7459df3
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions test_regress/t/t_class_virtual.v
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,21 @@ class VB extends VBase;
endfunction
endclass

bit passed = 1'b0;

virtual class uvm_phase;
virtual function void exec_func;
virtual function int exec_func;
return 0;
endfunction
endclass

class uvm_topdown_phase extends uvm_phase;
function void traverse;
exec_func();
function int get1;
return exec_func();
endfunction
endclass

class uvm_build_phase extends uvm_topdown_phase;
virtual function void exec_func;
passed = 1'b1;
virtual function int exec_func;
return 1;
endfunction
endclass

Expand All @@ -58,8 +57,7 @@ module t;
if (b.hello() != 3) $stop;

ph = new;
ph.traverse();
if (!passed) $stop;
if (ph.get1() != 1) $stop;

$write("*-* All Finished *-*\n");
$finish;
Expand Down

0 comments on commit 7459df3

Please sign in to comment.