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

Subversion Repositories copyblaze

[/] [copyblaze/] [trunk/] [copyblaze/] [sw/] [tools/] [asm/] [pBlazASM/] [cpBlazeMRG/] [cpBlazeMRG.c] - Diff between revs 2 and 68

Show entire file | Details | Blame | View Log

Rev 2 Rev 68
Line 288... Line 288...
 
 
        // Read the input file
        // Read the input file
        while ( fgets(linebuf, 128, ifp) != NULL ) {
        while ( fgets(linebuf, 128, ifp) != NULL ) {
                if(line_count >= MAX_LINE_COUNT){
                if(line_count >= MAX_LINE_COUNT){
                        printf("\nInput exceed maximum line number\n");
                        printf("\nInput exceed maximum line number\n");
                        error_out();
            goto error;
 
                        //error_out();
                }
                }
 
 
                // Extract the data from In file to program_word
                // Extract the data from In file to program_word
                ptr = strstr(linebuf, "\r\n");
                ptr = strstr(linebuf, "\r\n");
                *ptr = '\0';
                *ptr = '\0';
Line 304... Line 305...
                //printf("\n%s=>%05X",linebuf,program_word[line_count]);
                //printf("\n%s=>%05X",linebuf,program_word[line_count]);
 
 
                line_count++;
                line_count++;
        }
        }
 
 
 
error:
 
    //error_out();
 
 
        printf("\nWrite output files...\n");
        printf("\nWrite output files...\n");
        fprintf(ofp,"Write output files...\n");
        fprintf(ofp,"Write output files...\n");
        write_bin();
        write_bin();
        write_vhd();
        write_vhd();

powered by: WebSVN 2.1.0

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