I'm generating a netlist from CIW using:
simulator('spectre)design("libName" "cellName" "viewName")createNetlist()
This works fine but I would like to enclose the top level cell in .subckt/ends statements, similar to other cells in the hierarchy. Is that possible using the skill/ocean interface?
I think you'll have to show what Netlist_TopLevel_SubCkt looks like. I'm not sure what you mean by placing my code followed by Tavi's in a procedure. My code relies on pre-loading some context files before defining some classes - so I'm guessing something got screwed up somewhere as it doesn't know what spectreFormatter is. So please share the code so that I can check it - you've only shown the menu definition, which is not the interesting part...