A PeakDetector with voltage-controlled reset.
            decay
          
            peak_rate
          
decay_shape \( \in \{ \)
          
            
            LINEAR
          
             \( , \) 
            EXPONENTIAL
           \( \} \)
          
        
          peak_to_detect \( \in \{ \)
          
            
            POSITIVE_PEAK
          
             \( , \) 
            NEGATIVE_PEAK
           \( \} \)
          
        
          comparator_output \( \in \{ \)
          
            
            REFERENCE_VOLTAGE_OUTPUT
          
             \( , \) 
            DIGITAL_OUTPUT
           \( \} \)
          
        
          input_phase \( \in \{ \)
          
            
            PHASE1
          
             \( , \) 
            PHASE2
           \( \} \)
          
        
          compare_to \( \in \{ \)
          
            
            GROUND
          
             \( , \) 
            SECOND_INPUT
          
             \( , \) 
            VARIABLE_REFERENCE
           \( \} \)
          
        
          control_signal_polarity \( \in \{ \)
          
            
            ACTIVE_HIGH
          
             \( , \) 
            ACTIVE_LOW
           \( \} \)
          
        
          opamp_mode \( \in \{ \)
          
            
            DEFAULT
          
             \( , \) 
            CHOPPER_STABILIZED
           \( \} \)
          
        
        
      
            input
            
              Half-Cycle
            
          
            control
            
              Half-Cycle
            
          
            output
            
              Continuous
            
          
            reset_out
            
              Continuous