A multi-stage programmable temperature ramp generator