Forum Discussion

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

One Line 10K LE ???

hello, I am writing Cyclon III application and came to this strange thing, the falloing lines take 10K LE from the FPGA. i cant tell why, its not that commplicated to calculate...

The rebellious line:

else if ((LastPoint < YPixel && Plot[XPixel] > YPixel) || (LastPoint > YPixel && Plot[XPixel] < YPixel))

.....

LastPoint ,YPixel and all other vars are 10bits...

(this line is just connecting dots in graph)

4 Replies

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

    Not complicated, but the condition has to be checked for each array element of the array Plot individually.

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

    --- Quote Start ---

    Not complicated, but the condition has to be checked for each array element of the array Plot individually.

    --- Quote End ---

    why do you say for each element?

    LastPoint, YPixel and Plot[XPixel] are all 10x1bit elements and not arrays

    and XPixel is integer that incremented each clock
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Please show the complete code definition. The explanation is far from being clear.

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

    How big is XPixel, or more specifically, how big is Plot? If you're expecting this to be a memory and you're reading 10 bits, it's probably being put into FFs with a large mux. Just a guess though.