OpenCores
URL https://opencores.org/ocsvn/sc2v/sc2v/trunk

Subversion Repositories sc2v

[/] [sc2v/] [trunk/] [src/] [sc2v_step1.y] - Diff between revs 36 and 39

Show entire file | Details | Blame | View Log

Rev 36 Rev 39
Line 218... Line 218...
  |
  |
  definemacro
  definemacro
  |
  |
  defineword
  defineword
  |
  |
 
  definewordsimple
 
  |
  definenumber
  definenumber
  |
  |
  translateoff
  translateoff
  |
  |
  translateon
  translateon
Line 357... Line 359...
  if (verilog == 1)
  if (verilog == 1)
    fprintf (file, ".read()");
    fprintf (file, ".read()");
 
 
}
}
 
 
 
definewordsimple:
 
DEFINE WORD
 
{
 
 
 
  defineparenthesis = 0;
 
  if (translate == 1 && verilog == 0)
 
    {
 
      if (processfound)
 
        {
 
          fprintf (file, "`define %s\n", (char *) $2);
 
        }
 
      else
 
        {
 
          fprintf (FILE_DEFINES, "`define %s\n", (char *) $2);
 
        }
 
    }
 
  else if (verilog == 1)
 
    fprintf (file, "#define %s\n", (char *) $2);
 
 
 
};
 
 
defineword:
defineword:
DEFINE WORD WORD
DEFINE WORD WORD
{
{
 
 
  defineparenthesis = 0;
  defineparenthesis = 0;

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.