data structure in spice source code

Hello,

Can anybody please tell me, how to print the matrix formed during spice simulation. I am interested in seeing the values of the matrix formed from various circuits.

Can sombody please guide me as to which data structure will the matrix be in the spice code and how to see its value during simulation?

Thanks, dilip

Reply to
Dilips
Loading thread data ...

Quite simple really, get any of several free versions of spice source code and compile it for debugging. Start up a simulation and go wading through the data set. Once you have done that, you may know enough to print that data you are after from your modified version of spice. Aside from that, you seem to be quite the blazing idiot to even attempt such a thing.

--
 JosephKK
 Gegen dummheit kampfen die Gotter Selbst, vergebens.  
  --Schiller
Reply to
joseph2k

I have to give the matrix I obtain to another module for some research I am pursuing. I am not familiar with spice3. Could you please elaborate on wading through data set. It is really important that I get a hold of this matrix.

Thanks dilip

Reply to
Dilips

Google for spice source code. Get a version you like, compile for debugging and run it in a debugger. You should even have all the relevant variable names from the source code.

--
 JosephKK
 Gegen dummheit kampfen die Gotter Selbst, vergebens.  
  --Schiller
Reply to
joseph2k

You dont even have to compile for debug -- just find where the code builds the matrix and dump it to a file in some usable format just before the program starts simulation. No need to wade through an executing program.

Use The Code, Luke !! :)

Reply to
John Barrett

I have used the code. I just let it execute and sample the intermediate state; you would analyze it and write one or more files somewhere while it executed.

--
 JosephKK
 Gegen dummheit kampfen die Gotter Selbst, vergebens.  
  --Schiller
Reply to
joseph2k

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.