Code Monkey home page Code Monkey logo

tsp-vitis-freertos-platform's Introduction

Driver code for FPGA developed to brute-force the Traveling Salesman Problem

https://uoy.atlassian.net/wiki/spaces/RTS/overview?homepageId=35684366

This repo contains my hurried implementation of FreeRTOS onto a Zybo Z-10 v1 FPGA.

The OS had four scheduled tasks:

  • To collect input from the user
  • To serialise and send said input to the problem server
  • To run the hardware once a problem was received
  • To serealise and send the computed solution to the problem server to check the validity of the answer.

Additionally, lwip was used to handle the received communications from the problem server. The handler had to be non-blocking and so was only responsible for copying data out of the packet buffer, clearing the buffer and displaying an output based on the data received. All further processing happened in one of the then unblocked tasks subsequently.

This code could be improved as FreeRTOS does have proper ways of suspending and restarting tasks based on some generated registers, but due to time constraints that was not fully implemented at the time. I do think this was a good solution overall to the problem at hand!

Note: Please see the previous revision of main.c to keep comments and other notes in - they were removed to keep the solution looking sleek. Note: The code found in network.c was adapted from a solution graciously provided by Dr Ian Gray - you can find his website here https://iangray.me.uk/index.html

tsp-vitis-freertos-platform's People

Contributors

rgbalex avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.