All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 ===============================================================================
2 ALE VHDL Integration *ale-vhdl-options*
5 ===============================================================================
6 ALE can use four different linters for VHDL:
12 Using `vcom -2008 -quiet -lint`
18 Using `hdl_checker --lsp`
20 ===============================================================================
23 ghdl, ModelSim/Questa and Vivado linters default to VHDL-2008 support. This,
24 and other options, can be changed with each linter's respective option
27 Linters/compilers that utilize a "work" directory for analyzing designs- such
28 as ModelSim and Vivado- can be passed the location of these directories as
29 part of their respective option strings listed below. This is useful for
30 holistic analysis of a file (e.g. a design with components, packages, or other
31 code defined external to the current file as part of a larger project) or
32 when wanting to simply pass an alternative location for the auto-generated
33 work directories (such as '/tmp') so as to not muddle the current directory.
34 Since these type of linters often use this work directory for holding compiled
35 design data as part of a single build process, they sometimes cannot handle
36 the frequent, asynchronous application launches when linting while text is
37 changing. This can happen in the form of hangs or crashes. To help prevent
38 this when using these linters, it may help to run linting less frequently; for
39 example, only when a file is saved.
41 HDL Checker is an alternative for some of the issues described above. It wraps
42 around ghdl, Vivado and ModelSim/Questa and, when using the latter, it can
43 handle mixed language (VHDL, Verilog, SystemVerilog) designs.
45 ===============================================================================
48 *ale-options.vhdl_ghdl_executable*
49 *g:ale_vhdl_ghdl_executable*
50 *b:ale_vhdl_ghdl_executable*
52 g:ale_vhdl_ghdl_executable
56 This variable can be changed to the path to the 'ghdl' executable.
58 *ale-options.vhdl_ghdl_options*
59 *g:ale_vhdl_ghdl_options*
60 *b:ale_vhdl_ghdl_options*
62 g:ale_vhdl_ghdl_options
66 This variable can be changed to modify the flags/options passed to 'ghdl'.
69 ===============================================================================
70 hdl-checker *ale-vhdl-hdl-checker*
72 HDL Checker is a wrapper for VHDL/Verilg/SystemVerilog tools that aims to
73 reduce the boilerplate code needed to set things up. It can automatically
74 infer libraries for VHDL sources, determine the compilation order and provide
77 You can install it using pip:
79 $ pip install hdl-checker
81 `hdl-checker` will be run from a detected project root, determined by the
82 following methods, in order:
84 1. Find the first directory containing a configuration file (see
85 |g:ale_hdl_checker_config_file|)
86 2. If no configuration file can be found, find the first directory containing
87 a folder named `'.git'
88 3. If no such folder is found, use the directory of the current buffer
90 *ale-options.hdl_checker_executable*
91 *g:ale_hdl_checker_executable*
92 *b:ale_hdl_checker_executable*
93 hdl_checker_executable
94 g:ale_hdl_checker_executable
96 Default: `'hdl_checker'`
98 This variable can be changed to the path to the 'hdl_checker' executable.
100 *ale-options.hdl_checker_options*
101 *g:ale_hdl_checker_options*
102 *b:ale_hdl_checker_options*
104 g:ale_hdl_checker_options
108 This variable can be changed to modify the flags/options passed to the
109 'hdl_checker' server startup command.
111 *ale-options.hdl_checker_config_file*
112 *g:ale_hdl_checker_config_file*
113 *b:ale_hdl_checker_config_file*
114 hdl_checker_config_file
115 g:ale_hdl_checker_config_file
117 Default: `'.hdl_checker.config'` (Unix),
118 `'_hdl_checker.config'` (Windows)
120 This variable can be changed to modify the config file HDL Checker will try
121 to look for. It will also affect how the project's root directory is
122 determined (see |ale-vhdl-hdl-checker|).
124 More info on the configuration file format can be found at:
125 https://github.com/suoto/hdl_checker/wiki/Setting-up-a-project
128 ===============================================================================
131 *ale-options.vhdl_vcom_executable*
132 *g:ale_vhdl_vcom_executable*
133 *b:ale_vhdl_vcom_executable*
135 g:ale_vhdl_vcom_executable
139 This variable can be changed to the path to the 'vcom' executable.
141 *ale-options.vhdl_vcom_options*
142 *g:ale_vhdl_vcom_options*
143 *b:ale_vhdl_vcom_options*
145 g:ale_vhdl_vcom_options
147 Default: `'-2008 -quiet -lint'`
149 This variable can be changed to modify the flags/options passed to 'vcom'.
152 ===============================================================================
153 xvhdl *ale-vhdl-xvhdl*
155 *ale-options.vhdl_xvhdl_executable*
156 *g:ale_vhdl_xvhdl_executable*
157 *b:ale_vhdl_xvhdl_executable*
158 vhdl_xvhdl_executable
159 g:ale_vhdl_xvhdl_executable
163 This variable can be changed to the path to the 'xvhdl' executable.
165 *ale-options.vhdl_xvhdl_options*
166 *g:ale_vhdl_xvhdl_options*
167 *b:ale_vhdl_xvhdl_options*
169 g:ale_vhdl_xvhdl_options
173 This variable can be changed to modify the flags/options passed to 'xvhdl'.
176 ===============================================================================
177 vim:tw=78:ts=2:sts=2:sw=2:ft=help:norl: