Line 1... |
Line 1... |
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
*
|
*
|
* SystemC to Verilog Translator v0.1
|
* SystemC to Verilog Translator v0.2
|
* Provided by OpenSoc Design
|
* Provided by OpenSoc Design
|
*
|
*
|
* www.opensocdesign.com
|
* www.opensocdesign.com
|
*
|
*
|
* -----------------------------------------------------------------------------
|
* -----------------------------------------------------------------------------
|
Line 58... |
Line 58... |
sc_bigint if(!includefound & !linecomment & !multilinecomment) return SC_INT;
|
sc_bigint if(!includefound & !linecomment & !multilinecomment) return SC_INT;
|
sc_biguint if(!includefound & !linecomment & !multilinecomment) return SC_UINT;
|
sc_biguint if(!includefound & !linecomment & !multilinecomment) return SC_UINT;
|
\( if(!includefound & !linecomment & !multilinecomment) return OPENPAR;
|
\( if(!includefound & !linecomment & !multilinecomment) return OPENPAR;
|
\) if(!includefound & !linecomment & !multilinecomment) return CLOSEPAR;
|
\) if(!includefound & !linecomment & !multilinecomment) return CLOSEPAR;
|
; if(!includefound & !linecomment & !multilinecomment) return SEMICOLON;
|
; if(!includefound & !linecomment & !multilinecomment) return SEMICOLON;
|
|
"enum" if(!includefound & !linecomment & !multilinecomment) return ENUM;
|
"," if(!includefound & !linecomment & !multilinecomment) return COLON;
|
"," if(!includefound & !linecomment & !multilinecomment) return COLON;
|
"{" if(!includefound & !linecomment & !multilinecomment) return OPENKEY;
|
"{" if(!includefound & !linecomment & !multilinecomment) return OPENKEY;
|
"}" if(!includefound & !linecomment & !multilinecomment) return CLOSEKEY;
|
"}" if(!includefound & !linecomment & !multilinecomment) return CLOSEKEY;
|
"->" if(!includefound & !linecomment & !multilinecomment) return ARROW;
|
"->" if(!includefound & !linecomment & !multilinecomment) return ARROW;
|
"=" if(!includefound & !linecomment & !multilinecomment) return EQUALS;
|
"=" if(!includefound & !linecomment & !multilinecomment) return EQUALS;
|
Line 85... |
Line 86... |
"#"
|
"#"
|
"@"
|
"@"
|
"|"
|
"|"
|
"~"
|
"~"
|
|
|
|
"//"[ ]*[tT][rR][aA][nN][sS][lL][aA][tT][eE][ ]*[oO][fF][fF] return TRANSLATEOFF; /*Translate directive*/
|
|
"//"[ ]*[tT][rR][aA][nN][sS][lL][aA][tT][eE][ ]*[oO][nN] return TRANSLATEON; /*Translate directive*/
|
%%
|
%%
|