serhannn
Member level 4

Hi. We are trying to code a sort of accumulator in Verilog, but when we write the code below, we get an error saying that "this signal is connected to multiple drivers" for every signal that even does not appear in the expression below. For example, we also have a register "N" and we get the same error for it, too.
Does anybody know the reason for this error? Thanks a lot for your help.
Code:
sum_temp=(a + k*dx - dx_half)*(a + k*dx - dx_half)+m*(a + k*dx - dx_half)+nn;
sum=sum+sum_temp;
Does anybody know the reason for this error? Thanks a lot for your help.