Forum Discussion

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

altsyncram 1 word

GUI doesn't allow one to select RAM word size to one. Do you if it's even possible to generate a RAM containing only one word?

3 Replies

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

    It's not really a ram with only a single entry. It's just a register.

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

    --- Quote Start ---

    It's not really a ram with only a single entry. It's just a register.

    --- Quote End ---

    Any number of storage elements can be in ram or registers or just wires if constant.

    The designer must be given choice and freedom to select ram blocks or fabric registers.

    Though I wouldn't want to waste 1 ram block for few storage elements but again the tool must be helpful to choose the right elements.

    This sounds paradoxical but it does imply how fpga terminology and resource can get so vague.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yeah I agree with kaz. I disagree with tricky that register and rams are the same (when I choose to use only one entry). Register has faster access time. I keep them aside for application logic. RAMs take longer to respond. I keep them aside for actually storing stuff and retrieving them later.