Adding new utilities for phasing matrix memory writing and validation