Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

DHCP -DORA using FPGA

Status
Not open for further replies.

aravind21tech

Newbie level 4
Joined
Jul 28, 2014
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
36
Hi all,

Objective:
My objective is to build an FPGA based UDP/IP core which is capable of trans&receiving UDP messages over ethernet.

Completed work:
I successfully transmitted locally a UDP packet to PC from my FPGA board through a D-Link modem/router.

Problem:
But I am not able to receive any data in my FPGA board. I later found that my FPGA board needs to request an IP from router using DHCP-DORA.
I tried in verilog the complete DHCP-DORA process in wikipedia. But it is not working
Can any one give me a better example and explain DHCP packet structure

Thanks in advance,
Aravind
 

ask your question more specifically.
define your network, board, your protocol stack(physical, data link, ip,tcp).
generally if you use static IP there is no need for implementing DHCP client.
 

ask your question more specifically.
define your network, board, your protocol stack(physical, data link, ip,tcp).
generally if you use static IP there is no need for implementing DHCP client.

Sure Miralipoor,

FPGA: Spartan-6 lx16 cgs324
Ethernet PHY IC: smscLAN8710a
My board is Digilent nexys-3.

I want to receive a UDP payload in my FPGA board:
I used the following packet format:

Ethernet preamble/SFD (synchronizer): 55 55 55 55 55 55 55 D5
Ethernet destination address: 00 10 A4 7B EA 80
Ethernet source address: 00 12 34 56 78 90
Ethernet type: 08 00 (=IP)
IP header: 45 00 00 2E B3 FE 00 00 80
IP protocol: 11 (=UDP)
IP checksum: 05 40
IP source (192.168.0.4 my PC): C0 A8 00 04
IP destination (192.168.0.5 my FPGA board): C0 A8 00 05
UPD source port (1024): 04 00
UPD destination port (1024): 04 00
UDP payload length (18): 00 1A
UPD checksum: 2D E8
UDP payload (18 bytes): 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11
Ethernet checksum: B3 31 88 1B

These are my assumptions please correnct me if I am wrong
1. If I dont implement a DHCP client, then no IP address is allocated for my FPGA board
2. OK, my question is if the modem receive a packet to be sent to IP (192.168.0.5) where will it route the packet?

Thanks in advance to Any solution to my problem EthernetPlutoSwitch.jpg
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top