Quantcast
Channel: UVM Forums RSS Feed
Viewing all articles
Browse latest Browse all 756

uvm_do_with constrain problem with sequence

$
0
0

class my_transaction extends uvm_sequence_item;

....

int a;

int b;

int c;

....

endclass

 

 

 

class my_sequence extends uvm_sequence#(..)

....

my_transaction tx;

...

`uvm_do_with(tx,{tx.a==1;tx.b==1;tx.c==1;})

....

endclass

 

 

 

 

 

class my_complex sequence extends uvm_sequence#(...)

 

my_sequence seq;

..

..

`uvm_do_with(seq,{seq.a==0;seq.b==0;seq.c==0;})   // This Doesn't work........How can I change value of a,b,c in this situation?


Viewing all articles
Browse latest Browse all 756

Trending Articles