Quantcast
Channel: Cadence Custom IC Design Forum
Viewing all articles
Browse latest Browse all 4911

Query hierarchical Spectre model for used subckt

$
0
0

Greetings,

The Problem:

I am using Spectre model library which consist of certain base models, which depending on design variable or model parameter can include a supplementary subckt. These models can either include the extra subckts directly in the model files hierarchy or on netlist level. I'd like to be able understand whether the particular model used in a given netlist, actually leverages that supplementary subckt

The clue:

Adding the following analysis in my netlist subckts info what=subckts where=rawfile, produces a subckts.info.subckts file in psf directory, that has information about all subckt used in my netlist after expanding the models. This list is flat, meaning it has no information about in which "parent" was this subckt used in. In my netlist directory, I also have the .includedModels which stores list of all top level models used in my input.scs file. I need a way to map the subckts from subckts.info.subckts back to models in my .includedModels / input.scs, so that I can confidently state: "Okay, modelA.scs doesn't actually use supplementaryModel.scs"

Where am I at:

Initially, I thought I could just brute force the problem, by having all the subckts from subcksts.info.subckts and text-parse all the models from the library to try to establish the relation between that subckt and the top level model. However, this is A) slow and painful and B) impossible if model files are encrypted. I am thinking if Spectre is able to spit this information for me in some way, after all it obviously does go through the process of model expansion in forward direction, it might be possible to store the relations in the process.

*I quite frivolously used the terms model and subckt and in this particular case I've used them somewhat interchangeably.

Any suggestions are highly appreciated. Thank you!


Viewing all articles
Browse latest Browse all 4911

Trending Articles