Forum Discussion

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

Data from FPGA to host

Hi,

I have a DE0-nano board and I compute data (only 4 bits generated at about 10MHz) and I'd like to communicate it to the host cpu through the USB-blaster so programs could read it. I've read this (http://www.alteraforum.com/forum/showthread.php?t=32354) and there's instructive information but it's a bit old and maybe there exist other ways.

I thought about a FIFO that would be written by the FPGA then read by the host through the USB link. Is it possible? Have I to use a virtual JTAG component?

Thanks for your help.

85 Replies

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

    --- Quote Start ---

    Yes I will take the time to learn but I don't understand everything.

    --- Quote End ---

    Neither do I :)

    --- Quote Start ---

    Please tell me what a BFM is exactly.

    --- Quote End ---

    A BFM is a bus functional model. Its a simulation-only component that allows you to generate standardized bus transactions, eg., Avalon-MM master transactions in this case.

    --- Quote Start ---

    And tell me what I should do (generate VHDL simulation files, create a simulation environment, look with Signaltap at what the stimulus should be...)

    --- Quote End ---

    Sorry, only you can do that, its your project.

    Cheers,

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

    --- Quote Start ---

    Sorry, only you can do that, its your project.

    --- Quote End ---

    That's not what I wanted to say.

    I just wanted to know IF I have to write all that.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    That's not what I wanted to say.

    I just wanted to know IF I have to write all that.

    --- Quote End ---

    Yes, all projects should have the synthesizeable HDL code, a simulation for that code (or at least the custom components used by that code, eg., custom Avalon-MM slaves), and hardware verification.

    Without these components, you have not really "designed" and "verified" anything.

    Cheers,

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

    Now I still have problems configuring SignalTap II:

    as stated in posts# 54 to# 57 I can't see the "first" edge of the trigger, even when waiting for a long time after starting the acquisition and before starting the process. Surely my configuration is bad but I can't find the problem.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Now I still have problems configuring SignalTap II:

    as stated in posts# 54 to# 57 I can't see the "first" edge of the trigger, even when waiting for a long time after starting the acquisition and before starting the process. Surely my configuration is bad but I can't find the problem.

    --- Quote End ---

    Try a different solution then.

    For example. Rather than trigger off your asynchronous signal, trigger off a counter inside the FPGA. Have that counter enabled by your external signal, but first make sure that external signal is synchronized to the clock used by SignalTap II and the counter. Then trigger off the counter, eg., a count of 1.

    Doing this may make you realize what you were doing wrong earlier.

    Cheers,

    Dave