param
Member level 2
hi,
i have to find the summation of a sequence of data...
for example, i have
always @(posedge clk)
begin
if ( cntrl == 1'b0)
begin
reg1 = 16'b0000000000000000;
reg2 = 16'b0000000000000000;
product = 16'b0000000000000000;
end
else
product <= reg1 * reg2;
end
then let product = 11
22
33
.
.
.
now i how to find the summation of product!!!
like sum <= 11 + 22 + 33 + ...
In anticipation of ur help
regards
i have to find the summation of a sequence of data...
for example, i have
always @(posedge clk)
begin
if ( cntrl == 1'b0)
begin
reg1 = 16'b0000000000000000;
reg2 = 16'b0000000000000000;
product = 16'b0000000000000000;
end
else
product <= reg1 * reg2;
end
then let product = 11
22
33
.
.
.
now i how to find the summation of product!!!
like sum <= 11 + 22 + 33 + ...
In anticipation of ur help
regards