PLD implementation of control algorithms: design and validation