Documente Academic
Documente Profesional
Documente Cultură
64
Figure 7 shows commands given by FPGA through SPI 1000 bytes are sent to W5500’s transmission buffer and
module and its reply by W5500. SPI frame is recorded with W5500 sends these data packets to PC. Master controller
MSO 4104B and corresponding event table is generated. In starts writing commands in socket registers of W5500 and
figure 7, (80) hex is written at offset address (0000) hex to checks for free size of W5500's receiver buffer. Time
reset common registers. Third byte (04) hex is control byte between first command and command given to check free
which depicts write operation. In second line of MOSI MAC size of receiver buffer of W5500 is called initialization time
address of PC (DEADBEEFFEED) hex is written in common which is 60µs. Time taken to transmit 1000 bytes of data is
register having offset address (0009) hex. Similarly source 190μs. Hence total time taken to transmit data to PC is
gateway address, source IP address and source port number 250μs. So we can transmit data through UDP to a remote PC
is configured on W5500 by FPGA. After final configuration at the rate of 32Mbps as shown in equation (1). Table I
of ports, sockets and buffers, FPGA sends command to shows total time taken to transmit 1000 bytes of data from
W5500 to initiate the UDP data transmission process. FPGA to PC.
1KByte of simulated data packets are transmitted by FPGA
to W5500’s transmission buffer and W5500 transmits these Data Rate = (1000×8) bits÷250µs =32Megabits/s (1)
data packets to PC through UDP which is recorded and
verified by Packet Sender software tool (Version V_5_3_1). Table I. Timing Analysis
65
transmission and receiver buffers, 3% for Input/output, 1% would like to extend sincere thanks to Shri Hari Babu
for LUT and 1% for flip flops. Srivastava, Director LASTEC, DRDO, for allowing us to
work at such a prestigious organization.
REFERENCES
[1] M. R. Mahmoodi, S. M. Sayedi and B. Mahmoodi, “Reconfigurable
hardware implementation of gigabit UDP/IP stack based on spartan-6
FPGA”, Information Technology and Electrical Engineering
(ICITEE) 2014 6th International Conference on, pp. 1-6, 2014.
[2] “W5500 ethernet controller datasheet”, December 2014. [Online
document]. Available :http://www.wiznet.io/product-item/w5500.
[Accessed: April 2018]
Fig.9. FPGA Utilization Report on Vivado [3] Goran Horvat, Damir Sostaric, Zoran Balkic “ Cost-effective Ethernet
communication for low cost microcontroller architecture”,
International Journal of Elctrical and Computer Engineering Systems,
vol.3, November 1,2012.
In contrast with FPGA based design, Microcontroller
[4] “Xilinx 10Gbps TCP/IP stack datasheet”, February 2015. [Online].
based ethernet solutions can also be implemented using
Available:http://www.forums.xilinx.com/xlnx/attachments/xlnx/CON
inbuilt ethernet controller [10] or by interfacing with N/11601/1/TCPIPDatasheet_v1_060315.pdf. [Accessed: April 2018]
external ethernet controller like W5500. In case of [5] F. Leens, “An introduction to I2C and SPI protocols,” IEEE
microcontroller with inbuilt ethernet controller, TCP/UDP Instrumentation & Measurement Magazine, pp. 8-13, February 2009.
software stack/firmware is used. While in case external [6] “A deeper look At UDP/IP protocol”, 28 February 2017. [Online].
controller (W5500) with ATmega328P [11-12] operating at Available:http://www.sionsemi.com/whitepapers/udp-ip-
overview.html. [Accessed: April 2018]
maximum clock frequency is 16 MHz, data rate only up to
[7] “ZynqTM evaluation and development hardware user's guide”, 27
250 Kilo Bytes per second (KB/s) can be achieved over SPI January 2014. [Online]. Available :www.zedboard.org. [Accessed:
interface. April 2018]
Thus FPGA based design offers higher data transfer rate [8] “Vivado design tool (2015.1)”, April 2015. [Online]. Available
:http://www.xilinx.com/ . [Accessed: April 2018]
with external ethernet controller (W5500) in comparison
[9] “Packet sender software tool”, February 2017. [Online]. Available
with microcontroller based approach. :https://github.com/dannagle/PacketSender/releases?after=v5.3.1.
[Accessed: April 2018]
VI. CONCLUSION [10] Shang He, “Design and implement of an embedded ethernet system
In this paper FPGA based W5500 ethernet controller based on LPC2368 microprocessor”, Computer Application and
System Modeling (ICCASM), vol.8, pp.671-675, 2010.
interface design module solution for Ethernet
[11] “ATmega328P Datasheet”, May 2009. [Online]. Available
communication as alternative for TCP/UDP Software Stack :http://www.microchip.com/. [Accessed: April 2018]
has been developed and implemented. In this experiment [12] Wang Mei, Zhao Ruimei, Duan Huiting, “Design and realization of
FPGA device has fundamental clock frequency of 100MHz the embedded ethernet communication system based on ARM”, 2nd
and W5500 device supports clock frequency up to 80MHz. International Symposium on Information Science and Engineering
(ISISE), pp.287-289, 2009.
SPI clock (SCLK) generated from the FPGA board is
50MHz and this enables user to transmit data at the rate of
32 Mbps. As the Ethernet controller supports clock
frequency up to 80MHz the data transmission rate can be1.
further increased by increasing SPI clock from 50MHz to1.
80MHz. FPGA based 50 MHz SPI interface design offers
better utilization of W5500 as compared to ATmega328P
microcontroller based design. This design also offers low
cost FPGA based TCP/UDP design module as an alternative
to commercial available TCP/UDP IP core for embedded
system development. Further development can be done by
incorporating TCP mode support to W5500 ethernet
controller interface design in addition to UDP mode. This
will guarantee end to end delivery of each data packet at the
cost of speed. It is observed that the proposed system has
large flexibility to implement different Ethernet based
controller in real time. Security is an important issue related
to embedded system whenever data are transmitted over a
network. Any malicious content can infect our system and
corrupt our data. Proper security related protocol can be
implemented at upper layer of IP. We still need to work in
the area where appropriate security can be guaranteed.
ACKNOWLEDGEMENT
We are obliged to Ms. Sandhya Bajaj, Group Head EEG,
LASTEC, DRDO for giving us opportunity to work on
LASTEC projects as well as for her fruitful suggestions. We
66