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

Subversion Repositories tcp_socket

[/] [tcp_socket/] [trunk/] [README.rst] - Diff between revs 3 and 4

Only display areas with differences | Details | Blame | View Log

Rev 3 Rev 4
Chips-2.0 Demo for ATLYS Development Card
Chips-2.0 Demo for ATLYS Development Card
=========================================
=========================================
:Author: Jonathan P Dawson
:Author: Jonathan P Dawson
:Date: 2013-10-15
:Date: 2013-10-15
:email: chips@jondawson.org.uk
:email: chips@jondawson.org.uk
 
 
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.
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.
 
 
Dependencies
Dependencies
============
============
You will need:
You will need:
+ Xilinx ISE 12.0 or later (webpack edition is free)
+ Xilinx ISE 12.0 or later (webpack edition is free)
+ Python 2.7 or later (but not Python 3)
+ Python 2.7 or later (but not Python 3)
+ Chips-2.0 (Included)
+ Chips-2.0 (Included)
+ Digilent `ATLYS `_  Spartan 6 Development Kit.
+ Digilent `ATLYS `_  Spartan 6 Development Kit.
+ Digilent ADEPT2 `utility `_
+ Digilent ADEPT2 `utility `_
+ git
+ git
Install
Install
=======
=======
Clone the git the repository with git::
Clone the git the repository with git::
 
 
    $ git clone git@github.com:dawsonjon/Chips-Demo.git
    $ git clone https://github.com/dawsonjon/Chips-Demo.git
    $ cd Chips-Demo
    $ cd Chips-Demo
    $ git submodule init
    $ git submodule init
    $ git submodule update
    $ git submodule update
Chips Compile
Chips Compile
=============
=============
To compile the c code in chips, issue the following command in the project folder::
To compile the c code in chips, issue the following command in the project folder::
    $ ./atlys.py compile
    $ ./atlys.py compile
Build in ISE
Build in ISE
============
============
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::
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::
    $ ./atlys.py build
    $ ./atlys.py build
Download to ATLYS
Download to ATLYS
=================
=================
Power up the ATLYS, and connect the JTAG USB cable to your PC. Run the download command::
Power up the ATLYS, and connect the JTAG USB cable to your PC. Run the download command::
    $ ./atlys.py download
    $ ./atlys.py download
You can complete all three steps in one go using the *all* option::
You can complete all three steps in one go using the *all* option::
    $ ./atlys.py all
    $ ./atlys.py all
Setup and Test
Setup and Test
==============
==============
::
::
        +----------------+                 +----------------+
        +----------------+                 +----------------+
        | PC             |                 | Digilent ATLYS |
        | PC             |                 | Digilent ATLYS |
        |                |   POWER =======>o                |
        |                |   POWER =======>o                |
        |                |                 |                |
        |                |                 |                |
        |          USB   o<===============>o JTAG USB       |
        |          USB   o<===============>o JTAG USB       |
        |                |                 |                |
        |                |                 |                |
        |          ETH0  o<===============>o ETHERNET       |
        |          ETH0  o<===============>o ETHERNET       |
        |                |                 |                |
        |                |                 |                |
        | 192.168.1.0    |                 | 192.168.1.1    |
        | 192.168.1.0    |                 | 192.168.1.1    |
        +----------------+                 +----------------+
        +----------------+                 +----------------+
..
..
 
 
Connect the Ethernet port to ATLYS, using a crossed over Ethernet cable (which comes with the development kit).
Connect the Ethernet port to ATLYS, using a crossed over Ethernet cable.
 
 
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::
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::
    $ ./configure_network
    $ ./configure_network
Verify connection using ping command::
Verify connection using ping command::
    $ ping 192.168.1.1
    $ ping 192.168.1.1
    PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
    PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
    64 bytes from 192.168.1.1: icmp_req=1 ttl=255 time=0.253 ms
    64 bytes from 192.168.1.1: icmp_req=1 ttl=255 time=0.253 ms
    64 bytes from 192.168.1.1: icmp_req=2 ttl=255 time=0.371 ms
    64 bytes from 192.168.1.1: icmp_req=2 ttl=255 time=0.371 ms
    64 bytes from 192.168.1.1: icmp_req=3 ttl=255 time=0.382 ms
    64 bytes from 192.168.1.1: icmp_req=3 ttl=255 time=0.382 ms
    64 bytes from 192.168.1.1: icmp_req=4 ttl=255 time=0.250 ms
    64 bytes from 192.168.1.1: icmp_req=4 ttl=255 time=0.250 ms
    ^C
    ^C
    --- 192.168.1.1 ping statistics ---
    --- 192.168.1.1 ping statistics ---
    4 packets transmitted, 4 received, 0% packet loss, time 3000ms
    4 packets transmitted, 4 received, 0% packet loss, time 3000ms
    rtt min/avg/max/mdev = 0.250/0.314/0.382/0.062 ms
    rtt min/avg/max/mdev = 0.250/0.314/0.382/0.062 ms
Connect to 192.168.1.1 using your favourite browser.
Connect to 192.168.1.1 using your favourite browser.
.. image:: https://raw.github.com/dawsonjon/Chips-Demo/master/images/screenshot.png
.. image:: https://raw.github.com/dawsonjon/Chips-Demo/master/images/screenshot.png
        :width: 75%
        :width: 75%
 
 

powered by: WebSVN 2.1.0

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