def alpha_synapse_params(lpu, weight = 1):
    """
    Generate AlphaSynapse params.
    """
    s = 0.04
    k = 1000
    if lpu == 'BU' or lpu == 'bu':
        return {'conductance': True,
                'ad': 0.16*1000,
                'ar': 1.1*100,
                'gmax': weight * 0.01 * s,
                'reverse': -0.065 * k}
    elif lpu == 'EB':
        return {'conductance': True,
                'ad': 0.16*1000,
                'ar': 1.1*100,
                'gmax': 0.01,
                'reverse': 0.065* k}
    elif lpu == 'FB':
        return {'conductance': True,
                'ad': 0.16*1000,
                'ar': 1.1*100,
                'gmax': 0.01,
                'reverse': 0.065* k}
    elif lpu == 'PB':
        return {'conductance': True,
                'ad': 0.19*1000,
                'ar': 1.1*100,
                'gmax': weight * 0.002,
                'reverse': 0.065* k}
    else:
        raise ValueError('unrecognized LPU name')