Forum Discussion

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

Question on LE

Dear all,

Im wondering if it is possible to have a design that actually has fewer logic gates but took up more LE than another design that has more logic gates?

This is happened to my designs. Im thinking how can this happened?

29 Replies

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

    --- Quote Start ---

    Hi,

    I assume that your gate are all 2-input gates. In an FPGA your logic is implemented in LUT.

    The LUT has at least 4 input and one output. That means you can implement every logic function with 4 inputs and one output. The fitter will look for ways to fill the LUT's effectively. There is an Assignment (implement as output of logic cell) which could be used to force the Fitter to implement the outputs of the gate in one LUT (Implement as Output of Logic Cell).

    I have a small example attached. Maybe this solves your problem.

    Kind regards

    GPK

    --- Quote End ---

    Hi,

    I think this is very helpful. But do I change the (implement as output of logic cell) ??
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Design A has 36AND 96XOR , consumed 82 LE, while

    design B has 35AND 120XOR, consumed 79 LE

    i think it will be odd to report a result as such in my work.

    --- Quote End ---

    Hi,

    I assume that your gate are all 2-input gates. In an FPGA your logic is implemented in LUT.

    The LUT has at least 4 input and one output. That means you can implement every logic function with 4 inputs and one output. The fitter will look for ways to fill the LUT's effectively. There is an Assignment (implement as output of logic cell) which could be used to force the Fitter to implement the outputs of the gate in one LUT (Implement as Output of Logic Cell).

    I have a small example attached. Maybe this solves your problem.

    Kind regards

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

    --- Quote Start ---

    Design A has 36AND 96XOR , consumed 82 LE, while

    design B has 35AND 120XOR, consumed 79 LE

    i think it will be odd to report a result as such in my work.

    --- Quote End ---

    LE elements your project requires are mostly related to HOW they are connected, not only to the number of logic gates you use in the design.

    For example, a long AND/XOR chain could be synthesized in a few LE, if the resulting logic function can be simplified.

    On the other hand, if a gate output must drive a lot of input gates, the compiler may replicate it on more than one LE to meet the high fan out requirement.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hi,

    why do want to disable the optimization ? How many gates do you have in your design ?

    Kind regards

    GPK

    --- Quote End ---

    Design A has 36AND 96XOR , consumed 82 LE, while

    design B has 35AND 120XOR, consumed 79 LE

    i think it will be odd to report a result as such in my work.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    in that case, can I unable the optimization in the synthesis tool ?

    --- Quote End ---

    Hi,

    why do want to disable the optimization ? How many gates do you have in your design ?

    Kind regards

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

    --- Quote Start ---

    Hi,

    maybe one design could be more optimize by the synthesis tool.

    Kind regards

    GPK

    --- Quote End ---

    in that case, can I unable the optimization in the synthesis tool ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    yes. only using AND gates and XOR gates

    --- Quote End ---

    Hi,

    maybe one design could be more optimize by the synthesis tool.

    Kind regards

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

    LEs are not logic gates, so even if the other version uses less logic gates, the design might be more complicated for LE synthesis.

    Does the design have only logic gates?