OpenCores
URL https://opencores.org/ocsvn/tcp_socket/tcp_socket/trunk

Subversion Repositories tcp_socket

[/] [tcp_socket/] [trunk/] [README.rst] - Blame information for rev 2

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 jondawson
Chips-2.0 Demo for ATLYS Development Card
2
=========================================
3
 
4
:Author: Jonathan P Dawson
5
:Date: 2013-10-15
6
:email: chips@jondawson.org.uk
7
 
8
 
9
This project is intended to demonstrate the capabilities of the `Chips-2.0 `_  development environment. The project is targets the Xilinx Spartan 6 device, and more specifically, the Digilent ATLYS development platform. The demo implements a TCP/IP socket interface, and a simple web application. So far the demonstration has been tested on a Ubuntu Linux only.
10
 
11
Dependencies
12
============
13
 
14
You will need:
15
 
16
+ Xilinx ISE 12.0 or later (webpack edition is free)
17
+ Python 2.7 or later (but not Python 3)
18
+ Chips-2.0 (Included)
19
+ Digilent `ATLYS `_  Spartan 6 Development Kit.
20
+ Digilent ADEPT2 `utility `_
21
+ git
22
 
23
Install
24
=======
25
 
26
Clone the git the repository with git::
27
 
28
    $ git clone git@github.com:dawsonjon/Chips-Demo.git
29
    $ cd Chips-Demo
30
    $ git submodule init
31
    $ git submodule update
32
 
33
Chips Compile
34
=============
35
 
36
To compile the c code in chips, issue the following command in the project folder::
37
 
38
    $ ./atlys.py compile
39
 
40
Build in ISE
41
============
42
 
43
Edit the Xilinx variable in the scripts/user_settings to point to the Xilinx ISE install directory. Then build the design using the following command::
44
 
45
    $ ./atlys.py build
46
 
47
Download to ATLYS
48
=================
49
 
50
Power up the ATLYS, and connect the JTAG USB cable to your PC. Run the download command::
51
 
52
    $ ./atlys.py download
53
 
54
You can complete all three steps in one go using the *all* option::
55
 
56
    $ ./atlys.py all
57
 
58
Setup and Test
59
==============
60
 
61
::
62
 
63
        +----------------+                 +----------------+
64
        | PC             |                 | Digilent ATLYS |
65
        |                |   POWER =======>o                |
66
        |                |                 |                |
67
        |          USB   o<===============>o JTAG USB       |
68
        |                |                 |                |
69
        |          ETH0  o<===============>o ETHERNET       |
70
        |                |                 |                |
71
        | 192.168.1.0    |                 | 192.168.1.1    |
72
        +----------------+                 +----------------+
73
 
74
..
75
 
76
Connect the Ethernet port to ATLYS, using a crossed over Ethernet cable (which comes with the development kit).
77
 
78
Using the script, configure Ethernet port with IP address 192.168.1.0 and subnet mask 255.255.255.0. Turn off TCP Window Scaling and TCP time stamps::
79
 
80
    $ ./configure_network
81
 
82
Verify connection using ping command::
83
 
84
    $ ping 192.168.1.1
85
    PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
86
    64 bytes from 192.168.1.1: icmp_req=2 ttl=255 time=0.207 ms
87
    64 bytes from 192.168.1.1: icmp_req=3 ttl=255 time=0.263 ms
88
    64 bytes from 192.168.1.1: icmp_req=4 ttl=255 time=0.124 ms
89
    64 bytes from 192.168.1.1: icmp_req=5 ttl=255 time=0.185 ms
90
    64 bytes from 192.168.1.1: icmp_req=6 ttl=255 time=0.275 ms
91
    --- 192.168.1.1 ping statistics ---
92
    6 packets transmitted, 5 received, 16% packet loss, time 5001ms
93
    rtt min/avg/max/mdev = 0.124/0.210/0.275/0.057 ms
94
 
95
Connect to 192.168.1.1 using your favourite browser.
96
 
97
.. image:: https://raw.github.com/dawsonjon/Chips-Demo/master/images/screenshot.png

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.