Forum Discussion
Need help : implement Gigabit Ethernet
Hello,
I'm new on this forum, so I hope that I'll be clear with my question. I'm currently working on Cyclone III FPGA Development Kit with the EP3C120F780C7N. For my project I have to etablish a communication between my PC and my board with the Gigabit Ethernet. I have to send to the board datas to configure a camera and then send the pixels to the PC for a display. My PHY device is Marvell 88E1111 so I try since two weeks to configure it with RGMII interface. My problem is that I don't know how to use the TripleSpeedEthernet 9.1 either with MegaWizard Plug-In Manager (how to link all the I/O) or with SOPC (where I'm a total beginner). Can someone help me and explain me how to use these functions or how to begin (maybe a tutorial exists with v9.1sp1) to advance in my project ? Thanks in advance.36 Replies
- Altera_Forum
Honored Contributor
i edit my post sorry
so they are both on 255.255.255.0 and i know this : board : ip 192.168.1.234 Subnet Mask : 255.255.255.0 Gateway : 192.168.0.1 PC : IP : 192.168.1.17 subnet mask : 255.255.255.0 "passerelle par defaut" : 192.168.1.1 DHCP 192.168.1.2 DNS 192.168.1.2 192.168.1.1 "serveur principal wins" 192.168.1.2 i saw that on the cmd window by typing "ipconfig /all" sorry for some expressions but i'm french and don't know the exact translation and in fact the ip adress and the subnet mask change when i plus my pc to the board and the new ip is 192.168.20.117 and the subnet mask becomes 255.255.0.0 so maybe that's the problem do i have to fix the same subnet on both, i mean PC : ip : 198.168.20.117 subnet mask 255.255.0.0 and for my board these for example : ip 192.168.20.234 SN mask : 255.255.0.0 thanks you - Altera_Forum
Honored Contributor
The IP addresses of the PC and your board, ANDed with their network masks must match.
As an example if the network mask is 255.255.255.0, 192.168.0.1 and 192.168.0.2 are on the same subnet, but 192.168.0.1 and 192.168.1.2 aren't. subnet on wikipedia (http://en.wikipedia.org/wiki/subnetwork) - Altera_Forum
Honored Contributor
my board and my pc haven't got the same ip that't sure,
yes both have the same subnet adresses "255.255.255.0" - Altera_Forum
Honored Contributor
You couldn't even see the ARP request on Wireshark? Then the problem must come from your PC. It could be a routing problem. Did you set up your PC IP address on the same subnet than your board?
- Altera_Forum
Honored Contributor
when i tried ping or telnet, Tx led doesn't blink and sometimes Rx led blinks but not necessery with the request from my pc
i installed wireshark but couldn't see any transaction between my board and the pc then i tried o plug the board and my pc both, again without success just for you to know, i would like to do this architecture, maybe you can give some advices (and i think i'll use sdram rather than sram) thanks in advance - Altera_Forum
Honored Contributor
You can try first to use a 'ping' command to send packets to your board and see if you get any reply. Check also the transmit an receive LEDs on the board to see if any packets are received or transmitted.
I'd suggest to install Wireshark on your PC to see all the packets that go on the Ethernet interface. When you ping your board, you should see the following packets: Your PC -> Broadcast : ARP request Board -> Your PC: ARP reply Your PC -> Board: ICMP echo request Board -> Your PC: ICMP echo reply - Altera_Forum
Honored Contributor
ty for all your advices daixi, it was only a problem with power now it's working
but when i try to use telnet with "putty" fixing my <ip address> and port "30" it told me that no host is connected maybe "putty" consider my board should be the host but in fact it is the peripheral, have you got an idea for begin my communication ? ps : i'm currently trying to follow the step from http://www.altera.com/literature/tt/tt_nios2_tcpip.pdf to begin a communication - Altera_Forum
Honored Contributor
I can't find anything wrong... Is there on-chip memory in your project? If yes you can try and compile a memory test application (it is one of the templates) using a reduced C library, put the .text and .bss sections in the on-chip memory, and have it test the DDR memory.
It should tell you if there is a problem with your board. - Altera_Forum
Honored Contributor
ty for your response daixi
i recapitulate : 1) i launch Nios II IDE 9.1 2) with the tab run, i programm the FPGA with the .sof from the devkit 9.0.2 3) i create my project using the SSS as the tutorials frome the kit tells me 4) i build the project with success 5) i do Run As > Nios II Hardware and the i get the message as my previous message i checked in SOPC Builder and 0xC000000 correspond with the base address of altmemddr_bridge : an "Avalon-MM Clocking Cross Bridge" as the attached picture show you - Altera_Forum
Honored Contributor
There could be a lot of reasons why it fails at that point. What is located at 0x0c000000 in your system? Is it the DDR ram?