"'h":void'($sscanf(extval,"%h",v));"'x":void'($sscanf(extval,"%h",v));"0x":void'($sscanf(extval,"%h",v));default:void'($sscanf(split_val[2],"%d",v));`endifendcaseendelsebegin`ifdefUVM_DO_NOT_USE_SSCANFv=split_val[2].atoi();`elsevoid'($sscanf(split_val[2],"%d",v));`endifenduvm_report_info("UVM_CMDLINE_PROC",{"Applying config setting from the command line: +uvm_set_config_int=",cfg},UVM_NONE);uvm_config_int::set(m_uvm_top,split_val[0],split_val[1],v);endelsebeginuvm_report_info("UVM_CMDLINE_PROC",{"Applying config setting from the command line: +uvm_set_config_string=",cfg},UVM_NONE);
"0b":v=extval.atobin();"'o":v=extval.atooct();"'d":v=extval.atoi();"'h":v=extval.atohex();"'x":v=extval.atohex();"0x":v=extval.atohex();default:v=split_val[2].atoi();endcaseendelsebeginv=split_val[2].atoi();enduvm_report_info("UVM_CMDLINE_PROC",{"Applying config setting from the command line: +uvm_set_config_int=",cfg},UVM_NONE);uvm_config_int::set(m_uvm_top,split_val[0],split_val[1],v);end// if (is_int)elseif(is_bitstream)beginstringbase,extval,tmp;intsuccess;bitis_negative;if(split_val[2].len()>1)beginbytechar;char=split_val[2].getc(0);// Optional signif(char=="-")begin// Signed, negativeis_negative=1;tmp=split_val[2].substr(1,split_val[2].len()-1);endelseif(char=="+")begin// Signed, positive (just remove the sign)tmp=split_val[2].substr(1,split_val[2].len()-1);