how to compress a bus net?

Posted by zh_ on Stack Overflow See other posts from Stack Overflow or by zh_
Published on 2009-06-29T06:43:41Z Indexed on 2010/04/24 23:03 UTC
Read the original article Hit count: 285

Filed under:

I have a file that contain huge number of net names. I would like to compress the bus nets as below:

abc/def/gh[0]
abc/def/gh[1]
abc/def/gh[2]
ab/ef/xx
abc/def/gh[3]

to

abc/def/gh[3:0]
ab/ef/xx

© Stack Overflow or respective owner

Related posts about perl