Code Browser Pages:
| //////////////////////////////////////////////// ////s~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~s//// ////s www.testbench.in s//// ////s s//// ////s OVM Tutorial s//// ////s gopi@testbenh.in s//// ////s~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~s//// //////////////////////////////////////////////// class seq_mul extends ovm_sequence #(instruction); rand integer num_inst ; instruction req; constraint num_c { num_inst inside { 3,5,7 }; }; `ovm_sequence_utils_begin(seq_mul,instruction_sequencer) `ovm_field_int(num_inst, OVM_ALL_ON) `ovm_sequence_utils_end function new(string name="seq_mul"); super.new(name); endfunction virtual task body(); ovm_report_info(get_full_name(),$psprintf("Num of transactions 0",num_inst),OVM_LOW); repeat(num_inst) begin `ovm_do_with(req, { inst == MUL; }); end endtask endclass |