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

Subversion Repositories tcp_socket

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

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 4 jondawson
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. Some users have reported success using windows.
10 2 jondawson
 
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 4 jondawson
    $ git clone https://github.com/dawsonjon/Chips-Demo.git
29 2 jondawson
    $ 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 4 jondawson
Connect the Ethernet port to ATLYS, using a crossed over Ethernet cable.
77 2 jondawson
 
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 3 jondawson
    64 bytes from 192.168.1.1: icmp_req=1 ttl=255 time=0.253 ms
87
    64 bytes from 192.168.1.1: icmp_req=2 ttl=255 time=0.371 ms
88
    64 bytes from 192.168.1.1: icmp_req=3 ttl=255 time=0.382 ms
89
    64 bytes from 192.168.1.1: icmp_req=4 ttl=255 time=0.250 ms
90
    ^C
91 2 jondawson
    --- 192.168.1.1 ping statistics ---
92 3 jondawson
    4 packets transmitted, 4 received, 0% packet loss, time 3000ms
93
    rtt min/avg/max/mdev = 0.250/0.314/0.382/0.062 ms
94 2 jondawson
 
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
98 3 jondawson
        :width: 75%

powered by: WebSVN 2.1.0

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