The most complete Modelsim keyboard shortcuts and mouse operations in history-official website document translation

Modelsim keyboard shortcuts and mouse operations

Use Modelsim to view waveforms. Most of the operations are keyboard and mouse cooperation. Familiar with shortcut key operations can help improve operation efficiency.

The content comes from the official instruction manual of Modelsim, which can be queried like this in the GUI interface:

Help -> SE Documentation - InfoHub(HTML Brower Required),As shown below:

image-20210320103914229

You can also query through the installation directory, where the path is installed D:盘as an example:

D:\modeltech64_10.6e\docs\htmldocs

Keyboard shortcuts and mouse operations

You can use various keyboard and mouse operations to operate the user interface.

  • Window-specific keyboard shortcuts
  • User-defined keyboard shortcuts
  • Mouse and keyboard shortcuts for the main window and the source window
  • List of keyboard shortcuts in GUI Windows
  • List window keyboard shortcuts
  • Wave window mouse and keyboard shortcuts

The operation of the first few shortcut keys can be understood. The author does not currently configure user-defined keyboard shortcuts. The most frequently used is still the lastWave window mouse and keyboard shortcuts. If you don't read the previous content, it will not affect you to jump directly to that section.

The following content uses google translation, plus manual proofreading, if there is any problem, the original English version shall prevail.

Window-specific keyboard shortcuts

Ctrl + /A dynamic list of frequently used (predefined) and user-defined keyboard sort windows of many ModelSim windows can be opened by typing on the keyboard.

For example, Figure 1 shows a list of keyboard shortcuts provided for the "Source" window.

Figure 1. Keyboard shortcuts for the source window

img

By clicking at the bottom of the list 查看所有快捷方式(View All Shortcuts), you can find a complete list of all keyboard shortcuts (both predefined and user-defined). For more information on how to create custom shortcut keys, please refer to User Defined Keyboard Shortcuts.

User-defined keyboard shortcuts

In addition to the predefined keyboard shortcuts, you can also use the 键盘快捷键dialog box to create your own shortcuts or modify the predefined keyboard shortcuts.

Shortcuts can be window-specific (available only when the window is active) or global (available from anywhere in the tool). You can create keyboard shortcuts for any ModelSim window.

Once the shortcut is defined, it will be available in all subsequent calls. The dynamic nature of the architecture allows keyboard shortcuts to be used with any Mentor Graphics product based on the ModelSim GUI.

### Keyboard shortcut dialog

The Keyboard Shortcuts dialog box lists all existing keyboard shortcuts. This dialog box distinguishes user-defined shortcuts and ModelSim simulator predefined shortcuts.
Figure 2 shows an 键盘快捷键example of the dialog box, which you can display by selecting the following from the main menu:

Windows>键盘快捷方式...

Figure 2. Keyboard shortcut dialog

img

The keyboard shortcut dialog box allows you to:

  • Add a new user-defined keyboard shortcut. For more information, refer to Creating keyboard shortcuts.
  • Modify existing keyboard shortcuts. Any shortcut can be modified, including predefined shortcuts.
  • Delete the shortcut.
  • bindings.doImport shortcuts from previously saved files. You can also use the docommand to reload the keyboard shortcut file.
  • Export all user-defined keyboard shortcuts to a bindings.dofile. The keyboard shortcuts do bindings.dosaved in the file can be reloaded by selecting the "Import" button in the "Keyboard Shortcuts" dialog box or typing on the command line .

Create keyboard shortcuts

You can create your own global shortcuts or shortcuts that only apply to specific windows.

program

  1. If you want to create a window-specific shortcut, you must open the window at some time during the simulation run.

  2. Open the "**Add Keyboard Shortcut"** dialog box by choosing " Window"> "Keyboard Shortcuts ".

  3. Click the Add button to open the Add Keyboard Shortcut dialog box.

    Figure 3. Add keyboard shortcut dialog

    img

  4. Select the shortcut type, global or window. If you want to create a window-specific shortcut, click the window button to open the " Select Window Type" dialog box. This dialog box shows every window opened during the current simulation. If you do not find the desired window, please close the two dialog boxes and open the desired window by entering the view on the command line or selecting the window from the View menu. Selecting "Global" or a specific window will change the available options in the "**Shortcut Key Operation"** field and the dynamic fill field on the right.

  5. Enter the key combination in the shortcut key field . Or select the "**Change Input Mode"** button to enter the key combination.

  6. Select the type of operation the shortcut will perform.

    • Pop-up menu or drop-down menu—Opens the "**Menu Items"** dialog box, which contains a hierarchical list of all pop-up menus and drop-down menu items available globally or in the window specified in step 4.
    • Toolbar Button-Opens the "Toolbar Button" dialog box, which lists a hierarchical list of all toolbar button operations available globally or in the window specified in step 4.
    • Regular Tcl script—Selecting this option will open the Tcl script field on the right. You can enter any Tcl script or command line sequence.
    • Internal window commands-This option only applies to window-specific commands. Please refer to step 4. Open the "Window Actions" dialog box on the right, which contains a list of all window-specific commands.

