Hi,
Using the below code:
string reg_name = "REG_0";
int num_sel = 1;
reg_name.putc((reg_name.len()-1),num_sel);
`uvm_info(get_full_name(),$psprintf("reg_name = %0s ",reg_name),UVM_LOW);
I am expecting the output to be → REG_1
But I get this → REG_^A
Is this not the correct way to use the putc method?