Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discussions

HOW TO INTERFACE BETWEEN ETHERNET(CYCLONE III) AND PCs(Labtop)

Altera_Forum
Honored Contributor II
6,833 Views

Hi everybody!!! 

 

I'm studying with a topics "Interface between Ethernet of Cyclone III and computer(PC or labtop)" It's means that I must "ping IP and Relay from Cyclone's Ethernet".  

 

I don't know how to practice that i use Verilog language. 

 

it's difficult to me!!! 

 

Help me everybody
0 Kudos
53 Replies
Altera_Forum
Honored Contributor II
728 Views

As I said already at least 3 times, it depends on your DHCP_CLIENT define. 

When I asked you the FPGA configuration I didn't mean the kit, but the actual configuration that you uploaded into the FPGA.
0 Kudos
Altera_Forum
Honored Contributor II
728 Views

 

--- Quote Start ---  

No, the information here: 

 

The dynamic host configuration protocol (dhcp) is a network configuration protocol for hosts on (IP) networks. Computers that are connected to IP networks must be configured before they can communicate with other hosts. The most essential information needed is an ip (http://en.wikipedia.org/wiki/ip_address), and a default route and routing prefix. DHCP eliminates the manual task by a network administrator. It also provides a central database of devices that are connected to the network and eliminates duplicate resource assignments. 

In addition to IP addresses, DHCP also provides other configuration information, particularly the IP addresses of local (dns) (http://en.wikipedia.org/wiki/name_server), network boot servers, or other service hosts. 

 

 

all right?:mad: 

--- Quote End ---  

 

 

Wikipedia is almost everytime right.
0 Kudos
Altera_Forum
Honored Contributor II
728 Views

Okey thanks both! 

 

I had understood DHCP how, with your linking has sent on wiki, It's really far away my topic.
0 Kudos
Altera_Forum
Honored Contributor II
728 Views

Search the triple speed ethernet tutorial guide of altera, there are examples you may use...

0 Kudos
Altera_Forum
Honored Contributor II
728 Views
0 Kudos
Altera_Forum
Honored Contributor II
728 Views

thanks so much. 

 

I had done many way. I'm define IP following and saving named(ip.h): 

 

/* 

* ip.h 

* Created on: Jan 13, 2013 

* Author: Lam Van Trung 

*/ 

 

# ifndef IP_H_ 

# define IP_H_ 

 

# include "alt_iniche_dev.h" 

# include "includes.h" 

# include "ipport.h" 

# include "tcpport.h" 

 

 

int get_ip_addr(alt_iniche_dev* p_dev, 

ip_addr* ipaddr, 

ip_addr* netmask, 

ip_addr* gw, 

int* use_dhcp) 

IP4_ADDR(&ipaddr, 10, 1, 1 ,3); 

// Assign the Default Gateway Address 

IP4_ADDR(&gw, 10, 1, 1, 254); 

// Assign the Netmask 

IP4_ADDR(&netmask, 255, 255, 255, 0); 

*use_dhcp = 0; 

 

# endif /* IP_H_ */ 

 

But, there are numerous error occur.  

 

The NIOS report that"error line 0". 

 

please help me ? 

any help me will be better for me???
0 Kudos
Altera_Forum
Honored Contributor II
728 Views

What do you mean by "the Nios"? We need to know what you were doing, where you got the error message, and the full error message

0 Kudos
Altera_Forum
Honored Contributor II
728 Views

TO_BE_DONE

0 Kudos
Altera_Forum
Honored Contributor II
728 Views

Yeah, you're very close to the finish. Very! :D

0 Kudos
Altera_Forum
Honored Contributor II
728 Views

In main() you need to start the operating system, the Interniche TCP/IP stack, and one or several threads with your application. 

You should start with the Webserver or Simple Sockets Server examples to see how it can be done.
0 Kudos
Altera_Forum
Honored Contributor II
728 Views

TO_BE_DONE

0 Kudos
Altera_Forum
Honored Contributor II
728 Views

the error message you wrote doesn't give any information about the error. You need to tell us what is written before, which is the real error message. 

by the way your main function is still empty, so it won't do anything when you'll run the application.
0 Kudos
Reply