31 Clients chan ends to 1 server chan end

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

31 Clients chan ends to 1 server chan end

Postby lilltroll » Fri Jan 07, 2011 8:03 pm

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

Postby Jamie » Sat Jan 08, 2011 1:28 pm

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

Postby lilltroll » Sat Jan 08, 2011 11:25 pm

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: 955
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Postby lilltroll » Sun Jan 09, 2011 12:55 pm

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: 955
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Postby lilltroll » Mon Jan 10, 2011 8:35 am

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: 955
Joined: Fri Dec 11, 2009 3:53 am
Location: Sweden, Eskilstuna

Postby lilltroll » Sun Feb 06, 2011 8:57 am

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

Postby Moreno » Sun May 10, 2015 9:48 am

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.

Who is online

Users browsing this forum: No registered users and 0 guests