neurosim / DNN_NeuroSim_V1.3

Benchmark framework of compute-in-memory based accelerators for deep neural network (inference engine focused)
62 stars 36 forks source link

`slSwitchMatrix.CalculatePower` in `SubArray.cpp` #16

Closed sepehrMSP closed 2 years ago

sepehrMSP commented 2 years ago

Why in SubArray.cpp, in the calculation of power, the first parameter of the following function, which is numRead, is set to zero? slSwitchMatrix.CalculatePower(0, 2*numWriteOperationPerRow*numRow*activityRowWrite, activityRowRead, activityColWrite); On the other hand since activityRowWrite is never set, the second argument , which is numWrite, is also zero. So we have neither reads nor writes for slSwitchMatrix. @neurosim

neurosim commented 2 years ago

Hi! The slSwitchMatrix is only used when writing the memory array. The SLs are float when reading. And in this inference version, we only consider the reading operation. Thus only the area of slSwitchMatrix is truly in use.