Custom Memory Design for Logic-in-Memory: Drawbacks and Improvements over Conventional Memories