CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
need help in writing script

 



radioelektra
New User

Jul 28, 2014, 9:59 PM

Post #1 of 2 (405 views)
need help in writing script Can't Post

Hi,

I have a input text file as follows.

cellname: inv
.pininfo out in
MN0 out in vdd vdd nl w='x*1u'
MP0 out in gnd gnd pl w='y*2u'

cellname: nand2
.pininfo out A B
MN0 n1 A gnd gnd nl2 w='x2*1u'
MN1 out B n1 gnd nl1 w='x1*1u'
MP0 out A vdd vdd pl2 w='y2*2u'
MP1 out B vdd vdd pl1 w='y1*2u'

cell name: mux
.pininfo out A ABAR
MN0 out A in gnd nl w='x*1u
MN1 out ABAR in gnd nl w='x*1u
MP0 out ABAR in vdd pl w='y*2u'
MP1 out A in vdd pl w='y*2u'

cellname: digital
XI1 OUT1 IN1 inv pl=500n nl=400n x=1 y=3
XI2 OUT2 IN1 OUT1 pl=300n nl=300n x=2 y=2
XI3 Y A1 B1 pl2=250n pl1=250n nl2=500n nl1=500n x2=2 x1=2 y2=3 y1=4


I want my output as following

XI1/MN0 400n w=1u
XI1/MP0 500n w=6u

XI2/MN0 300n w=4u
XI2/MN1 300n w=4u
XI2/MP0 300n w=4u
XI2/MP1 300n w=4u

XI3/MN0 500n w=4u
XI3/MN1 500n w=4u
XI3/MP0 250n w=6u
XI3/MP1 250n w=8u


BillKSmith
Veteran

Jul 29, 2014, 7:29 AM

Post #2 of 2 (393 views)
Re: [radioelektra] need help in writing script [In reply to] Can't Post

You are going to have to explain what you want us to do. I do not seen any relation between the input and output in your single example!
Good Luck,
Bill

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives