Neurocube: Energy-efficient programmable digital deep learning accelerator based on processor in memory platform