EFSim: An Efficient and Flexible Simulation Framework for Digital In-Memory Computing | IEEE Conference Publication | IEEE Xplore