Perl code for checking for number good die in wafermap

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eadavid
    New Member
    • Jan 2007
    • 1

    Perl code for checking for number good die in wafermap

    HI,
    I am a beginner to perl and I need to write perl code for checking a good die in the wafermap.

    Here is the wafermap look like in file

    ....XXXX1111111 11X1111XXXX....
    ..1X1111111X111 111111X111X..

    I need help in perl code to check number of 1 (good die) and to check X for (bad die). After it read the file it should print out total number of 1 and X.

    Anything it help.

    Thank you in advance for your help and time.

    David
  • docsnyder
    New Member
    • Dec 2006
    • 88

    #2
    Hi David!

    Try this:

    Code:
    @wafermaps = (
      "XXXX111111111X1111XXXX",
      "1X1111111X111111111X111X",
    );
    
    for $wafermap ( @wafermaps ) {
      $one = () = $wafermap =~ m/1/g;
      $ex  = () = $wafermap =~ m/X/g;
    
      printf("----------- $wafermap ----------\n");
      printf("one's: $one\n");
      printf("ex's : $ex\n");
    }
    Greetz, Doc

    Originally posted by eadavid
    HI,
    I am a beginner to perl and I need to write perl code for checking a good die in the wafermap.

    Here is the wafermap look like in file

    ....XXXX1111111 11X1111XXXX....
    ..1X1111111X111 111111X111X..

    I need help in perl code to check number of 1 (good die) and to check X for (bad die). After it read the file it should print out total number of 1 and X.

    Anything it help.

    Thank you in advance for your help and time.

    David

    Comment

    Working...