Forum Discussion

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

uCos with a DM9000A

Hi Everyone

Has anyone ever used uCos TCP/IP stack with the DM9000A ethernet MAC+PHY (Davicom) ? This is for the DE2 board sold to universities by Altera.

If anyone has experience on interfacing ano other MAC+PHY chip (other than the LAN91C111), I'd like to ear about what's involved in getting seomthing like this up and running.

With Regards

Nir

19 Replies

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

    Hello,

    I have reported the problem to Altera that forwarded it to Terasic. I received the following suggestions. Unfortunately I could not test it yet.

    We don't have any clue on this situation, but I think this is Quartus II 6.0

    bug. The Avalon bus timing is difference between QuartusII 6.0 and 5.1.

    1. If you use Quartus II and Nios II 6.0, please upgrade DE2_project from

    the following link.

    terasic link (http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=39&no=95)

    2. You can use DE2_NET project to test your Ethernet. This test program was

    in the DE2 CD-ROM. Please refer the user manual page 63.

    3. Please download the new version DE2 CD-ROM from the next link, this

    version was fully compatible with Quartus II 6.0 and Nios II 6.0.

    http://www.terasic.com/downloads/cd-rom/de...em_v1.4_new.iso (http://www.terasic.com/downloads/cd-rom/de2/de2_system_v1.4_new.iso)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I would be very glad to have a copy of the patch and how to apply it.

    We have an urgent need for this. We use Quartus 5.1 so the 6.0 should not apply.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello again, sorry for the delay. I have uploaded fixed files etc and instructions on how to apply here:

    http://sp4m.net/de2_web_fix.zip (http://sp4m.net/de2_web_fix.zip)

    I have tested the TCP/IP performance with a simple echo server running on the board and a corresponding app running on my PC (connected directly to the board). I get about 550KB/s each way. With traffic going only one way from the board to the PC (just ACK packets going the other way), I get about 3MB/s. The HTTP server example works, but seems a little slow. I haven't looked into why this is. I have not tested DHCP, I'm using a static IP.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The patch solves my problem.

    We see some RX buffer overflow but it is quite unfrequent. We lost 7 packets on 51,000 packets with a ping with 1024 byte long packets. It is good enough for our application.

    Thank you very much Dave. Very impressive work. I hope Terasic will provide an updated version of their DE2 CD very soon. We didn't receive any useful help from them !
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by dave@Nov 16 2006, 07:36 PM

    hello again, sorry for the delay. i have uploaded fixed files etc and instructions on how to apply here:

    http://sp4m.net/de2_web_fix.zip (http://sp4m.net/de2_web_fix.zip)

    i have tested the tcp/ip performance with a simple echo server running on the board and a corresponding app running on my pc (connected directly to the board). i get about 550kb/s each way. with traffic going only one way from the board to the pc (just ack packets going the other way), i get about 3mb/s. the http server example works, but seems a little slow. i haven't looked into why this is. i have not tested dhcp, i'm using a static ip.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19480)

    --- quote end ---

    --- Quote End ---

    I have the ver 1.4a terasic code and have attempted in stall your patch; however, it does NOT seem to work with this version.

    1) DE2_NIOS.V does not exist (DE2_WEB.V)

    2) After making the changes the DM9000A interface nolonger has a 25MHz clock driving it. Therefre, it no longer works at all.

    Any help would be appreciated.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by mikehsr+jan 2 2007, 04:30 pm--><div class='quotetop'>quote (mikehsr @ jan 2 2007, 04:30 pm)</div>

    --- quote start ---

    <!--quotebegin-dave@Nov 16 2006, 07:36 PM

    hello again, sorry for the delay. i have uploaded fixed files etc and instructions on how to apply here:

    http://sp4m.net/de2_web_fix.zip (http://sp4m.net/de2_web_fix.zip)

    i have tested the tcp/ip performance with a simple echo server running on the board and a corresponding app running on my pc (connected directly to the board). i get about 550kb/s each way. with traffic going only one way from the board to the pc (just ack packets going the other way), i get about 3mb/s. the http server example works, but seems a little slow. i haven&#39;t looked into why this is. i have not tested dhcp, i&#39;m using a static ip.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19480)

    --- quote end ---

    --- Quote End ---

    I have the ver 1.4a terasic code and have attempted in stall your patch; however, it does NOT seem to work with this version.

    1) DE2_NIOS.V does not exist (DE2_WEB.V)

    2) After making the changes the DM9000A interface nolonger has a 25MHz clock driving it. Therefre, it no longer works at all.

    Any help would be appreciated.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20320)</div>

    [/b]

    --- Quote End ---

    I assume you mean the DE2_WEB_QII_60.rar file available from http://www.terasic.com.tw/cgi-bin/page/arc...goryno=39&no=30 (http://www.terasic.com.tw/cgi-bin/page/archive.pl?language=english&categoryno=39&no=30).

    The patch should work (I haven&#39;t tried) if you apply as in the readme, but also remove from DE2_WEB.v the lines passing the 50MHz clock input and ethernet clock output to the dm9000a interface module (you&#39;ve probably already done this) and add a line to drive the ethernet clock:

    assign ENET_CLK = CLK_25;

    (CLK_25 is a 25MHz clock generated by the SDRAM_PLL)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Has anyone been able to build the webserver example using EDS6.1 & nichestack ?

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

    Thanks for your question. Could you please be more specific as to which World Bank publication you are looking at, which years you say the forecast differences are "huge", and if you are referring to the world output aggregate based on PPP exchange rates or market exchange rates? From there, we might be able to provide you with more information.

    Best,

    _____________________________________

    Website I designed for paydayloan (http://www.paydaytown.com) company.