dgschwend / zynqnet

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

What's reg(T x) template's pipelining directive working for ? #23

Open chengsonghust opened 6 years ago

chengsonghust commented 6 years ago

template T reg(T x) { #pragma HLS pipeline #pragma HLS inline self off #pragma HLS interface ap_ctrl_none register port=return return x; }

reg(T x) is used as a register to store the SHARED_DRAM data. Why should it be defined as pipeline? Thx.  
dgschwend commented 6 years ago

Good question! The#pragma HLS pipeline is probably not needed here, and probably not respected by the HLS compiler either. The idea was probably not to disturb the ability of the tool to pipeline through and including these registers. Feel free to remove the pragma, recompile and see if it makes any difference!