A Built-in Test Pattern Generator