input abc10; output v; checkinst_0( .port1(wireY), .port2(wireZ), .port3(wireX), .port4(port711), .port10 ); checkinst_2( .port5(wireYx), .port6(wireZ), .port7(wireaX), .port8(abc10), .port11 ); checkinst_3( .port5(wireYd), .port6(wireZS), .port7(wireXW), .port8(port10), .port12 );

for the above example i want to create the hash and say ".port " as source and "(wire)" as destination with the key as "checkinst_" if the destinations (wires) are same then i should print like portx of checkinstx is connected to porty of check inst y, if there is destination(wire) along the port, then eg: .port4 then i should make it as .port4(port4) and check if its connected to any port and print as earlier, if the wire (destination) is same as the one declared as input or output in the code then i should print as portx of checkinstx is connected to top if none of the above conditions are satisfied then i have to print as portx of checkinstx is left unconnected


In reply to How to check for the connectivity using hash by prk

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.