Hardware implementation of a hysteretic oscillator