Altera_Forum
Honored Contributor
11 years agoSUm of table
Hi,
Please can you help me to write a Verilog code to calculate sum of table, I have a code that’s calculate with this manner. generate if(z == 1) assign x = y[0]; else if (z == 2) assign x = y[0] + y[1]; else if (z == 3) assign x = y[0] +y[1] + y[2] ; endgenerate I need to let’s this code a generic using a boucle for to calculate sum of table using always block. Thank you for your helps.