Forum Discussion

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

Actual maximum data rate of Nios w/ 10/100/1000 TSE MAC on Stratix IV

Dear all,

Currently I'm developing a Gigabit Ethernet Interface project on Stratix IV which employs Nios (uCOS-II) with 10/100/1000 TSE MAC. This interface project is dedicated to forward data from several DSP boards to a PC via gigabit ethernet connection.

The current progress, the data rate of my Stratix IV is only 20 Mbps. I'm wondering why the data rate is very slow.

From the Altera 440 app.note, it is written that the data rate of TCP connection using 10/100/1000 TSE MAC on Stratix II is about 116 Mbps (Have anyone tried to implement this app.note? :confused:).

I've been trying to implement some design tips in this app.note. However, when I tried to use faster packet memory (using onchip memory instead of DDR3 to store my data packet, and making some modifications in ipport.h as written in app.note 440), my Nios software stopped. It stopped before entering the main program (from the Nios console, it only showed this text "==== Software License Reminder ====" , which is the initial part of the program).

Do anyone know what causes this problem? :confused:

Please help me :( I really appreciate any helps or comments. Thanks..

15 Replies

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

    Hey Guys,

    I'm about to do the same thing with a cyclone 3/4. What data rate did you guys actually achieve. I have got a basic design done that runs a TCP and UDP task on a Nios running uCos and the niche stack.

    I was hoping worse case scenarios to get that to trasmit 96Mbps + ovrhead.

    What did you guys achive with the cyclone 3 and did you use the niche stack?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    we used an adapted version of the offset UDP example and nichestack.

    TCP IP for control and UDP for stream.

    And we are filling the bus, so 92-96 Mb.

    Works great, the first products has already shipped.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thanks for the reply agdepus.

    • For UDP, by offset example you mean this example?http://www.alterawiki.com/wiki/nios_ii_udp_offload_example?

    • Correct me if i'm wrong: You use the Nios, niche and uCOS for the TCP. For UDP you bypass all that and used just HDL?

    • What did you adapt? My undertsanding was that the the offload example fully bypassed the Nios, have you mixed it? I've still got to understand this fully though.

    • Was the UDP offload example difficult to implement? Do you have any tips or example code to lessen my learning curve?

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

    --- Quote Start ---

    We did get 900 mbs using the offset UDP example on a cyclone III.....

    Ask you rep for the design.

    Daixiwen probably know about the design

    --- Quote End ---

    Hi agdepus and Daixiwen,

    I have ported udp offload example on DE2-115 board(Cyclone IVE) and speed I am achieving is 231 Mbps. I want to achieve speed of around 700 Mbps but When I increase the speed of PLL clock feeding sys(100 MHz)/pio(35 MHz), .elf file failed to download on the board (.sof file have no problem with downlaoding). I have used fastest Nios in the design.

    currently I am working on time constraint.

    What are the other factors which have to be considered to achieve speed around 700 Mbps?

    why .elf file failed to download on the board after increasing speed?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    Im a bit rusty in this field (do not much design these days), but you may not expect a fully working offloader without proper constraining the design. Especially the 100MHz clock can be a stretch for the Nios.

    If the logic cannot handle the speed the your elf will fail.