I'm writing a verilog code for the convolution layer in a CNN, and i'm getting the following errors:
1)ERROR:HDLCompiler:257 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 52: Cannot assign to non-variable max_irow
2)ERROR:HDLCompiler:1660 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 52: Procedural assignment to a non-register max_irow is not
permitted, left-hand side should be reg/integer/time/genvar
3)ERROR:HDLCompiler:1660 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 52: Procedural assignment to a non-register max_irow is not
permitted, left-hand side should be reg/integer/time/genvar
4)ERROR:HDLCompiler:1660 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 52: Procedural assignment to a non-register max_irow is not
permitted, left-hand side should be reg/integer/time/genvar
5)ERROR:HDLCompiler:257 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 54: Cannot assign to non-variable max_icol
6)ERROR:HDLCompiler:1660 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 54: Procedural assignment to a non-register max_icol is not
permitted, left-hand side should be reg/integer/time/genvar
7)ERROR:HDLCompiler:1660 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 54: Procedural assignment to a non-register max_icol is not
permitted, left-hand side should be reg/integer/time/genvar
8)ERROR:HDLCompiler:257 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 56: Cannot assign to non-variable max_krow
9)ERROR:HDLCompiler:1660 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 56: Procedural assignment to a non-register max_krow is not
permitted, left-hand side should be reg/integer/time/genvar
10)ERROR:HDLCompiler:1660 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 56: Procedural assignment to a non-register max_krow is not
permitted, left-hand side should be reg/integer/time/genvar
11)ERROR:HDLCompiler:257 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 58: Cannot assign to non-variable max_kcol
12)ERROR:HDLCompiler:1660 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 58: Procedural assignment to a non-register max_kcol is not
permitted, left-hand side should be reg/integer/time/genvar
13)ERROR:HDLCompiler:1660 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 58: Procedural assignment to a non-register max_kcol is not
permitted, left-hand side should be reg/integer/time/genvar
14)ERROR:HDLCompiler:255 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 60: Cannot assign to memory sum directly
15)ERROR:HDLCompiler:747 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 60: Range is not allowed in a prefix
16)ERROR:HDLCompiler:698 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 60: Part-select of memory image is not allowed
17)ERROR:HDLCompiler:971 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 60: Illegal operand for operator *
18)ERROR:HDLCompiler:1373 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 60: Unpacked value/target cannot be used in assignment
19)ERROR:HDLCompiler:598 - "D:DSD_CEP_verilogconvolution_normal.v"
Line 21: Module <convolution_normal> ignored due to previous errors.