Help about if statement in constraint block

In reply to Naven8:

Hi Naven,

I have 2 commands, Read and Write.
If cmd is 0 then it is Read. If cmd is 1 then it is Write.
If it is Write, then data is just randomized.
If it is Read, then data should concatenate the randomized value of td, addr_inc, and num_rd.