below mwntioned is the format of my file the values of capacitances and trasition will change .... the actual file is a huge one so it will be asy if it is parsed ..... the desires output is to have the exact name of the module : net : and gate where the change has taken place. thanks for your help regards
Module: gg_PCI_PORT_bc_unit_224 [bc_pci_u3/bc_unit_u49] Net: inp_d_1 Max Capacitance = 0.61 (bc_0:A2 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_1:A2 [EXOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_2:A2 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_3:A2 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_4:A2 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Transition = 1.50 (bc_0:A2 [NAN2D1]) Pin Worst Transition = 7.60 VIOLATION = -6.10 Max Transition = 1.50 (bc_1:A2 [EXOR2D1]) Pin Worst Transition = 7.60 VIOLATION = -6.10 Max Transition = 1.50 (bc_2:A2 [NOR2D1]) Pin Worst Transition = 7.60 VIOLATION = -6.10 Max Transition = 1.50 (bc_3:A2 [NAN2D1]) Pin Worst Transition = 7.59 VIOLATION = -6.09 Max Transition = 1.50 (bc_4:A2 [NOR2D1]) Pin Worst Transition = 7.59 VIOLATION = -6.09 Net: inp_c_1 Max Capacitance = 0.61 (bc_0:A1 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_1:A1 [EXOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_2:A1 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_3:A1 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_4:A1 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_flop_reg_reg:RB [SDFRPQ1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Transition = 1.50 (bc_0:A1 [NAN2D1]) Pin Worst Transition = 7.60 VIOLATION = -6.10 Max Transition = 1.50 (bc_1:A1 [EXOR2D1]) Pin Worst Transition = 7.60 VIOLATION = -6.10 Max Transition = 1.50 (bc_2:A1 [NOR2D1]) Pin Worst Transition = 7.60 VIOLATION = -6.10 Max Transition = 1.50 (bc_3:A1 [NAN2D1]) Pin Worst Transition = 7.59 VIOLATION = -6.09 Max Transition = 1.50 (bc_4:A1 [NOR2D1]) Pin Worst Transition = 7.59 VIOLATION = -6.09 Max Transition = 1.50 (bc_flop_reg_reg:RB [SDFRPQ1]) Pin Worst Transition = 7.59 VIOLATION = -6.09 Module: gg_PCI_PORT_bc_unit_223 [bc_pci_u3/bc_unit_u48] Net: inp_d_1 Max Capacitance = 0.61 (bc_0:A2 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_1:A2 [EXOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_2:A2 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_3:A2 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_4:A2 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Transition = 1.50 (bc_0:A2 [NAN2D1]) Pin Worst Transition = 7.58 VIOLATION = -6.08 Max Transition = 1.50 (bc_1:A2 [EXOR2D1]) Pin Worst Transition = 7.59 VIOLATION = -6.09 Max Transition = 1.50 (bc_2:A2 [NOR2D1]) Pin Worst Transition = 7.59 VIOLATION = -6.09 Max Transition = 1.50 (bc_3:A2 [NAN2D1]) Pin Worst Transition = 7.59 VIOLATION = -6.09 Max Transition = 1.50 (bc_4:A2 [NOR2D1]) Pin Worst Transition = 7.59 VIOLATION = -6.09 Net: inp_c_1 Max Capacitance = 0.61 (bc_0:A1 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_1:A1 [EXOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_2:A1 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_3:A1 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_4:A1 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_flop_reg_reg:RB [SDFRPQ1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Transition = 1.50 (bc_0:A1 [NAN2D1]) Pin Worst Transition = 7.58 VIOLATION = -6.08 Max Transition = 1.50 (bc_1:A1 [EXOR2D1]) Pin Worst Transition = 7.59 VIOLATION = -6.09 Max Transition = 1.50 (bc_2:A1 [NOR2D1]) Pin Worst Transition = 7.59 VIOLATION = -6.09 Max Transition = 1.50 (bc_3:A1 [NAN2D1]) Pin Worst Transition = 7.59 VIOLATION = -6.09 Max Transition = 1.50 (bc_4:A1 [NOR2D1]) Pin Worst Transition = 7.58 VIOLATION = -6.08 Max Transition = 1.50 (bc_flop_reg_reg:RB [SDFRPQ1]) Pin Worst Transition = 7.58 VIOLATION = -6.08 Module: gg_PCI_PORT_bc_unit_222 [bc_pci_u3/bc_unit_u47] Net: inp_d_1 Max Capacitance = 0.61 (bc_0:A2 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_1:A2 [EXOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_2:A2 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_3:A2 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_4:A2 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Transition = 1.50 (bc_0:A2 [NAN2D1]) Pin Worst Transition = 7.52 VIOLATION = -6.02 Max Transition = 1.50 (bc_1:A2 [EXOR2D1]) Pin Worst Transition = 7.53 VIOLATION = -6.03 Max Transition = 1.50 (bc_2:A2 [NOR2D1]) Pin Worst Transition = 7.53 VIOLATION = -6.03 Max Transition = 1.50 (bc_3:A2 [NAN2D1]) Pin Worst Transition = 7.53 VIOLATION = -6.03 Max Transition = 1.50 (bc_4:A2 [NOR2D1]) Pin Worst Transition = 7.53 VIOLATION = -6.03 Net: inp_c_1 Max Capacitance = 0.61 (bc_0:A1 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_1:A1 [EXOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_2:A1 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_3:A1 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_4:A1 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_flop_reg_reg:RB [SDFRPQ1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Transition = 1.50 (bc_0:A1 [NAN2D1]) Pin Worst Transition = 7.53 VIOLATION = -6.03 Max Transition = 1.50 (bc_1:A1 [EXOR2D1]) Pin Worst Transition = 7.54 VIOLATION = -6.04 Max Transition = 1.50 (bc_2:A1 [NOR2D1]) Pin Worst Transition = 7.53 VIOLATION = -6.03 Max Transition = 1.50 (bc_3:A1 [NAN2D1]) Pin Worst Transition = 7.53 VIOLATION = -6.03 Max Transition = 1.50 (bc_4:A1 [NOR2D1]) Pin Worst Transition = 7.53 VIOLATION = -6.03 Max Transition = 1.50 (bc_flop_reg_reg:RB [SDFRPQ1]) Pin Worst Transition = 7.52 VIOLATION = -6.02 Module: gg_PCI_PORT_bc_unit_221 [bc_pci_u3/bc_unit_u46] Net: inp_d_1 Max Capacitance = 0.61 (bc_0:A2 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_1:A2 [EXOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_2:A2 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_3:A2 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_4:A2 [NOR2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Transition = 1.50 (bc_0:A2 [NAN2D1]) Pin Worst Transition = 7.47 VIOLATION = -5.97 Max Transition = 1.50 (bc_1:A2 [EXOR2D1]) Pin Worst Transition = 7.48 VIOLATION = -5.98 Max Transition = 1.50 (bc_2:A2 [NOR2D1]) Pin Worst Transition = 7.47 VIOLATION = -5.97 Max Transition = 1.50 (bc_3:A2 [NAN2D1]) Pin Worst Transition = 7.48 VIOLATION = -5.98 Max Transition = 1.50 (bc_4:A2 [NOR2D1]) Pin Worst Transition = 7.48 VIOLATION = -5.98 Net: inp_c_1 Max Capacitance = 0.61 (bc_0:A1 [NAN2D1]) Net Capacitance = 6.04 VIOLATION = -5.43 Max Capacitance = 0.61 (bc_1:A1 [EXOR2D1]) Net Capacitance = 6.04

theorbtwo: Added code and readmore tags.


In reply to Re: Re: Parsing A File by gautam_buddha
in thread Parsing A File by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.