My mind is boggling.
Experimenting with Quartus 5.0 SP1 (targeting an EP1C20F400C7) I was quite puzzled to find that test1 can run at 189.83 MHz, while test2 maxes out at 156.25 MHz. Aren't the two fragments logically exactly the same?
Tommy
module test1(clk, index, value2); parameter N = 5; // Word size-1 parameter M = 4; // Entries log2-1
input wire clk; input wire [M:0] index; output reg [N:0] value2;
reg [N:0] counters[(1