Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
공지
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 토론

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

Altera_Forum
명예로운 기여자 II
6,858 조회수

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 포인트
53 응답
Altera_Forum
명예로운 기여자 II
735 조회수

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 포인트
Altera_Forum
명예로운 기여자 II
735 조회수

 

--- 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 포인트
Altera_Forum
명예로운 기여자 II
735 조회수

Okey thanks both! 

 

I had understood DHCP how, with your linking has sent on wiki, It's really far away my topic.
0 포인트
Altera_Forum
명예로운 기여자 II
735 조회수

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

0 포인트
Altera_Forum
명예로운 기여자 II
735 조회수
0 포인트
Altera_Forum
명예로운 기여자 II
735 조회수

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 포인트
Altera_Forum
명예로운 기여자 II
735 조회수

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 포인트
Altera_Forum
명예로운 기여자 II
735 조회수

TO_BE_DONE

0 포인트
Altera_Forum
명예로운 기여자 II
735 조회수

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

0 포인트
Altera_Forum
명예로운 기여자 II
735 조회수

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 포인트
Altera_Forum
명예로운 기여자 II
735 조회수

TO_BE_DONE

0 포인트
Altera_Forum
명예로운 기여자 II
735 조회수

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 포인트
응답