thanks a lot danmero
i am new to shell scripting. Kindly help me with this if possible.
now that i have my list I need to replace them as follows
inv in_0 (.A(\test/ClkInt0_acb_00x1 ),.VDD(VDD),.VSS(VSS),.Z(i_0));
nand nd2_0 (.A(i_0), .B(VDD),.VDD(VDD),.VSS(VSS),.Z(nd_0));
ff1 \test/a0 ( .CLK(nd_0),.D(\test/Rakicc ), .QB(\test/X [1]), .VDD(1'b1), .VSS(1'b0), .A(tmp_0), .B(tmp_1) );
inv in_1 (.A(\test/medis0_acb_00x1 ),.VDD(VDD),.VSS(VSS),.Z(i_1));
nand nd2_1 (.A(i_1), .B(VDD),.VDD(VDD),.VSS(VSS),.Z(nd_1));
ff1 \test/a1 ( .CLK(nd_1)),.D(\test/hedwc ), .QB(\test/X [1]), .VDD(1'b1), .VSS(1'b0),.A(tmp_1), .B(tmp_2) );
nv in_2 (.A(\test/tergus_acb_00x1 ),.VDD(VDD),.VSS(VSS),.Z(i_2));
nand nd2_2 (.A(i_2), .B(VDD),.VDD(VDD),.VSS(VSS),.Z(nd_2));
ff1 \test/a2 ( .CLK(nd_2)),.D(\test/Ddec ), .QB(\test/X [1]), .VDD(1'b1), .VSS(1'b0),.A(tmp_2), .B(tmp_3) );
......
.......
I am using a lengthy workaround. i Initially generate a list using
#!/bin/bash
i=$1
while [ $i -lt $2 ]; do
j=$(($i+1))
echo "nv in_$i (.A(),.VDD(VDD),.VSS(VSS),.Z(i_$i));
nand nd2_$i (.A(i_$i), .B(VDD),.VDD(VDD),.VSS(VSS),.Z(nd_$i));
(.CLK(nd_$i)),.D(), .QB(), .VDD(1'b1), .VSS(1'b0),.A(tmp_$i), .B(tmp_$j) ); " >> temp_list.v
i=$(($i+1))
done
and then i manually replace other data. Could anyone help me with an easier workaround please?
Thanks again
Naveen