DOT-PIM: Agile Design and Optimization Tools for Processing-In-Memory