OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [src_c/] [ihex2mif/] [main.c] - Diff between revs 45 and 48

Show entire file | Details | Blame | View Log

Rev 45 Rev 48
Line 16... Line 16...
void usage (void)
void usage (void)
{
{
        printf("Usage: ./ihex2mif  <options>  \n");
        printf("Usage: ./ihex2mif  <options>  \n");
        printf("\nOptions: \n");
        printf("\nOptions: \n");
        printf("         -e <end memory address> : end memory address .\n");
        printf("         -e <end memory address> : end memory address .\n");
        printf("         -f <file name>: input ihex file  .\n");
        printf("         -f <file name>: input ihex file name.\n");
 
        printf("         -o <file name>: output mif file name.\n");
 
 
}
}
 
 
void processArgs (int argc, char **argv )
void processArgs (int argc, char **argv )
{
{
Line 70... Line 71...
        if(out==NULL){printf("Output file cannot be created"); exit(1);}
        if(out==NULL){printf("Output file cannot be created"); exit(1);}
        maxaddr=load_file(file_name);
        maxaddr=load_file(file_name);
        if (end_addr  != NULL) sscanf(end_addr, "%x", &end_addr_int);
        if (end_addr  != NULL) sscanf(end_addr, "%x", &end_addr_int);
        else end_addr_int = maxaddr;
        else end_addr_int = maxaddr;
 
 
 
        printf("end_addr_int=%u\n",end_addr_int);
        update_out_file();
        update_out_file();
 
 
 
 
        fclose(out);
        fclose(out);
 
 

powered by: WebSVN 2.1.0

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