A hardware implementation of the dynamic clamp