IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 1, 2007, 11:38:30 AM (19 years ago)
Author:
eugene
Message:

format updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippconfig/gpc1/chips-script.txt

    r14828 r15152  
    11
    2 awk '{x=$2}{dx=157}($2 < 4){{x=$2+1}{dx=0}}(NR>2){printf "          %s   S32     %d\n", $1, x*4971+dx}' chips-layout.txt > tmp
    3 awk '{y=$3}{dy=306}($2 < 4){{y=$3+1}{dy=0}}(NR>2){printf "          %s   S32     %d\n", $1, y*5143+dy}' chips-layout.txt > tmp
     2# generate the offsets
     3awk '{x=$2}{dx=157}($2 < 4){{x=$2+1}{dx=0}}(NR>2){printf "          XY%d%d  S32     %d\n", $2, $3, x*4971+dx}' chips-layout.txt | sort -k 1 > tmp
     4awk '{y=$3}{dy=306}($2 < 4){{y=$3+1}{dy=0}}(NR>2){printf "          XY%d%d  S32     %d\n", $2, $3, y*5143+dy}' chips-layout.txt | sort -k 1 > tmp
    45
    5 awk '{x=1}($2 < 4){x=-1}(NR>2){printf "          %s   S32     %d\n", $1, x}' chips-layout.txt > tmp
    6 awk '{y=1}($2 < 4){y=-1}(NR>2){printf "          %s   S32     %d\n", $1, y}' chips-layout.txt > tmp
     6# generate the parities
     7awk '{x=1}($2 < 4){x=-1}(NR>2){printf "          XY%d%d  S32     %d\n", $2, $3, x}' chips-layout.txt | sort -k 1 > tmp
     8awk '{y=1}($2 < 4){y=-1}(NR>2){printf "          XY%d%d  S32     %d\n", $2, $3, y}' chips-layout.txt | sort -k 1 > tmp
     9
     10# generate the CONTENT table
     11awk '(NR > 2){printf "        %s  STR  XY%d%d:GPCChip\n", $1, $2, $3}' chips-layout.txt | sort -k 3 > tmp
Note: See TracChangeset for help on using the changeset viewer.