Differenze

Queste sono le differenze tra la revisione selezionata e la versione attuale della pagina.

Link a questa pagina di confronto

Entrambe le parti precedenti la revisione Revisione precedente
Prossima revisione
Revisione precedente
vlsi:resources:systemverilog [14/07/2015 10:21]
pacher
vlsi:resources:systemverilog [14/07/2015 10:25] (versione attuale)
pacher
Linea 15: Linea 15:
  
  
-**Syntax highlighting for the Gedit text editor**+ 
 +\\ 
 +====== ​Syntax highlighting for the Gedit text editor ​====== 
  
 **1.** make a copy of the Verilog language style  **1.** make a copy of the Verilog language style 
Linea 21: Linea 24:
 ''/​usr/​share/​gtksourceview-2.0/​language-specs/​verilog.lang''​ ''/​usr/​share/​gtksourceview-2.0/​language-specs/​verilog.lang''​
  
 +
 +**2.** modify the language id as
 +
 +<​code>​
 +<​language id="​systemverilog"​ _name="​SystemVerilog"​ version="​2.0"​ _section="​Sources">​
 +</​code>​
 +
 +and
 +
 +<​code>​
 +   <​context id="​systemverilog"> ​     <!-- modified from verilog to systemverilog -->
 +      <​include>​
 +        <context ref="​line-comment"/>​
 +        <context ref="​block-comment"/>​
 +        <context ref="​close-comment-outside-comment"/>​
 +        <context ref="​compiler-directive"/>​
 +        <context ref="​keywords"/>​
 +        <context ref="​gates"/>​
 +        <context ref="​types"/>​
 +        <context ref="​binary-number"/>​
 +        <context ref="​octal-number"/>​
 +        <context ref="​decimal-number"/>​
 +        <context ref="​hexadecimal-number"/>​
 +      </​include>​
 +    </​context>​
 +
 +</​code>​
 +
 +
 +
 +**3.** change the default file extension
 +
 +<​code>​
 +<​property name="​globs">​*.sv</​property> ​
 +</​code>​
  
  
-**2.** add new SystemVerilog reserved words with the XML syntax+**4.** add new SystemVerilog reserved words by following ​the <​nowiki>​XML</​nowiki> ​syntax
  
 <​code>​ <​code>​