Skeleton-based Synthesis Flow for Computation-In-Memory Architectures