RSS YouTube LinkedIn Twitter XCore IRC

Search

Projects Forum

Enter your XCore Exchange username.
Enter the password that accompanies your username.

Forgot your password?

Sign up for an account

Things to do: Search all projects, Create a project

XS-1 Context Switcher (vThreads)

by paul

  • Status: Alpha
  • Downloads: See External Download
  • Licence: BSD
  • Last updated: 01/Feb/2010 at 01:39 AM
  • Sponsors:
  • Wiki entry: View project wiki entry

Version 0.1

Size: Unknown

View older versions

Project Overview

Implementation of virtual threads for the XS-1. Currently a simple context switching implementation for the XMOS XS-1 architecture (Gn, Ln products). Allows a user to run low speed processes on a single thread using time sliced scheduling. Features:

Current:
- Initialise threads
- Context Switch on Timer Interrupt (time slice scheduling)
- Functions to allow atomic operations (ClrInt() & SetInt())

Wish List:
- Call to allocate stack space to vthread
- Event support
- More flexible vthread params (ports, chans, etc)
- On demand context switch (when a thread wants to hand over control to another because it doesn't have anything to do)

Images and diagrams

Rate this project


5
Average: 5 (1 vote)
Your rating: None

Share this project!

Twitter Icon Share on Twitter

Twitter Icon Share on Facebook

submit to reddit Share on Reddit

Comments / Updates

Defrencing, really ; )

Thanks Paul,

Looks like a nice tool, shows explicitely ,once again , why Xcore diffrentiates itself from all other cores and FPGA's. Xcore lends itself to seamless constructions. I can't comment very deep till I get my hand on a real physical core. Anouther aspect I noted is that the physical Xcore lends itself to easy physical constructions, increasing possible choices for proto, dev, eval, are very feature rich, making my choices tough cause I like the lot of them.

Made my Day, "Great" project!
Shawn

X
X