Forum Discussion

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

Traffic Generator

Is there a library for a packet generator in Nios II? If not, any suggestions on how to implement one?

5 Replies

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

    Use an ALTSYNCRAM as a ROM block and initialize it with a suitable mif file with the bytes that you can cyclically read out from the ROM. It works well and it is simple to implement. ;)

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

    hm...I was more thinking along the lines of a block that would output packets (with time stamp, src and dest info, and payload) following a certain size and time distribution.

    Where can I get the ALTSYNCRAM?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You can get ALTSYNCRAM from altera mega-function wizard available in Quartus II

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

    Open Quartus II, Open new Block diagram / schematic file, double click anywhere on block diagram window, a symbol window will be appeared, then write 'altsyncram' (without comma) in name field and click ok.