harvard-acc / gem5-aladdin

End-to-end SoC simulation: integrating the gem5 system simulator with the Aladdin accelerator simulator.
BSD 3-Clause "New" or "Revised" License
210 stars 59 forks source link

Regarding PE's configuration #53

Open vkb27 opened 5 months ago

vkb27 commented 5 months ago

When accelerator type is set to aladdin then does it imply a certain configuration of how the PE's are arranged? If I wish to change the number of PE's, say 16 in a 4x4 grid each with 8 vector MAC units then how can I configure this? For this, in smv_convolution_op.cpp const int kNumPEs = 16; const int kNumMaccsPerPE = 64? cause originally it was 32 (assuming 4 NUM_MACC_INSTS x 8) and in params.h

define NUM_MACC_INSTS 8

define NUM_PE_INSTS 16

but making these changes hardly brought a change in the stats files

Also if I want to change word width, by reducing the bits (10 or 8 bits ) in which data can be stored and communicated will changing the smv-accel.cfg be fine? Where else will I have to make changes? ( will this be feasible or only fp16 and fp32 work? )

Thank you.