Technical data

CR-80 ModelSim Commands ModelSim EE/SE Command Reference
environment
The environment, or env command, allows you to display or change the current
region/signal environment.
Syntax
environment
[-dataset] [-nodataset] [<pathname>]
Arguments
-dataset
Displays the specified environment pathname with a dataset prefix. Optional.
Dataset prefixes are displayed by default if more than one dataset is open during
a simulation session.
-nodataset
Displays the specified environment pathname without a dataset prefix. Optional.
<pathname>
Specifies the pathname to which the current region/signal environment is to be
changed. Optional; if omitted, the command causes the pathname of the current
region/signal environment to be displayed.
Multiple levels of a pathname must be separated by the character specified in the
PathSeparator
(B-400). A single path separator character can be entered to indicate
the top level. Two dots (..) can be entered to move up one level.
Examples
env
Displays the pathname of the current region/signal environment.
env ..
Moves up one level in the design hierarchy.
env blk1/u2
Moves down two levels in the design hierarchy.
env /
Moves to the top level of the design hierarchy.