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

Subversion Repositories amber

[/] [amber/] [trunk/] [sw/] [tools/] [amber-memparams128.sh] - Diff between revs 36 and 61

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

Rev 36 Rev 61
Line 40... Line 40...
#                                                              #
#                                                              #
#--------------------------------------------------------------#
#--------------------------------------------------------------#
 
 
grep '@' $1 | awk '{print $2}'  |  awk 'NR%4==1' |\
grep '@' $1 | awk '{print $2}'  |  awk 'NR%4==1' |\
paste -d" "  - - - - - - - - | \
paste -d" "  - - - - - - - - | \
awk '{printf "    .SRAM0_INIT_" NR-1 " ( 256%ch", 39 } \
awk '{ if      (NR<=64)  { printf "    .SRAM0_INIT_" NR-1  " ( 256%ch", 39 }  \
 
       else if (NR<=128) { printf "    .SRAM4_INIT_" NR-65 " ( 256%ch", 39 }} \
     $8==""  {printf "00000000"} \
     $8==""  {printf "00000000"} \
     $7==""  {printf "00000000"} \
     $7==""  {printf "00000000"} \
     $6==""  {printf "00000000"} \
     $6==""  {printf "00000000"} \
     $5==""  {printf "00000000"} \
     $5==""  {printf "00000000"} \
     $4==""  {printf "00000000"} \
     $4==""  {printf "00000000"} \
Line 53... Line 54...
     {print $8 $7 $6 $5 $4 $3 $2 $1 " )," } '  \
     {print $8 $7 $6 $5 $4 $3 $2 $1 " )," } '  \
     > $2
     > $2
 
 
grep '@' $1 | awk '{print $2}'  |  awk 'NR%4==2' |\
grep '@' $1 | awk '{print $2}'  |  awk 'NR%4==2' |\
paste -d" "  - - - - - - - - | \
paste -d" "  - - - - - - - - | \
awk '{printf "    .SRAM1_INIT_" NR-1 " ( 256%ch", 39 } \
awk '{ if      (NR<=64)  { printf "    .SRAM1_INIT_" NR-1  " ( 256%ch", 39 }  \
 
       else if (NR<=128) { printf "    .SRAM5_INIT_" NR-65 " ( 256%ch", 39 }} \
     $8==""  {printf "00000000"} \
     $8==""  {printf "00000000"} \
     $7==""  {printf "00000000"} \
     $7==""  {printf "00000000"} \
     $6==""  {printf "00000000"} \
     $6==""  {printf "00000000"} \
     $5==""  {printf "00000000"} \
     $5==""  {printf "00000000"} \
     $4==""  {printf "00000000"} \
     $4==""  {printf "00000000"} \
Line 66... Line 68...
     {print $8 $7 $6 $5 $4 $3 $2 $1 " )," } '  \
     {print $8 $7 $6 $5 $4 $3 $2 $1 " )," } '  \
     >> $2
     >> $2
 
 
grep '@' $1 | awk '{print $2}'  |  awk 'NR%4==3' |\
grep '@' $1 | awk '{print $2}'  |  awk 'NR%4==3' |\
paste -d" "  - - - - - - - - | \
paste -d" "  - - - - - - - - | \
awk '{printf "    .SRAM2_INIT_" NR-1 " ( 256%ch", 39 } \
awk '{ if      (NR<=64)  { printf "    .SRAM2_INIT_" NR-1  " ( 256%ch", 39 }  \
 
       else if (NR<=128) { printf "    .SRAM6_INIT_" NR-65 " ( 256%ch", 39 }} \
     $8==""  {printf "00000000"} \
     $8==""  {printf "00000000"} \
     $7==""  {printf "00000000"} \
     $7==""  {printf "00000000"} \
     $6==""  {printf "00000000"} \
     $6==""  {printf "00000000"} \
     $5==""  {printf "00000000"} \
     $5==""  {printf "00000000"} \
     $4==""  {printf "00000000"} \
     $4==""  {printf "00000000"} \
Line 80... Line 83...
     >> $2
     >> $2
 
 
 
 
grep '@' $1 | awk '{print $2}'  |  awk 'NR%4==0' |\
grep '@' $1 | awk '{print $2}'  |  awk 'NR%4==0' |\
paste -d" "  - - - - - - - - | \
paste -d" "  - - - - - - - - | \
awk '{printf "    .SRAM3_INIT_" NR-1 " ( 256%ch", 39 } \
awk '{ if      (NR<=64)  { printf "    .SRAM3_INIT_" NR-1  " ( 256%ch", 39 }  \
 
       else if (NR<=128) { printf "    .SRAM7_INIT_" NR-65 " ( 256%ch", 39 }} \
     $8==""  {printf "00000000"} \
     $8==""  {printf "00000000"} \
     $7==""  {printf "00000000"} \
     $7==""  {printf "00000000"} \
     $6==""  {printf "00000000"} \
     $6==""  {printf "00000000"} \
     $5==""  {printf "00000000"} \
     $5==""  {printf "00000000"} \
     $4==""  {printf "00000000"} \
     $4==""  {printf "00000000"} \

powered by: WebSVN 2.1.0

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