31 Clients chan ends to 1 server chan end

XCore Project reviews, ideas, videos and proposals.
Post Reply
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

31 Clients chan ends to 1 server chan end

Post by lilltroll »

Version: 1.1
Status: Public release
License: BSD
Download: /files/project_builds/test_31_Clients_chan_ends_to_1_server_chan_end_1v1.zip

This project is to share an example of how you can setup other topologies than point to point channels in XC with help of asm.

This DEMO sends textmessages from 31 different client to one receiving server.

Thereafter it send 31 messages from one thread with different channel ends for each message.

It also uses interpretation of the text-strings to take fully use of the channels. You can also see an example of the use of replicators.


Probably not the most confused programmer anymore on the XCORE forum.
User avatar
Jamie
Experienced Member
Posts: 99
Joined: Mon Dec 14, 2009 1:01 pm
Contact:

Post by Jamie »

But this example doesn't work properly yet..?
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Post by lilltroll »

From Richard@XMOS
"A pause is probably the easiest fix but it is somewhat fragile (the timing might change with different optimisation levels and new toolchain releases etc.). You could alternatively try adding some code to synchronise between cores after the server has allocated its channel end but before the clients start sending."
Probably not the most confused programmer anymore on the XCORE forum.
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Post by lilltroll »

It works on my XDK? But it doesn't use sync yet. It should work on all G4s !?
You have to built it , I only provide the source to save space.
Probably not the most confused programmer anymore on the XCORE forum.
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Post by lilltroll »

I added so the program scans for the last chanend on a core, regarding the server. e.g. 0x1F. But I haven't fixed the sync yet, so I wait with a new release until that.
Probably not the most confused programmer anymore on the XCORE forum.
User avatar
lilltroll
XCore Expert
Posts: 956
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Post by lilltroll »

This example is totally ignorant to the programming of the switch and interconnect. It works stand alone, but included in a larger project, things get "messy" :(
Probably not the most confused programmer anymore on the XCORE forum.
Moreno
Newbie
Posts: 1
Joined: Sun May 10, 2015 9:47 am

Post by Moreno »

Education is becoming common and all the parents now understand the dissertation writers service benefits of education and they are educating their children for their better future. They know only education has power to make them worthy.
Post Reply