Mouse and keyboard shortcuts for the main window and the source window

The following mouse operations and special keys can be used mainto edit commands in the input area of ​​the window.

They can also be used to edit files displayed in the window and all "**Notepad"** windows (enter the notepad command in ModelSim to open the "Notepad" editor).

Table 1. Mouse shortcuts

Mouse-UNIX and Windows result
Click the left mouse button Reposition the cursor
Click and drag the left mouse button Choose a region
Hold down the Shift key and click the left mouse button Extended selection
Double click the left mouse button Choose a word
Double click and drag the left mouse button Choose a set of words
Hold down the Ctrl key and click the left mouse button Move the insertion cursor without changing the selection
Click the left mouse button on the previous ModelSim or VSIM prompt Copy and paste the previous command string into the current prompt
Click the middle mouse button Paste selection to clipboard
Click and drag the middle mouse button Scroll window

Table 2. Keyboard shortcuts

KEY-UNIX Japanese Windows result
Left arrow, right arrow Move the cursor one character to the left or right
Ctrl + left arrow, Ctrl + right arrow Move the cursor one word to the left or right
Shift + any arrow Extended text selection
Ctrl + Shift +Left Arrow, Ctrl + Shift +Right Arrow Extend text selection with one word
Up arrow, down arrow Transcript window: scroll through the command history source window: move the cursor up or down one line
Ctrl + up arrow, Ctrl + down arrow Transcript window: move the cursor to the first or last line Source code window: move the cursor up or down one paragraph
Alt + / Open a pop-up command prompt for entering commands.
Ctrl + Home Move the cursor to the beginning of the text
Ctrl + end Move the cursor to the end of the text
Backspace Ctrl + h (UNIX only) Delete the characters on the left
Delete Ctrl + d (UNIX only) Delete the characters on the right
Esc (Windows only) cancel
Alt key Activate or deactivate the menu bar mode
Alt-F4 Close active window
Home、Ctrl + a Move the cursor to the beginning of the line
Ctrl + Shift + a Select all contents of the active window
Ctrl + b Move cursor to the left
Ctrl + d Delete the characters on the right
End、Ctrl + e Move the cursor to the end of the line
Ctrl + f (UNIX), right arrow (Windows) Move the cursor one character to the right
Ctrl + k Delete to the end of the line
Ctrl + n Move the cursor down one line (only the "source" window under Windows)
Ctrl + o (UNIX only) Insert a newline character at the cursor
Ctrl + p Move the cursor up one line (only in the "source" window under Windows)
Ctrl + s(UNIX)、Ctrl + f键(Windows) Find
Ctrl + T Reverse the order of the two characters on both sides of the cursor
Ctrl + u Delete row
Page down, Ctrl + v (UNIX only) Move cursor down one screen
Ctrl + x Cut selection
Ctrl + s、Ctrl + x(仅UNIX) save
Ctrl + v Paste selection
Ctrl + a(仅Windows) 选择小部件的全部内容
Ctrl + \ 清除小部件中的所有选择
Ctrl ±(UNIX)、Ctrl + /(UNIX)、Ctrl + z(Windows) 撤消“源代码”窗口中的先前编辑
元+ <(仅UNIX) 将光标移到文件的开头
元+>(仅UNIX) 将光标移到文件末尾
向上翻页、Meta + v(仅UNIX) 将光标向上移动一屏
Ctrl + c 复制选择
F3 在“源”窗口中执行“查找下一个”操作。
F4、Shift + F4 将焦点切换到主窗口中的下一个窗格将焦点切换到主窗口中的上一个窗格
F5、Shift + F5 在扩展和还原窗格的大小之间切换以适合整个主窗口切换开/关窗格标题。
F8 搜索与键入的字符匹配的最新命令(仅主窗口)
F9 运行模拟
F10 继续模拟
F11(仅Windows) 一小步
F12(仅Windows) 跨步

