Pattern generation for a deterministic BIST scheme