def _lif_sdram_usage(size_in, size_out, size_learnt_out, n_neurons):
    """Approximation of SDRAM usage."""
    total_size_out = size_out + size_learnt_out
    size = n_neurons * (size_in + total_size_out + 2) + total_size_out
    return size * 4
