A state-space approach to the design of syndrome formers