Hi,
I was trying to randomize the the order of read and write through uvm_do_with. In the following code
1.class ahb_wr_rd_seqs extends ahb_base_seq;
2. `uvm_object_utils(ahb_wr_rd_seqs)
3. function new(string name="");
4. super.new(name);
5. endfunction
6. task body();
7. repeat(5) begin
8. `uvm_do_with(req, {req.wr_rd ==1;})
9. `uvm_do_with(req, {req.wr_rd ==0;})
10. end
11. endtask
12.endclass
The order of execution will be 5 write followed by 5 read. Is there any way of randomizing the order of execution here itself?
Regards