The Problem content is
pin (AND1) {
dir : output;
cap : hot;
tran: slew;
}
need to write a awk script which can search the Pin AND1 and then tran of the Group pin(AND1)
and then insert the code from the file "insert_code" .
insert_code file contents . It is a Big file the script should match the keywords #PIN (AND1) and #END
in the insert_code section and then insert the content in the file file1
#PIN (AND1)
timing () {
related_pin : GOOD ;
timing_type : setup_rising ;
rise_constraint (scalar) {
values ("TRIN") ;
}
fall_constraint (scalar) {
values ("BAD") ;
}
}
timing () {
related_pin : HSSRESYNCCLKOUT_int ;
timing_type : hold_rising ;
rise_constraint (scalar) {
values ("GOOD") ;
}
fall_constraint (scalar) {
values ("BAD") ;
}
}
}
#END
the new file file2 content after inserting the code should be :
pin (AND1) {
dir : output;
cap : hot;
tran: slew;
timing () {
related_pin : GOOD ;
timing_type : setup_rising ;
rise_constraint (scalar) {
values ("TRIN") ;
}
fall_constraint (scalar) {
values ("BAD") ;
}
}
timing () {
related_pin : HSSRESYNCCLKOUT_int ;
timing_type : hold_rising ;
rise_constraint (scalar) {
values ("GOOD") ;
}
fall_constraint (scalar) {
values ("BAD") ;
}
}
}
}
CAN ANYONE HELP ME OUT IN THIS URGENTLY
Thanks and Regards
Kshitij