A compound of formula and pharmaceutically acceptable salts thereof, wherein: s and p are an integer selected in an opposite manner between 0 and 1, such that when s is 1, p is 0 (to form a perhydroquinoline) and when s is 0, p is 1 (to form a perhydroisoquinoline), Y is a CO biradical, W1 and W2 are independently a bond or a biradical selected from O, S and NR1, wherein R1 is selected from H, C 1-4 alkyl and C 3-10 cycloalkyl, n is an integer selected from 1, 2, 3 and 4, V is a radical selected from -CO-T, -CS-T and -SO 2 -T, or a radical selected from: T is a group selected from NR2R3, R2, OR2 and SR2; or a group selected from wherein R2 and R3 are independently selected from H, COR4, SO 2 R4, C 1-4 alkyl, aryl, benzyl, phenethyl, C 2-4 alkenyl, C 2-4 alkynyl, C 3-10 cycloalkyl or heterocycle, wherein when R2 or R3 is an alkyl or an alkenyl these are optionally substituted with one or several substituents independently selected from F, OR4, NR4R5, COOR4, CONR4R5, C 3-10 cycloalkyl, aryl and heterocycle; wherein when R2 or R3 is an aryl, a benzyl, a phenethyl, a cycloalkyl or a heterocycle, these are optionally substituted with one or several substituents independently selected from NH 2, F, Cl, CN, NO 2, COOH, R4, COOR4, OR4, OCF 3, SH, SR4, CONR4R5, SO 2 NR4R5, COR4, NR1COR4, OCOR4, SOR4, SO 2 R4 and heterocycle, wherein when R2 or R3 is a cycloalkyl this is optionally substituted with one or several fused benzene rings, the benzene is optionally substituted with one or several substituents independently selected from alkyl, alkoxide or halogen, wherein R4 and R5 are independently selected from H, C 1-4 alkyl, aryl, benzyl, phenethyl, C 2-4 alkenyl, C 2-4 alkynyl, C 3-10 cycloalkyl and heterocycle, wherein optionally R4 and R5 are bound to one another forming a cycle of 3 to 8 links, wherein R6, R7, R8 and R9 are independently selected from H, OR4, F and Cl, wherein R10 is independently selected from H, OH, F, C 1-4 alkyl, COOR11, COR11, phenyl, benzyl, benzhydryl, C 2-4 alkenyl, C 2-4 alkynyl, C 3-10 cycloalkyl and heterocycle, and wherein the alkyl, phenyl, benzyl, benzhydryl, cycloalkyl or heterocycle are optionally substituted with one or several substituents independently selected from NH 2, F, Cl, NO 2, COOH, COOR4, OR4, CF 3, SH, SR4, CONR4R5, SO 2 NR4R5, COR4, NR1COR4, OCOR4, SOR4, SO 2 R4 and C 1-4 alkyl; and R11 is selected from H, C 1-4 alkyl and C 3-10 cycloalkyl; with the proviso that the compound of formula is not s and p are an integer selected in an opposite manner between 0 and 1, such that when s is 1, p is 0 (to form a perhydroquinoline) and when s is 0, p is 1 (to form a perhydroisoquinoline), Y is a CO biradical, W1 and W2 are independently a bond or a biradical selected from O, S and NR1, wherein R1 is selected from H, C 1-4 alkyl and C 3-10 cycloalkyl, n is an integer selected from 1, 2, 3 and 4, V is a radical selected from -CO-T, -CS-T and -SO 2 -T, or a radical selected from: T is a group selected from NR2R3, R2, OR2 and SR2; or a group selected from wherein R2 and R3 are independently selected from H, COR4, SO 2 R4, C 1-4 alkyl, aryl, benzyl, phenethyl, C 2-4 alkenyl, C 2-4 alkynyl, C 3-10 cycloalkyl or heterocycle, wherein when R2 or R3 is an alkyl or an alkenyl these are optionally substituted with one or several substituents independently selected from F, OR4, NR4R5, COOR4, CONR4R5, C 3-10 cycloalkyl, aryl and heterocycle; wherein when R2 or R3 is an aryl, a benzyl, a phenethyl, a cycloalkyl or a heterocycle, these are optionally substituted with one or several substituents independently selected from NH 2, F, Cl, CN, NO 2, COOH, R4, COOR4, OR4, OCF 3, SH, SR4, CONR4R5, SO 2 NR4R5, COR4, NR1COR4, OCOR4, SOR4, SO 2 R4 and heterocycle, wherein when R2 or R3 is a cycloalkyl this is optionally substituted with one or several fused benzene rings, the benzene is optionally substituted with one or several substituents independently selected from alkyl, alkoxide or halogen, wherein R4 and R5 are independently selected from H, C 1-4 alkyl, aryl, benzyl, phenethyl, C 2-4 alkenyl, C 2-4 alkynyl, C 3-10 cycloalkyl and heterocycle, wherein optionally R4 and R5 are bound to one another forming a cycle of 3 to 8 links, wherein R6, R7, R8 and R9 are independently selected from H, OR4, F and Cl, wherein R10 is independently selected from H, OH, F, C 1-4 alkyl, COOR11, COR11, phenyl, benzyl, benzhydryl, C 2-4 alkenyl, C 2-4 alkynyl, C 3-10 cycloalkyl and heterocycle, and wherein the alkyl, phenyl, benzyl, benzhydryl, cycloalkyl or heterocycle are optionally substituted with one or several substituents independently selected from NH 2, F, Cl, NO 2, COOH, COOR4, OR4, CF 3, SH, SR4, CONR4R5, SO 2 NR4R5, COR4, NR1COR4, OCOR4, SOR4, SO 2 R4 and C 1-4 alkyl; and R11 is selected from H, C 1-4 alkyl and C 3-10 cycloalkyl; with the proviso that the compound of formula is not