LOGIN   :::   RECOVER PASS   :::   GET ACCOUNT    
Browse
  • Projects
  • Code (CVS)
  • Forums
  • News
  • Articles
  • Polls
  •  
    OpenCores
  • FAQ
  • CVS HowTo
  • Mission
  • Media
  • Tools
  • Sponsors
  • Mirrors
  • Logos
  • Contact us
  •  
    Tools
  • Search
      
  • Download Cores (CVSGet)
  •  
    More
  • Wishbone
  • Perlilog
  • EDA tools
  • OpenTech CD
  •  
    Navigation: All forums > Cvs-checkins > Message List > Message Post

    Message

    Reply | Reply all
    Date Prev | Date Next | Thread Prev | Thread Next Date Index | Thread Index

    From: OpenCores CVS Agent<cvs@o...>
    Date: Mon Jan 17 12:04:47 CET 2005
    Subject: [cvs-checkins] MODIFIED: sc2v ...
    Top
    Date: 00/05/01 17:12:04

    Modified: sc2v/src sc2v_step1.l sc2v_step1.y
    Log:
    Version 0.2.1. elseif bug corrected. Added true and false translation




    Revision Changes Path
    1.3 +2 -0 sc2v/src/sc2v_step1.l

    http://www.opencores.org/cvsweb.shtml/sc2v/src/sc2v_step1.l.diff?r1=1.2&r2=1.3

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: sc2v_step1.l
    ===================================================================
    RCS file: /cvsroot/jcastillo/sc2v/src/sc2v_step1.l,v
    retrieving revision 1.2
    retrieving revision 1.3
    diff -u -b -r1.2 -r1.3
    --- sc2v_step1.l 20 Dec 2004 17:49:07 -0000 1.2
    +++ sc2v_step1.l 17 Jan 2005 11:04:45 -0000 1.3
    @@ -32,6 +32,8 @@

    %%
    "void" return VOID;
    +"true" return TTRUE;
    +"false" return TFALSE;
    [0-9]+ yylval=atoi(yytext); return NUMBER;
    "::" return TWODOUBLEPOINTS;
    sc_int return SC_INT;



    1.3 +33 -4 sc2v/src/sc2v_step1.y

    http://www.opencores.org/cvsweb.shtml/sc2v/src/sc2v_step1.y.diff?r1=1.2&r2=1.3

    (In the diff below, changes in quantity of whitespace are not shown.)

    Index: sc2v_step1.y
    ===================================================================
    RCS file: /cvsroot/jcastillo/sc2v/src/sc2v_step1.y,v
    retrieving revision 1.2
    retrieving revision 1.3
    diff -u -b -r1.2 -r1.3
    --- sc2v_step1.y 20 Dec 2004 17:49:07 -0000 1.2
    +++ sc2v_step1.y 17 Jan 2005 11:04:45 -0000 1.3
    @@ -112,7 +112,7 @@
    %token NUMBER WORD SC_INT SC_UINT BOOL BIGGER LOWER OPENKEY CLOSEKEY WRITE WORD SYMBOL NEWLINE ENUM INCLUDE
    %token COLON SEMICOLON RANGE OPENPAR CLOSEPAR TWODOUBLEPOINTS OPENCORCH CLOSECORCH SWITCH CASE DEFAULT BREAK
    %token SC_BIGINT SC_BIGUINT HEXA DEFINE READ TRANSLATEOFF TRANSLATEON VERILOGBEGIN VERILOGEND TAB DOLLAR INTCONV
    -%token VOID
    +%token VOID TTRUE TFALSE
    %token PIFDEF PENDDEF PELSE

    %%
    @@ -207,7 +207,11 @@
    |
    endif
    |
    - else
    + pelse
    + |
    + ttrue
    + |
    + tfalse
    ;


    @@ -433,7 +437,7 @@
    }
    else
    {
    - fprintf(file,"%s",(char *)$1);
    + fprintf(file,"%s ",(char *)$1);
    }
    }
    else
    @@ -663,6 +667,7 @@
    if(processfound)
    if(openedkeys != switchparenthesis)
    {
    + fprintf(file,"\n");
    for(i = 0; i < openedkeys; i++)
    fprintf(file," ");
    fprintf(file,"begin\n");
    @@ -939,7 +944,7 @@
    }else if(verilog==1)
    fprintf(file,"#endif");
    };
    -else:
    +pelse:
    PELSE
    {
    if(translate==1&& verilog==0){
    @@ -954,3 +959,27 @@
    }else if(verilog==1)
    fprintf(file,"#else");
    };
    +ttrue: + TTRUE + { + if(translate==1&& verilog==0){ + if(processfound) + { + fprintf(file,"1"); + } + }else if(verilog==1) + fprintf(file,"1"); + }; + + +tfalse: + TFALSE + { + if(translate==1&& verilog==0){ + if(processfound) + { + fprintf(file,"0"); + } + }else if(verilog==1) + fprintf(file,"0"); + };

     
    Copyright (c) 1999 OPENCORES.ORG. All rights reserved.