Forum Discussion
Altera_Forum
Honored Contributor
14 years ago5M40/80/160/240 LABs and LEs
In the Max V family handbook, it says that there are 10LEs per LAB, and that for all devices up to the 5M240, there are 24 LABs organised as 6x4. For the devices with less than 240 LEs, does this me...
Altera_Forum
Honored Contributor
14 years agoNo, I'm afraid you'll only be able to use 4 LABs with the 5M40Z.
Compiled with default settings, the code below requires 36 LEs distributed over 6 LABs; it fails to fit when targetting a 5M40Z.module lab_test (
input wire clk_i,
input wire enable1_i,
input wire enable2_i,
input wire data_i,
output reg data_o
);
reg sr1;
reg sr2;
genvar i;
generate for(i = 0; i < 4; i = i+1) begin : SRS
always @ (posedge clk_i) begin
if (enable1_i)
sr1 <= { sr1, data_i };
if (enable2_i)
sr2 <= { sr2, sr1 };
data_o <= sr2;
end
end
endgenerate
endmodule