You are on page 1of 8

EEP775 Telecom Networks Lab

Assignment7
SHRIKANT DUBEY
2012JTM2421
March 13, 2013

Contents
1 PROBLEM STATEMENT:

2 ASSUMPTION :

3 LOGIC USED:

4 SOURCE CODE:

5 OUTPUT SNAPSHOT:

Chapter 1
PROBLEM STATEMENT:
1. You have to develop an application on EDK using HYPERTERMINAL.

User will type anything on HYPERTERMINAL.


The EDK kit will echo back the same thing back to hyperterminal.
2. You have to develop another application on EDK using ethernet port.

User will send IP packets generated from EDK kit.


The packets will be sent of size 64 bytes to 1514 bytes.
The sent packets will be captured in Wireshark and pcap file generated.

Chapter 2
ASSUMPTION :
1.Only part 1 is done.
2. Only one character can be entered at a time.

Chapter 3
LOGIC USED:
First step is to open the Xilinx platform studio.
Second step is to creat new project folder.
Then create a new design as Base system builder.
Use XUP Virtex-II specifications.
Take the PowerPC as the processor.
Now take USART as IO device set baud rate as 115200 with memory
size as 64 Kb.
Creat the Netlist and bitstream and then download bitstream to EDK
kit.
Make a new connection in Hyperterminal.
Set baud rate as 115200, Data bits and stop bits as 2.

Chapter 4
SOURCE CODE:

Xilinx , Inc .
XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION AS IS AS A
COURTESY TO YOU. BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
ONE POSSIBLE
IMPLEMENTATION OF THIS FEATURE, APPLICATION OR
STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATIO
IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE
FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION
XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO
THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO
ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE
FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS FOR A PARTICULAR PURPOSE.
/
/

X i l i n x EDK 1 0 . 1 EDK K. 1 5
This f i l e i s a sample t e s t a p p l i c a t i o n
This a p p l i c a t i o n i s i n t e n d e d t o t e s t and/ o r i l l u s t r a t e some
f u n c t i o n a l i t y o f your system . The c o n t e n t s o f t h i s f i l e may
vary depending on th e IP i n your system and may use e x i s t i n g
IP d r i v e r f u n c t i o n s . These d r i v e r s w i l l be g e n e r a t e d i n your
XPS p r o j e c t when you run t he Generate L i b r a r i e s menu item
i n XPS .
5


Your XPS p r o j e c t d i r e c t o r y i s a t :

C: \ P r o j e c t s \ p r o j 2 \
/

// Located i n : ppc405 0 / i n c l u d e / xp a ra me t er s . h
#i n c l u d e xp a ra me t er s . h
#i n c l u d e s t d i o . h
#i n c l u d e x b a s i c t y p e s . h
#i n c l u d e x g p i o . h
#i n c l u d e g p i o h e a d e r . h
#i n c l u d e x u a r t l i t e . h
#i n c l u d e x u a r t l i t e l . h
//====================================================
i n t main ( v o i d )
{

p r i n t (\ n ) ;
p r i n t(START OF PROGRAM

/
P e r i p h e r a l S e l f T e s t w i l l not be run f o r RS232 Uart 1
b e c a u s e i t has been s e l e c t e d as t he STDOUT d e v i c e
/
// Xuint8 data ;
// data = XUartLite RecvByte (XPAR RS232 UART BASEADDR ) ;
// XUartLite SendByte (XPAR RS232 UART BASEADDR, data ) ;
// p r i n t ( h e l l o world \ r \n ) ;
// p r i n t (\ r \n \ r \n ) ;
while (1){
p r i n t (\ r \nPLEASE ENTER A CHARACTER\
u n s i g n e d char c h r ;
c hr=XUartLite RecvByte (XPAR UARTLITE 0 BASEADDR ) ;
p r i n t ( YOUR ENTERED CHARACTER IS \ r \n ) ;
x i l p r i n t f (%c \ r \n , c h r ) ;
}
return 0;
}
6

Chapter 5
OUTPUT SNAPSHOT:
Hyperterminal

You might also like