5
OCEAN Environment Commands
This topic lists the OCEAN environment commands that let you start, control, and quit the OCEAN environment.
appendPath
appendPath(t_dirName1... [t_dirNameN] ) =>t_dirNameN/ nil
Description
Appends a new path to the end of the search path list. You can append as many paths as you want with this command.
Arguments
Value Returned
Examples
Adds /usr/mnt/user/processA/models to the end of the current search path.
appendPath( "/usr/mnt/user/processA/models" )
=> "/usr/mnt/user/processA/models"
Adds /usr/mnt/user/processA/models and /usr/mnt/user/processA/models1 to the end of the current search path.
appendPath( "/usr/mnt/user/processA/models" "/usr/mnt/user/processA/models1")
=> "/usr/mnt/user/processA/models"
path
path(t_dirName1... [t_dirNameN] ) =>l_pathList/ nil
Description
Sets the search path for included files.
This command overrides the path set earlier using any of the following commands:
Using this command is comparable to setting the Include Path for the direct simulator, or the modelPath for socket simulators in the Virtuoso® Analog Design Environment user interface. You can add as many paths as you want with this command.
Arguments
Value Returned
Examples
Specifies that the search path includes /models followed by /tmp/models.
path( "~/models" "/tmp/models" )
=> "~/models" "/tmp/models"
Returns the search path last set.
path()
=> "~/models" "/tmp/models"
Related Topics
prependPath
prependPath(t_dirName1... [t_dirNameN] ) => undefined / nil
Description
Adds a new path to the beginning of the search path list. You can add as many paths as you want with this command.
Arguments
Value Returned
Examples
Adds /usr/mnt/user/processB/models to the beginning of the search path list.
prependPath( "/usr/mnt/user/processB/models" )
=> "/usr/mnt/user/processB/models"
Adds /usr/mnt/user/processB/models and /usr/mnt/user/processB/models2 to the beginning of the search path list.
prependPath( "/usr/mnt/user/processB/models" "/usr/mnt/user/processB/models2")
=> "/usr/mnt/user/processB/models"
Returns the search path last set.
prependPath()
=> "/usr/mnt/user/processB/models" "~/models" "/tmp/models"
Related Topics
setup
setup( [ ?numberNotations_numberNotation] [ ?precisionx_precision] [ ?reportStyles_reportStyle] [ ?charsPerLinex_charsPerLine] [ ?messageOng_messageOn] ) => t / nil
Description
Specifies default values for parameters.
Arguments
|
Specifies the notation for printed information.
Valid values:
The format for each value is
The value |
|
|
Specifies the number of significant digits that are printed. |
|
|
Specifies the format of the output of the report command.
|
|
|
Specifies the number of characters per line output to the display. |
|
|
Specifies whether error messages are turned on.
Valid values:
Default value: |
|
Value Returned
Examples
Specifies that any printed information is to be in engineering mode by default.
setup( ?numberNotation'engineering )
=> t
Specifies that 5 significant digits are to be printed.
setup( ?precision 5 )
=> t
Sets up number notation to suffix format, characters per line to 40, reporting style to Spice, and error message to ON.
setup(?numberNotation 'suffix ?charsPerLine 40 ?reportStyle 'spice ?messageOn t)
history
history(
[ x_number ]
)
=> t
Description
Displays the command history. By default, it the last twenty commands are listed from the current session and the most recently terminated session. More commands can be printed by giving a number as an argument.
Arguments
|
The number of previously entered commands to be listed. Default value: |
Value Returned
Examples
history
1 simulator('spectre)
2 design( "tests" "simple" "schematic")
3 analysis( 'tran ?start 0 ?stop 1u ?step 10n )
4 run()
=> t
Displays the most recently used commands. To reuse any of these commands, use the following methods at the ocean prompt:
-
ocean> !1
This executes the command numbered1, which in this example issimulator('spectre). -
ocean> !des
This executes the last command whose prefix starts withdesin the history. In this example, it is the second command listed, that is,design( "tests" "simple" "schematic").<space>!<commandNumber>
ocnSetSilentMode
ocnSetSilentMode(g_silentMode) =>t
Description
Filters out OCEAN warning and information messages and allows only error messages to be written. This functionality is useful while running the OCEAN scripts when you might want to skip all OCEAN messages except errors.
Arguments
|
Accepts boolean values
Set to |
Value Returned
|
Returns |
Examples
Suppresses the ocean warning messages.
ocnSetSilentMode(t)
=> t
Displays the ocean warning messages
ocnSetSilentMode(nil)
=> t
Return to top