The invention relates to novel pyrazolopyrimidinones according to formula (I): wherein X, D, Ra, Rb, Rc, Rd, Re, m and n are as defined herein. The invention also relates to pharmaceutical compositions comprising these compounds and methods of using these compounds in the treatment of various diseases concerning deficits in perception, concentration, learning or memory.