Forum Discussion

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

write to segment (multiple locations) of memory

Please see post# 6 for a better formulation of the problem.

------

Hi!

I have a question about the memory blocks that are available on the Altera FPGA chips.

Is it possible to write the same data to multiple locations of a memory block?

Example:

I want to write the value 7 to locations 0, 1, 2, and 3 of the memory block.

I want to do it in one clock cycle.

It is possible to do in ASIC with a custom memory controller.

Is it possible in FPGA?

Alex

12 Replies

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

    To add to the discussion...

    [1]

    Do these memory blocks provide write_enable signals for each word?

    This would allow me to write a controller that does this easily.

    [2]

    Also, could the Megafunction feature help with this?

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

    Some memories with multiple ports(dual,quad) allow for that but not single port memory. You can also put your data on 4 lanes on a wide memory to rd/wr in one clock cycle.