dgschwend / zynqnet

Master Thesis "ZynqNet: An FPGA-Accelerated Embedded Convolutional Neural Network"
GNU General Public License v3.0
739 stars 297 forks source link

input_offset and weight offsets #37

Open ysdagar opened 6 years ago

ysdagar commented 6 years ago

Hi David,

I'm net to both Deep Learning and HLS & trying to understand your code. In the following function,

void fpga_top(layer_t layer, data_t *SHARED_DRAM, unsigned int weights_offset, weightaddr_t num_weights, unsigned int input_offset); what are "weights_offset" and "input_offset", used in fpga_top.hpp file? Thank you in Advance. Yashwant

dgschwend commented 6 years ago

Hi Yashwant. They are the relative memory offsets for the weights and input, with respect to the SHARED_DRAM pointer. See e.g. https://github.com/dgschwend/zynqnet/blob/b631306b747f32403acb02fd0aa49c4979a88300/_HLS_CODE/memory_controller.cpp#L123 for an actual memory access...