Can someone suggest me how to do this? I need to search for "go_bit", then next "desc" and whichever line has "desc" I need to add (DO_NOT_CHECK) at the end of line before "; For example:
go_bit_l_field CPU_HRST_L[7:7] = 1'h1; CPU_HRST_L->name = "CPU_HRST_L"; CPU_HRST_L->desc = "CPU_HRST_L value. Setting this to 0 will hard reset the CPU clearing the register/memory contents. This bits is self deasserts to a value of 1 in the following clock cycle";
I need to do:
go_bit_l_field CPU_HRST_L[7:7] = 1'h1; CPU_HRST_L->name = "CPU_HRST_L"; CPU_HRST_L->desc = "CPU_HRST_L value. Setting this to 0 will hard reset the CPU clearing the register/memory contents. This bits is self deasserts to a value of 1 in the following clock cycle (DO_NOT_CHECK)";
There can be multiple similar cases in same file and there are so many files having similar case. Also, note, except "got_bit" and "desc" rest of the things will be different for each case so only those two key words need to be used.
Thanks for your help.