Use of ISE third-party editors

Reprinted from https://www.cnblogs.com/sprone/p/5788826.html

1. Use UE.

This paragraph is forwarded and written in great detail. Because when doing a large project, it is obviously inconvenient to use the editor that comes with ISE.

1. Specify UE as the default editor in ISE. edit---preferences to open the property configuration, click Editors on the left, select ultraedit on the right editor and click OK, but sometimes double-clicking the vhdl file in the project after this selection does not start UE, if such a situation occurs, you can When selecting editor, select custom and then enter {F:\Program Files\IDM COMPUTER SOLUTIONS\ULTRAEDIT-32\Uedit32.exe} $1 -l$2 in the following command line syntax. The curly brackets are the path to ue (because ISE requires a directory There can be no spaces, so it needs to be enclosed in brackets), which needs to be modified according to the installation location of ue, and then click OK. In this way, you can directly call UE to edit the source file in ISE.

     2. Look under the ue installation directory to see if there is a VHDL keyword highlighting configuration in workfile.txt. If not, you can search it from the Internet and add it to the wordfile, so that VHDL syntax highlighting can be achieved.

     3. Implement code folding and indentation. Under normal circumstances, the vhdl part in the wordfile file downloaded from the Internet only has keyword highlighting. Code folding and indentation can be achieved by the following methods:

      Implement code folding:

/Open Fold Strings = "(""begin""if""loop""case""block""fold"
/Close Fold Strings = ")""end process""end if""end loop""end case""end block""unfold"

   Implement indentation:

/Indent Strings = "generate""entity" "architecture" "component" "begin" "if" "case" "elsif" "else"
/Unindent Strings = "end generate""end component" "END arc" "else" "elsif" "end case" "end if""end process"

Just add the above code to the vhdl section, and you can modify it according to your needs.

   4. Implement modelsim to compile VHDL files. UE reserves many APIs for users to link the compiler into UE. Because the usual project is to write the code and simulate it with modelsim first, I choose to use the vcom program of modelsim to compile the vhdl file. I think this is a very good feature of UE.

First, modelsim needs to be installed on the computer, and the path value of the environment variable contains both the paths of modelsim and ue.

Open and click "Advanced"---"Toolbar Configuration" in the menu bar, enter a name for the added tool in "Menu item name" in the "Command" tab, such as "VHDL compile", enter vcom in the command line Enter %p in the %f working directory. In the "Options" select DOS program and save the active file, in the "Output" tab select "Output to list box". Click "OK" to close the settings. At this time, click "Advanced" in the menu bar and you will find the "VHDL compilation" option you set. After the option is the shortcut key (shift+ctrl+0), so that after writing the vhdl file, you can directly use the shortcut key in ue. Compile the vhdl file to find syntax errors.

Note: Before using ue to compile vhdl, you need to create a work directory in the folder where the source files are located. You can use the Windows DOS window to change the path to the working directory and then use the vlib work command to create.

If you use verliog, you can set it up according to the above steps, just change the command line input to vlog %f .

All set, let's get started. Use ISE to create a new project, add a source file, double-click the source file to write code using ue, open modelsim to simulate the project, find problems in the simulation, modify the code in UE and use shortcut keys to compile, and then restart in modelsim to re-simulate until Complete function Oh, much faster than just using ISE.

2. Use VIM (VI IMPROVEMENT)

Also select custom, and then enter the following command line in command line syntax:

{D:\Program Files\Vim\vim73\gvim.exe} --remote-tab-silent +$2 $1. Inside the brackets is the path where vim is installed.

Introduction to common commands of VIM

1. In the VIM installation directory, there is a vimrc file. After opening it, add the words "colorscheme darkblue", and the color scheme will be changed to darkblue by default. Adding the following two sentences at the back can solve the situation that sometimes garbled characters appear.

let &termencoding=&encoding
set fileencodings=utf-8,gbk,ucs-bom,cp936
2.VIM is in normal mode by default, press i directly to go to input mode, and then press ESC to return to normal mode.

3. Start with "/", then you can directly input the string you want to find, and then press n to search down in turn, start with "?" and then enter the string to start the search, but press n to start from the back Find before.

4. In addition to delete, press x to delete the letter where the cursor is located, and capital X to delete the letter in front of the cursor. u is the undo operation, ctrl+r is to undo the previous undo operation, it's a bit messy, try it yourself. 

5. The capital ZZ is to save and launch, :q! Abandon modification and launch.

6. Enter gg=G in the command line mode, the entire code will be typeset; press "=" twice in a row to indent the line where the cursor is located, and press n== to indent the n lines under the cursor, according to The position of the previous line should be; shift+greater than sign and less than sign are indented left and right; press V to enter the visual mode first, then highlight a line, press Enter to highlight and press the line down to select, and then the entire paragraph can be indented .

7.y$ is copied from the cursor to the end of the line.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325648863&siteId=291194637