Sophie

Sophie

distrib > Fedora > 14 > x86_64 > media > updates > by-pkgid > ffa1e6f5ad04360808fe8840fe3ba036 > files > 408

vrq-devel-1.0.88-1.fc14.i686.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>vrq: Quick Start</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
  <table border="0" cellspacing="0" cellpadding="0" width="100%">
   <tr>
    <td width="180"><a href="index.html"><img src="vrq.png" width="150" height="100" border="0" alt="vrq"></a></td>
    <td background="top_bg.png" align="right" width="100%">
      <img src="glyth.png" width="500" height="100" border="0" alt="">
    </td>
   </tr>
   <tr>
    <td background="#FFFFFF" align="right" width="50" height="4"></td>
   </tr>
  </table>
</head><body>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li class="current"><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<h1>Quick Start </h1>  </div>
</div>
<div class="contents">
<h2><a class="anchor" id="switches"></a>
Switches</h2>
<p>The parser has a number of switches that control the parsing of files. Below is detail on a subset of the switches. For a complete list see the <a class="el" href="manpage.html">Man Page</a> .</p>
<ul>
<li>-y &lt;directory&gt; This switch may be used to specify a verilog library search path for tools that require modules to be resolved.</li>
<li>-v &lt;lib_filename&gt; This switch may be used to specify a verilog library file for tools that require modules to be resolved.</li>
<li>+libext+&lt;extension&gt; This switch may be used to specify the library file suffix (used with the -y switch). Multiple extensions may be specified by appending more extensions: +libext+&lt;ext1&gt;+&lt;ext2&gt;+...</li>
<li>-infervectors This switch will allow the parser to infer register definitions and vector wire definitions.</li>
<li>-macrocheck This switch will cause the use of undefined macros to be flagged as errors.</li>
<li>-keeptickdefines This switch makes a best effort attempt to keep tick defines and `include statements in the code (EXPERIMENTAL). `include statements are keep if the include file is composed solely of pragmas, comments and `define statements. `variables are evaluated if their definition is in the same preprocessor zone as their instantiation. Command line switches are in zone by themselves. Each compilation unit (e.g. verilog inpug file) starts a new zone. Included files are part of the zone of the including file. -passthru regions start a new zone. `ifdef and `ifndef regions start a new zone if they are dependent upon undefined preprocessor variables or are dependent upon preprocessor variable defined in another zone. One of the side effects of enabling this switch is that `define and `include statements can only occur on statement boundries in the source code, otherwise a parsing error will result.</li>
<li>+incdir+&lt;directory&gt; This switch will cause 'directory' to be searched to resolve `include preprocessor directives. Multiple paths may be specified by either using +incdir+ switches or by specifing multiple i directories: +incdir+&lt;dir1&gt;+&lt;dir2&gt;+....</li>
<li>-allowmissingincludes This switch will ignore `include preprocessor directives that cannot be resolved.</li>
<li>+define+&lt;name&gt;=&lt;val&gt; This switch specifies `define variables on the command line.</li>
<li>+&lt;name&gt;+&lt;val&gt; This switch is used to specify plusargs for tools that use them.</li>
<li>-pragma &lt;regexp&gt; This switch is used to identify classes of comments as pragmas. Vrq will ensure that pragmas are not move relative to the code they are embedded in. Note a side effect of using pragmas is that vrq only allows pragmas in very specific locations in the code. Vrq uses regcomp to process the match. Please see the 'regcomp' man page for the format of 'regexp'. Multiple -pragma switch may appear on the command line. If no -pragma switch is specified, vrq will make all i // synopsys ..... and comments as pragmas.</li>
<li>-passthru &lt;name&gt; This switch can be used to create a label to identify regions of the source code that vrq should ignore and pass though verbatim. These regions of code will be treated as comments and `define substitution will be performed. To use the label use `ifdef/`endif and `ifndef/`endif pairs to flags the regions as shown below: <div class="fragment"><pre class="fragment"> `ifdef label
      put code here that you want to pass through
 `endif

 or

 `ifndef
      put code here that you want to pass through
 `endif
</pre></div></li>
</ul>
<h2><a class="anchor" id="tool_pipelines"></a>
Tool Pipelines</h2>
<p>Vrq parses each file creating an Abstract Syntax Tree (AST) for each file. This vector of AST's is passed on through a filter pipeline. Each filter in the pipeline is specified using the -tool &lt;toolname&gt; switch. A filter always takes a vector of AST's as input and optionally outputs a vector of AST's. If a pipeline is specified where the final filter produces AST's, vrq will automatically append the 'dump' tool to the end of the pipeline.</p>
<p>For instance if the following switches are used; -tool filter1 -tool filter2 is specified, vrq will create the following pipeline: Parser -&gt; filter1 -&gt; filter2 -&gt; dump</p>
<p>Some tools are compiled in, others come with the vrq distribution and are compiled as DLLs placed in the plugin dir specified at vrq install time. The search path for plugins may be augmented by using the PLUGIN_DIR environment variable. ie PLUGIN_DIR=path1:path2:path3. Third parties can create their own filters using the vrq API. If these plugins are placed in the plugin search path, vrq will automatically recognize them.</p>
<p>Each AST is tagged by the parser with the input file name it was derived from. Tools may modify these names and trees. Tools may also expand or contract the number of AST in the vector. </p>
</div>
<hr class="footer"/><address class="footer"><small>Generated by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>