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
- task body();
- repeat(5) begin
- `uvm_do_with(req, {req.wr_rd ==1;})
- `uvm_do_with(req, {req.wr_rd ==0;})
- end
- 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