Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
13 years ago

5M40/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 mean that those LEs can be distributed amongst the 24 LABs in whatever configuration I want? because that would make the 5M40Z (under a dollar!) really really handy.

-A

4 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    No, 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
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Does this above mean that it's mistyped in the handbook/datasheet?

    I was totally mislead regarding 5M40Z, as the table really states it has 24 LABs in 6*4 arrangement,

    and even QuartusII Chip Planner shows 24LABs which confuses me even more.

    Btw. fitter report clearly states there are maximum 40 LEs which means for me 1 column and 4 rows.

    Is that the real arrangement of the 5M40Z?

    I already started my design on 5M40Z so it's important for me to know what it is really capable of.

    Thanks in advance for anyone who can clarify this...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Wow. I wrote that so long ago I don't even remember this right.

    But the handbook shows the same 24 LAB (240 LE) to all devices up to the 5M240Z, which leads me to suspect yes, there's something wrong with that table..

    In any case, I suggest you try to compile the code above with a recent version of Quartus, to see if the situation has improved.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If you look in the Quartus new project wizard, you will find it says:

    5M40Z### - 40LE's

    5M80Z### - 80LE's

    5M160Z### - 160LE's

    5M240Z### - 240LE's

    You will notice that the number after the 5M (series) is the number of logic elements.