https://github.com/dawsonjon/chips-demo
Chips 2.0 Demo for Atlys Spartan 6 development platform. Web app using C to Verilog TCP/IP server.
https://github.com/dawsonjon/chips-demo
Last synced: 3 months ago
JSON representation
Chips 2.0 Demo for Atlys Spartan 6 development platform. Web app using C to Verilog TCP/IP server.
- Host: GitHub
- URL: https://github.com/dawsonjon/chips-demo
- Owner: dawsonjon
- License: mit
- Created: 2013-11-16T15:30:00.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-01-10T18:23:45.000Z (over 7 years ago)
- Last Synced: 2025-01-29T05:20:18.985Z (5 months ago)
- Language: Verilog
- Homepage:
- Size: 70.8 MB
- Stars: 14
- Watchers: 5
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: COPYING.txt
Awesome Lists containing this project
README
Chips Demo
==========Try out some simple [Chips-2.0](http://pyandchips.org) applications on real hardware.
Supported FPGA cards
--------------------Chips-Demo has been tested on the following hardware:
1. [nexys 4](http://store.digilentinc.com/nexys-4-artix-7-fpga-trainer-board-limited-time-see-nexys4-ddr/)
2. [atlys](http://store.digilentinc.com/atlys-spartan-6-fpga-trainer-board-limited-time-see-nexys-video/)Demonstration Apps
------------------These demonstration apps show how Chips-2.0 can be used with real hardware. The
demonstrations are not complex, but could form the basis of a more complex
project.+ hello_world
+ keyboard
+ tri_color
+ image_processor
+ audio_output
+ clock
+ svga_hello_world
+ temperature
+ raw_ethernet
+ seven_segment
+ web_server
+ enigma_machine
+ knight_rider
+ benchmarkDownload
--------```
git clone --recursive https://github.com/dawsonjon/Chips-Demo.git
```Pre-requisites
--------------### Chips-2.0
The first thing you need is Chips-2.0. A compatible version is included in chips-demo.```
cd Chips-Demo
sudo python setup.py install
```### Additional software
Requires the vendor's tools for the target FPGA card. This will be [Xilinx](www.xilinx.com) Vivado or ISE. For the atlys card, you will need to install the [Digilent Adept](http://store.digilentinc.com/digilent-adept-2-download-only/)
download utility.Some apps will require additional software to be installed on the target hardware. It would be worth installing the following software.
+ cutecom
+ python-pil
+ scipy```
sudo apt-get install cutecom python-scipy python-pil python-scipy
```Running the demonstrations
--------------------------### Synopsis
```
./run_demo
```
+ *application* - is the name of the app to run
+ *bsp* - is the target FPGA development card
+ *compile* - compile the app into verilog with *Chips-2.0*
+ *build* - build an FPGA bitstream for the target FPGA using the FPGA vendor's tools
+ *run* - run a support application on the host PC e.g. cutecomFor example, the following command will compile, build and download the hello world project to a nexys_4 FPGA card, and launch a serial terminal.
./run_demo hello_world nexys_4 compile build download run
Troubleshooting
---------------### `web_server` demo stopped working
This might be caused by the network manager that is resetting config,
see https://github.com/dawsonjon/Chips-Demo/issues/9.
To fix this,```
$ sudo stop network-manager
```and reconfig:
```
$ sudo ifconfig eth0 192.168.1.0 netmask 255.255.255.0
$ sudo sysctl -w net.ipv4.tcp_window_scaling=0
$ sudo sysctl -w net.ipv4.tcp_timestamps=0
```