Hi,
I have the next scenario inside uvm_seqeunce_item class:
bit [10:0] a;
int b;
bit [511:0] data
I need to create constraint in which size of data array is subjected to ‘a’ and ‘b’ variables:
I tried to use $floor function inside the constraint and got an error since it’s not allowed to use $floor inside constraint (the constraint goes like that: data.size() == $floor(a/b)).
there is another way to take the whole part of a real number inside constraint?
another question since both ‘a’ and ‘b’ are integer is the division result automatically the whole part of the division result and no floor is needed inside the constraint
Thanks!