123456The invention provides novel compounds having the general formula (I): wherein R R R R R R X Y W and n are as described herein compositions including the compounds and methods of using the compounds. These compounds useful for therapy and/or prophylaxis in a human and in particular to Hepatitis B virus (HBV) inhibitors by targeting on HBV capsid for the treatment of HBV infection.