rand bit high_speed_sdr0_ddr1 ;
rand bit [15:0] block_length;
rand bit hs200_en;
rand bit [1:0] max_block_length ; // 0=512; 1=1k ; 2=2k ; 3=reserved 4k;
constraint c_mac_blk_limit {
solve high_speed_sdr0_ddr1 before max_block_length;
if (high_speed_sdr0_ddr1 == 1 && hs200_en == 0 )
{
(max_block_length == 0);
}
else
{
max_block_length inside {0,1,2}; //as the 3rd value (11) is reserved .
}
}
constraint c_block_length { block_length < =max_block_length }
now here my question is that i want to prioritzie the upper write constraint first and c_block_length constraitn later …
so is is possible to give priority that way or i just have to mange up the logic in other way. ???