Forum Discussion

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

SOPC Builder, Ethernet, Custom Design and Memory

Hello,

I have a development kit : StratixIII EP3SL150N

FPGA: StratixIII EP3SL150F1152C2N.

I designed a system which include a NCO. ( NCO MegaCore v9.0 )

This NCO generate a digital sinewave which depend on a "Frequency Control Word" input of the NCO.

I want to change the value of the "Frequency Control Word" (FCW) without the need to load the design in the FPGA again. ( "real time" control )

So, I created a soft on my PC to enter a new FCW and send it to the NCO by Ethernet (link between my PC and the board only). I have used SOPC Builder to implement the Triple Speed Ethernet in the FPGA.

I need your help to the following :

I don't have idea how to connect my NCO with the Triple Speed Ethernet.

I don't know how they must interact.

I read guide about SOPC builder and Triple Speed Ethernet and Nios 2 to have a better idea but I have not .

If you need more precision don't hesistate.

Sorry if my english,

Best Regards,

Jeremy.

2 Replies

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

    Hi,

    >I don't have idea how to connect my NCO with the Triple Speed Ethernet.

    I never used the NCO, but it seems to have an Avalon-MM Interface

    So they won't be connected together but each of the TSE and NCO will interact with NIOS.

    A way of doing it is a server socket running on NIOS that will take orders from the computer, then the Nios program will access the NCO registers.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    ethernet is kind of overkill to just update the NCO frequency. you can make a small Nios + JTAG UART + PIO system. add some code to interpret some input ASCII from the JTAG UART into a binary vector, and send that to the PIO. the PIO is then connected to the phase increment input of the NCO.