By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,198 Members | 916 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,198 IT Pros & Developers. It's quick & easy.

Perl code for checking for number good die in wafermap

P: 1
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

....XXXX111111111X1111XXXX....
..1X1111111X111111111X111X..

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
Jan 8 '07 #1
Share this Question
Share on Google+
1 Reply


docsnyder
P: 88
Hi David!

Try this:

Expand|Select|Wrap|Line Numbers
  1. @wafermaps = (
  2.   "XXXX111111111X1111XXXX",
  3.   "1X1111111X111111111X111X",
  4. );
  5.  
  6. for $wafermap ( @wafermaps ) {
  7.   $one = () = $wafermap =~ m/1/g;
  8.   $ex  = () = $wafermap =~ m/X/g;
  9.  
  10.   printf("----------- $wafermap ----------\n");
  11.   printf("one's: $one\n");
  12.   printf("ex's : $ex\n");
  13. }
Greetz, Doc

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

....XXXX111111111X1111XXXX....
..1X1111111X111111111X111X..

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
Jan 8 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.