Forum Discussion

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

System Console to inject commands into fifo

Hi,

could anyone please outline the steps necessary to allow me to write commands into a fifo in my design using system console or point me to a relevant tutorial?

Thanks,

3 Replies

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

    Thanks. Pretty much the conclusion I had come to. I'm guessing I'll have to create a MM slave component which simply transfers the data to the fifo external to the Qsys system. I suppose it could be done with a PIO but it would be a bit clunky.

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

    --- Quote Start ---

    I'll have to create a MM slave component which simply transfers the data to the fifo external to the Qsys system. I suppose it could be done with a PIO but it would be a bit clunky.

    --- Quote End ---

    If I want high-performance Avalon-ST streaming, I'll often use dual-ported RAM for this sort of thing; with one side of the RAM as an Avalon-MM slave, and the other as the data source to the device under test. In your case, the other port of the RAM could be an Avalon-ST component that you can use as your data source (or sink).

    The RAM allows you to inject the commands into your component on back-to-back clock cycles.

    If you want to see how the JTAG-to-Avalon-ST bridge implements an Avalon-ST command stream, see this document:

    http://www.ovro.caltech.edu/~dwh/correlator/pdf/altera_jtag_to_avalon_analysis.pdf

    Cheers,

    Dave