I was trying to figure out how I can modify the netlist that is simulated in ocean. I would like to have the ability to arbitrarily add instances (of any type) into the netlist that is simulated with the run() command.
I finally figured out that if you have skill statements in your ocean script to that create a file with your new instances that you wish to add.
You can add them into your schematic with:
stimulusFile( "Name of new File" ?xlate nil)
In reply to Andrew Beckett:
Ya, I figured out what the magic was to gettting the stimulusFile() to work
1) include a simulator lang=spectre at the beginning of the included file
2) include a ?xlate nil in the command.
I have a file foo.txt which contains:
simulator lang=spectrealt0 alter dev=S0 param=tran_position value=2
then in the ocean I have to use:stimulusFile("foo.txt" ?xlate nil)
This includes the file as written and doesn't modify it.
In reply to markbeck:
Interesting, I didn't know about the .scs suffix.
thanks for catching the typo, I corrected it.