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: Thu Jan 20 19:20:10 CET 2005
    Subject: [cvs-checkins] MODIFIED: sc2v ...
    Top
    Date: 00/05/01 20:19:20

    Modified: sc2v/src sc2v_step1.l sc2v_step1.y
    Log:
    View ChangeLog




    Revision Changes Path
    1.5 +6 -1 sc2v/src/sc2v_step1.l

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

    (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.4
    retrieving revision 1.5
    diff -u -b -r1.4 -r1.5
    --- sc2v_step1.l 18 Jan 2005 15:24:34 -0000 1.4
    +++ sc2v_step1.l 20 Jan 2005 18:20:08 -0000 1.5
    @@ -84,6 +84,11 @@
    "/*" if (!linecomment) multilinecomment = 1; yylval=(int)strdup(yytext); return WORD;
    "*/" if (multilinecomment) multilinecomment = 0; yylval=(int)strdup(yytext); return WORD;

    +"("[ ]*"sc_uint"[ ]*"<"[ ]*[0-9+][ ]*">"[ ]*")"
    +"("[ ]*"sc_biguint"[ ]*"<"[ ]*[0-9+][ ]*">"[ ]*")"
    +"("[ ]*"sc_int"[ ]*"<"[ ]*[0-9+][ ]*">"[ ]*")"
    +"("[ ]*"sc_bigint"[ ]*"<"[ ]*[0-9+][ ]*">"[ ]*")"
    +
    "//"[ ]*[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*/
    "/*"[ ]*[vV][eE][rR][iI][lL][oO][gG][ ]*[bB][eE][gG][iI][nN] return VERILOGBEGIN;



    1.4 +21 -13 sc2v/src/sc2v_step1.y

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

    (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.3
    retrieving revision 1.4
    diff -u -b -r1.3 -r1.4
    --- sc2v_step1.y 17 Jan 2005 11:04:45 -0000 1.3
    +++ sc2v_step1.y 20 Jan 2005 18:20:08 -0000 1.4
    @@ -95,9 +95,12 @@
    file_writes = (char *)malloc(256*sizeof(int));
    strcpy(file_writes, (char *)"file_writes.sc2v");
    FILE_WRITES = fopen(file_writes,(char *)"w");
    +
    if(FILE_WRITES!=NULL)
    printf("\nopening file => filename = %s\n",file_writes);

    + lastword=malloc(sizeof(char)*256);
    +
    translate=1;
    verilog=0;
    writemethod=0;
    @@ -409,16 +412,21 @@
    openedcase = 0;
    }

    - lastword=malloc(sizeof(char)*strlen((char *)$1));
    strcpy(lastword, (char *)$1);

    if(reg_found)
    {
    +
    + regname=malloc(sizeof(char)*(strlen((char *)$1)+1));
    + regname2=malloc(sizeof(char)*(strlen((char *)$1)+strlen(processname))+1);
    +
    strcpy(regname ,(char *)$1);
    strcpy(regname2 ,(char *)$1);
    strcat(regname2, processname);
    fprintf(regs_file,"%s",regname2);
    InsertReg(regslist, regname, regname2);
    + free(regname);
    + free(regname2);
    }
    else
    {
    @@ -445,6 +453,7 @@

    newline = 0;
    }
    +
    }
    else if(definefound)
    {
    @@ -495,7 +504,6 @@
    {
    fprintf(FILE_DEFINES," = ");
    }
    - free(lastword);
    }else if(verilog==1){ fprintf(file,".write"); @@ -661,8 +669,8 @@ processfound = 1; regslist = (RegsList *)malloc(sizeof(RegsList)); InitializeRegsList(regslist); - regname = (char *)malloc(256*sizeof(int)); - regname2 = (char *)malloc(256*sizeof(int)); + /* regname = (char *)malloc(256*sizeof(int)); + regname2 = (char *)malloc(256*sizeof(int));*/ } if(processfound) if(openedkeys != switchparenthesis) @@ -723,8 +731,8 @@ fclose(file); fclose(regs_file); free(regslist); - free(regname); - free(regname2); +/* free(regname); + free(regname2);*/ processfound = 0; } }else if(verilog==1)

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