Variables are declared random using the rand or randc keyword. They can be used on normal variables, arrays, dynamic arrays or queues.
rand int count;
rand byte master [$];
rand bit [7:0] data ;
Login to your free account to read more ...
Was this article helpful ?