write a constraint upper nibble is weqal to lower nibble
module test();
class packet;
rand bit [7:0] a;
constraint c1 { foreach(a[i])
{
a[i]==a[32- (4*((i+4)/4))+ (i%4)];
};}
constraint c1 { foreach(a[i])
{
if(i%4%)
module test();
class packet;
rand bit [7:0] a;
constraint c1 { foreach(a[i])
{
a[i]==a[32- (4*((i+4)/4))+ (i%4)];
};}
constraint c1 { foreach(a[i])
{
if(i%4%)
Comments
Post a Comment