xconnect loopback

Technical questions regarding the XTC tools and programming with XMOS.
pasau
Experienced Member
Posts: 77
Joined: Fri Dec 06, 2013 7:05 pm

xconnect loopback

Post by pasau »

Hi, i believe my current project will need an extra xmos processor in the future, so i plan on maybe chaining xk-1a boards. But for now, i would like to know the channels i would have between threads on different processors would have enough speed on 2 wire xConnect links. I don't yet have a second xk-1a so i plan doing a loopback to test that. I know i have XLC1dn, XLC0dn, XLC0up, and XLC1up on the XSYS connector. (btw that counts as a single 2 wire link right?)
Since i want to use the xConnect link this way, what is the normal way to do that:

maybe this?

Code: Select all

<Link Encoding="2wire" Delays="4,4">
       <LinkEndpoint NodeId="0" Link="XLC"/>
       <LinkEndpoint NodeId="0" Link="XLC"/>
</Link>
or something like

Code: Select all

 <Node Id="0" Type="device:">
        <Service Id="0" Proto="loopback`0(chanend c);">
          <Chanend Identifier="c" end="3"/>
        </Service>
</Node>
 <Node Id="1" Type="device:">
        <Service Id="0" Proto="loopback1(chanend c);">
          <Chanend Identifier="c" end="3"/>
        </Service>
</Node>
definitely not exact but you get the idea of what i am trying here. Can you please help me out on the right way to do this? thank you!


User avatar
segher
XCore Expert
Posts: 844
Joined: Sun Jul 11, 2010 1:31 am

Post by segher »

If this will work at all, you'll have to do the initialisation
manually (not just declare stuff in the XN), since you cannot
use the normal HELLO sequence: that assumes there are
two link partners.