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 + ...
hi, see the answer in asic design methodologies. its an issue of using adders for the given implementation. based on the no. of bits input that input provides, find the maximum bits of output that will result if added and try the rtl implementation of that.