Difference between revisions of "How to setup an external text editor in Xilinx ISE & EDK"

From steamWiki
Jump to: navigation, search
(Created page with 'The built in text editor in the Xilinx FPGA tools ISE & EDK is sub-par. I have chosen to use an external editor (in my case Notepad++). ISE & EDK behave differently with regard…')
 
Line 3: Line 3:
 
=== ISE ===
 
=== ISE ===
 
#Open ISE 12.4
 
#Open ISE 12.4
#Select ''Edit'' --> ''Preferences...'' from the Menu
+
#Select <span style="color:#55E439">''Edit''</span> --> <span style="color:#55E439">''Preferences...''</span> from the Menu
#Navigate to ''ISE General'' --> ''Editors''
+
#Navigate to <span style="color:#55E439">''ISE General''</span> --> <span style="color:#55E439">''Editors''</span>
#Select ''Custom'' from the ''Editor:'' drop box
+
#Select <span style="color:#55E439">''Custom''</span> from the <span style="color:#55E439">''Editor:''</span> drop box
#Type in something like ''C:\\Program\ Files\ (x86)\\Notepad++\\notepad++.exe -n$2 $1''
+
#Type in something like <span style="color:#55E439">''C:\\Program\ Files\ (x86)\\Notepad++\\notepad++.exe -n$2 $1''</span>
#*Note the escape characters:  ''\'' must be places before all backslashes & spaces
+
#*Note the escape characters:  <span style="color:#55E439">''\''</span> must be places before all backslashes & spaces
#*Note the ''-n'' command-line switch that tells notepad++.exe which line to set the cursor to
+
#*Note the <span style="color:#55E439">''-n''</span> command-line switch that tells ''notepad++.exe''</span> which line to set the cursor to
#*Note ''$2'' which is line number we want to look at
+
#*Note <span style="color:#55E439">''$2''</span> which is line number we want to look at
#*Note ''$1'' which is the file we want to open
+
#*Note <span style="color:#55E439">''$1''</span> which is the file we want to open
#I suggest you set the ''Constraints entry'' radio button to ''Text Editor''
+
#I suggest you set the <span style="color:#55E439">''Constraints entry''</span> radio button to <span style="color:#55E439">''Text Editor''</span>
  
 
=== EDK ===
 
=== EDK ===
 
==== Add Notepad++ to the PATH ====
 
==== Add Notepad++ to the PATH ====
#Right click on ''My Computer'' & select ''Properties''
+
#Right click on <span style="color:#55E439">''My Computer''</span> & select <span style="color:#55E439">''Properties''</span>
#Click ''Advanced system settings'' on the left
+
#Click <span style="color:#55E439">''Advanced system settings''</span> on the left
#Click the ''Environment Variables...'' button in the lower right
+
#Click the <span style="color:#55E439">''Environment Variables...''</span> button in the lower right
#Highlight the ''Path'' variable in the lower ''System variables'' box
+
#Highlight the <span style="color:#55E439">''Path''</span> variable in the lower <span style="color:#55E439">''System variables''</span> box
#Click the ''Edit...'' button
+
#Click the <span style="color:#55E439">''Edit...''</span> button
#Append something like '';C:\Program Files (x86)\Notepad++;'' to the end of the text in the ''Variable value:'' box
+
#Append something like <span style="color:#55E439">'';C:\Program Files (x86)\Notepad++;''</span> to the end of the text in the <span style="color:#55E439">''Variable value:''</span> box
#Click ''OK'' 3 times & close the ''My Computer: Properties'' window
+
#Click <span style="color:#55E439">''OK''</span> 3 times & close the <span style="color:#55E439">''My Computer: Properties''</span> window
  
 
==== Configure EDK ====
 
==== Configure EDK ====
 
#Open EDK 12.4
 
