Forum Discussion

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

Carry-Select on Stratix

Hi,

I've come up with a design to implement Carry-Select adder on stratix logic block (as shown in the schematic attached). I want to implement it using low-level primitives, but the primitives are somehow confusing; i can't see how carry_sum primitive can be useful for example..

i also tried to use the starix_lcell component but there are two problems:

- the component is again unclear and i'm not sure if it works for "arithmetic" mode

- and maybe more importantly, i guess components like stratix_lcell or any other one from sim_lib are just for having a percise simulation and not implementation of logic

i looked @ the previous forums available but i didn't get a clear answer..i guess there should be some components and a straight forrward way to implement logic in the LEs and LABs as presented in the Stratix handbook..

i've reviewed Stratix cookbook too but it didn't help actually for following reasons:

- it's designed for stratix II and later versions not stratix itself..the structure of LEs and LABs are a little different

- the codes available in the cookbook examples are mostly behavioral description and they don't use primitives..

i'm new with using primitives in Altera, but i'm not new to the topic and i tried different ways..so i need a little more help than just being referred to cookbook or being suggested generally to use carry_sum for example..an example of using LEs and LABs of stratix in arithmetic mode would be great if u can provide me some..

now i'm just testing various behavioral codes to see if i luckily find a way for compiler to realize what i want..

regards,

babak

2 Replies

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

    --- Quote Start ---

    i guess components like stratix_lcell or any other one from sim_lib are just for having a precise simulation and not implementation of logic

    --- Quote End ---

    I think you're wrong in this point. If you look to the Quartus provided primitive libraries, you have simulation (in folder eda/simlib) and synthesis (in folder eda/synthesis) variants. The stratixii_lcell_comb primitive, that's used in some cookbook arithmetic examples is from the latter. These low level primitives strongly depend on the respective FPGA family structure and are, as fare as I see, partly undocumented. You possibly can extract some information from the corresponding simulation libraries.

    Personally, I didn't yet need to use core primitives in designs, so I fear, I can't help you with detail problems.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    oki, tnx for responding anyway..plz let me know if some other time u come up with some new ideas or information..