Hello Everybody ,
I need help in parsing the given file ,
############### ############### ############### ############### #####
<sample_cfg : 00FF_F000>
#f_name bit_pos reset_val readable? writeable? special
sample_set 31:16 0000 y y -
sample_status 15:0 FFFF y n W1C
</sample_cfg>
<sample_int : 00FF_F100>
#f_name bit_pos reset_val readable? writeable? special
sample_set 0 0 y n W1C
sample_status 1 0 y n W1C
</sample_int>
<sample_int_mas k : 00FF_F200>
#f_name bit_pos reset_val readable? writeable? special
sample_set 0 0 y y -
sample_status 1 0 y y -
</sample_int_mask >
The data has to be extracted first and then formed in the form of a "Hash of Hash of Hash "
<sample_cfg : some value > is the register name
which has 2 function sample_set & sample_status . Each of this function has 5 fields . We need to parse them out and fill them in a HoHoH so that they could be represted in the form of a tree .
Regards ,
Amit
I need help in parsing the given file ,
############### ############### ############### ############### #####
<sample_cfg : 00FF_F000>
#f_name bit_pos reset_val readable? writeable? special
sample_set 31:16 0000 y y -
sample_status 15:0 FFFF y n W1C
</sample_cfg>
<sample_int : 00FF_F100>
#f_name bit_pos reset_val readable? writeable? special
sample_set 0 0 y n W1C
sample_status 1 0 y n W1C
</sample_int>
<sample_int_mas k : 00FF_F200>
#f_name bit_pos reset_val readable? writeable? special
sample_set 0 0 y y -
sample_status 1 0 y y -
</sample_int_mask >
The data has to be extracted first and then formed in the form of a "Hash of Hash of Hash "
<sample_cfg : some value > is the register name
which has 2 function sample_set & sample_status . Each of this function has 5 fields . We need to parse them out and fill them in a HoHoH so that they could be represted in the form of a tree .
Regards ,
Amit
Comment