Quantcast
Channel: Cadence Functional Verification Forum
Viewing all articles
Browse latest Browse all 1075

UVM_CMDLINE_PROCESSOR working issue

$
0
0

Hi,

  I'm trying to get value from command line using UVM_CMDLINE_PROCESSOR but couldn't extract the value from command line with the following trail code;

class onscl extends uvm_object;

    extern function new(String name="onscl");

endclass

function onscl::new(string name = "onscl");
     uvm_cmdline_processor l_cmd = uvm_cmdline_processor::get_inst();
     string onscl_inputs[$];
    

     super.new(name);

     void'(l_cmd.get_arg_values(.match("+LENGTH="),.values(onscl_inputs)));
     foreach(onscl_inputs[i])

     begin

        `uvm_info(get_name(),$psprintf("ONSCL-INPUTS[%0d]:%s",i,onscl_inputs[i]),UVM_LOW)

     end

endfunction

       Please share your suggestion  for getting variable value from command line.

Regards,

mahee


         
  


Viewing all articles
Browse latest Browse all 1075

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>