主窗口仅允许在提示后插入或粘贴;因此,将字符串复制到命令行时无需设置光标。

GUI Windows中的键盘快捷列表

您可以通过输入Ctrl-Shift-?来打开大多数窗口的键盘快捷键的动态列表(预先定义和用户定义)。

图1.原理图窗口键盘快捷键

img

您可以创建用户定义的键盘快捷方式并更改预定的快捷方式。有关更多信息,请参考用户定义的键盘快捷键

列表窗口键盘快捷键

当鼠标光标位于“列表”窗口中时,使用以下键将导致指示的操作:

表3.列表窗口键盘快捷键

KEY-UNIX和Windows 行动
左箭头 向左滚动列表(选择并突出显示当前所选项目左侧的项目)
右箭头 向右滚动列表(选择并突出显示当前所选项目右侧的项目)
向上箭头 向上滚动列表
向下箭头 向下滚动列表
向上翻页、Ctrl +向上箭头 逐页向上滚动列表
向下翻页、Ctrl +向下箭头 按页面向下滚动列表
标签 向前(向下)搜索所选信号的下一个过渡
Shift + Tab 向后(向上)搜索所选信号的上一个过渡
Shift +向左键、Shift +右箭头 向左/向右扩展选择
Ctrl + f键(Windows)、Ctrl + s(UNIX) 打开“查找”对话框以在列表显示中查找指定的项目标签

Wave窗口鼠标和键盘快捷键

在Wave窗口中可以使用以下鼠标操作和击键。

表4. Wave窗口鼠标快捷键

鼠标动作1 结果
Ctrl +单击鼠标左键并拖动img 放大区域(zoom in)
Ctrl +单击鼠标左键并拖动img 缩小(zoom out)
Ctrl +单击鼠标左键并拖动img 缩放适合
单击鼠标左键并拖动 移动最近的光标
Ctrl +在滚动条箭头上单击鼠标左键 将窗口滚动到顶部或底部(垂直滚动)或向左或向右(水平滚动)
单击滚动条中的鼠标中键(仅适用于UNIX) 将窗口滚动到点击位置
Shift +鼠标中键滚动 滚动窗口

Note: 如果选择“波形”>“鼠标模式”>“缩放模式”,则无需按Ctrl键。

按键 行动
s 使当前活动的光标可见并居中
i、Shift +i、+ 放大(鼠标指针必须在光标或波形窗格上方)
o、Shift + o、- 缩小(鼠标指针必须在光标或波形窗格上方)
f、Shift + f 全屏放大(鼠标指针必须在光标或波形窗格上方)
L、Shift + L 最后放大(鼠标指针必须在光标或波形窗格上方)
r、Shift + r 变焦范围(鼠标指针必须在光标或波形窗格上方)
m 将所有打开的Wave窗口缩放到活动窗口的缩放范围。
向上箭头、向下箭头 当鼠标指针移至“波形”窗格上方时,将整个窗口向上或向下滚动一行当鼠标指针位于路径名或值窗格上方时,向上或向下滚动突出显示一行
左箭头 向左滚动路径名,值或波形窗格
右箭头 向右滚动路径名,值或波形窗格
向上翻页 将波形窗格向上滚动一页
向下翻页 将波形窗格向下滚动一页
标签 向前搜索(向右)到所选信号的下一个过渡-找到下一个边沿
Shift + Tab 向后(向左)搜索选定信号上的上一个过渡-查找上一个边
Ctrl + G A group is automatically created for the selected signals in the area named Group. If you use this shortcut for signals that already have a "Group", place them in the group in this area instead of creating a new group.
Ctrl + F(Windows)、Ctrl + S(UNIX) Open the Find dialog box; search for a text string in the specified field in the path name pane
Ctrl + left arrow, Ctrl + right arrow Scroll the path name, value or wave of the page left and right

Write at the back

Of course, you don't need to write down so many operations with your head at once. When you use it, you will think of how to use it, and you will get used to it a few more times.

2021-03-20.

Guess you like

Origin blog.csdn.net/sinat_31206523/article/details/115024758