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

Subversion Repositories or1200_soc

[/] [or1200_soc/] [trunk/] [sw/] [perl/] [bin2readmemh.pl] - Diff between revs 15 and 16

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 15 Rev 16
Line 8... Line 8...
 
 
open( BIN_FILE, $opt_f ) or die "Can't open $opt_f!!!\n";
open( BIN_FILE, $opt_f ) or die "Can't open $opt_f!!!\n";
 
 
if( $opt_x ) {
if( $opt_x ) {
  if( $opt_d ) {
  if( $opt_d ) {
    print "Creating Xilinx image with memory depth $opt_d.";
#     print "Creating Xilinx image with memory depth $opt_d.";
  } else {
  } else {
    die "Memory depth not inputted. Use -d option!!!\n";
    die "Memory depth not inputted. Use -d option!!!\n";
  }
  }
} else {
 
  print "Creating Altera image.";
 
}
}
 
 
$memory_address = 0;
$memory_address = 0;
 
 
if( $opt_s == 32 ) {
if( $opt_s == 32 ) {

powered by: WebSVN 2.1.0

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