def set_meas_constants(self, signal_name, slew_dir_str):
    'Set the values needed to generate a Spice measurement statement based on the name of the measurement.'
    self.trig_dir_str = slew_dir_str
    self.targ_dir_str = slew_dir_str
    if (slew_dir_str == 'RISE'):
        self.trig_val_of_vdd = 0.1
        self.targ_val_of_vdd = 0.9
    elif (slew_dir_str == 'FALL'):
        self.trig_val_of_vdd = 0.9
        self.targ_val_of_vdd = 0.1
    else:
        debug.error('Unrecognised slew measurement direction={}'.format(slew_dir_str), 1)
    self.trig_name_no_port = signal_name
    self.targ_name_no_port = signal_name
Set the values needed to generate a Spice measurement statement based on the name of the measurement.
def set_meas_constants(self, signal_name, slew_dir_str):
    
    self.trig_dir_str = slew_dir_str
    self.targ_dir_str = slew_dir_str
    if (slew_dir_str == 'RISE'):
        self.trig_val_of_vdd = 0.1
        self.targ_val_of_vdd = 0.9
    elif (slew_dir_str == 'FALL'):
        self.trig_val_of_vdd = 0.9
        self.targ_val_of_vdd = 0.1
    else:
        debug.error('Unrecognised slew measurement direction={}'.format(slew_dir_str), 1)
    self.trig_name_no_port = signal_name
    self.targ_name_no_port = signal_name