Technical data
search and next
ModelSim EE/SE Command Reference ModelSim Commands CR-141
search and next
The search and next commands search the specified window for one or more
items matching the specified pattern(s). The search starts at the item currently
selected, if any; otherwise starts at the window top. Default action is to search
downward until the first match, then move the selection to the item found, and
return the index of the item found. The search can be continued using the next
command.
Returns the index of a single match, or list of matching indices. Returns nothing
if no matches are found.
Syntax
search
<win_type> [-window <wname>] <pattern> [-reverse] [-all]
[-field <n>] [-toggle] [-forwards] [-backwards] [-exact] [-regexp]
[-nocase] [-count <n>]
next
<win_type> [-window <wname>]
Arguments
<win_type>
Specifies structure, signals, process, variables, wave, list, source, or a unique
abbreviation thereof. Required.
-window <wname>
Use this option to specify an instance of the window that is not the default.
Optional. Otherwise, the default window is used. Use the view command
(CR-180)
to change the default window.
<pattern>
String or glob-style wild-card pattern. Required.
Arguments, for all EXCEPT the Source window
-reverse
Search in the reverse direction. Optional. Default is forward.
-all
Find all matches and return a list of the indices of all items that match. Optional.