prk has asked for the wisdom of the Perl Monks concerning the following question:
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
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to check for the connectivity using hash
by Fletch (Bishop) on Oct 01, 2019 at 12:20 UTC | |
Re: How to check for the connectivity using hash
by tybalt89 (Monsignor) on Oct 01, 2019 at 16:45 UTC | |
by prk (Initiate) on Oct 02, 2019 at 04:00 UTC | |
by daxim (Curate) on Oct 02, 2019 at 09:27 UTC | |
Re: How to check for the connectivity using hash
by karlgoethebier (Abbot) on Oct 01, 2019 at 12:34 UTC |