XS-1 Context Switcher (vThreads)

XCore Project reviews, ideas, videos and proposals.
User avatar
XCore Addict
Posts: 169
Joined: Fri Jan 08, 2010 12:13 am

XS-1 Context Switcher (vThreads)

Postby paul » Sun Jan 31, 2010 10:47 pm

Version: 0.1
Status: Alpha
License: BSD
Download: https://sourceforge.net/projects/vthreads/

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:


- 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)


On two occasions I have been asked, 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question.
User avatar
XCore Addict
Posts: 238
Joined: Thu Dec 17, 2009 5:15 am

Postby shawn » Mon Feb 01, 2010 7:51 pm

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!

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 5 guests