#Open EDK 12.4
#Select ''Edit'' --> ''Preferences...'' from the Menu
+
#Select <span style="color:#55E439">''Edit''</span> --> <span style="color:#55E439">''Preferences...''</span> from the Menu
#Navigate to ''Editor''
+
#Navigate to <span style="color:#55E439">''Editor''</span>
#Select ''Custom'' from the ''Editor:'' drop box
+
#Select <span style="color:#55E439">''Custom''</span> from the <span style="color:#55E439">''Editor:''</span> drop box
#Type in something like ''notepad++.exe -n%line% %file%
+
#Type in something like <span style="color:#55E439">''notepad++.exe -n%line% %file%''</span>
#*Note that we don't use the full path to ''notepad++.exe''.  For some reason EDK can't handle the full path and this is why we had to add notepad++.exe's folder to the ''PATH''
+
#*Note that we don't use the full path to <span style="color:#55E439">''notepad++.exe''</span>.  For some reason EDK can't handle the full path and this is why we had to add the Notepad++ folder to the <span style="color:#55E439">''PATH''</span>
#*Note the ''-n'' command-line switch that tells notepad++.exe which line to set the cursor to
+
#*Note the <span style="color:#55E439">''-n''</span> command-line switch that tells ''notepad++.exe'' which line to set the cursor to
#*Note ''%line%'' which is line number we want to look at
+
#*Note <span style="color:#55E439">''%line%''</span> which is line number we want to look at
#*Note ''%file%'' which is the file we want to open
+
#*Note <span style="color:#55E439">''%file%''</span> which is the file we want to open
#I suggest you check the ''Automatically sync with external edits'' box at the top
+
#I suggest you check the <span style="color:#55E439">''Automatically sync with external edits''</span> box at the top
 +
 
 +
[[Category:ISE]]
 +
[[Category:EDK]]

Revision as of 13:16, 18 July 2011

The built in text editor in the Xilinx FPGA tools ISE & EDK is sub-par. I have chosen to use an external editor (in my case Notepad++). ISE & EDK behave differently with regards to their Text Editor Preference Pages & the use is a bit counter intuitive. This article will describe how to setup an Notepad++ as a custom, external, text editor in Xilinx ISE & EDK 12.4 running under Windows 7 64-bit. The process should be very similar for other versions of the Xilinx tools, other text editors, and/or other versions of Windows.

ISE

  1. Open ISE 12.4
  2. Select Edit --> Preferences... from the Menu
  3. Navigate to ISE General --> Editors
  4. Select Custom from the Editor: drop box
  5. Type in something like C:\\Program\ Files\ (x86)\\Notepad++\\notepad++.exe -n$2 $1
    • Note the escape characters: \ must be places before all backslashes & spaces
    • Note the -n command-line switch that tells notepad++.exe</span> which line to set the cursor to
    • Note $2 which is line number we want to look at
    • Note $1 which is the file we want to open
  6. I suggest you set the Constraints entry radio button to Text Editor

EDK

Add Notepad++ to the PATH

  1. Right click on My Computer & select Properties
  2. Click Advanced system settings on the left
  3. Click the Environment Variables... button in the lower right
  4. Highlight the Path variable in the lower System variables box
  5. Click the Edit... button
  6. Append something like ;C:\Program Files (x86)\Notepad++; to the end of the text in the Variable value: box
  7. Click OK 3 times & close the My Computer: Properties window

Configure EDK

  1. Open EDK 12.4
  2. Select Edit --> Preferences... from the Menu
  3. Navigate to Editor
  4. Select Custom from the Editor: drop box
  5. Type in something like notepad++.exe -n%line% %file%
    • Note that we don't use the full path to notepad++.exe. For some reason EDK can't handle the full path and this is why we had to add the Notepad++ folder to the PATH
    • Note the -n command-line switch that tells notepad++.exe which line to set the cursor to
    • Note %line% which is line number we want to look at
    • Note %file% which is the file we want to open
  6. I suggest you check the Automatically sync with external edits box at the top