Search found 11 matches
- Wed Mar 21, 2018 3:47 pm
- Forum: Q&A
- Topic: Efficient transfer of bytes array over tiles
- Replies: 8
- Views: 10570
Re: Efficient transfer of bytes array over tiles
When you send a whole structure, compiler will transfer it in words. In your case only 25 word transfers. You can see it clearly in simulation by looking for output instructions on a channel end: $ xsim -t a.xe | grep 'out .*res.*0x......02)' | grep -v switch tile[0]@0- -DI A-w-.----fff01ba4 (_fdp....
- Wed Mar 21, 2018 3:40 pm
- Forum: Q&A
- Topic: Communication between two tasks
- Replies: 15
- Views: 14074
Re: Communication between two tasks
A quick example: #include <print.h> typedef struct my_struct { unsigned id1; unsigned id2; unsigned id3; unsigned id4; char data[8]; } my_struct; void print_msg(my_struct f, char prepend[]){ printstr(prepend); printhex(f.id3); printstr("\t"); if(f.id2) printstr(" : Ext\t"); else...
- Thu Mar 15, 2018 2:37 pm
- Forum: Q&A
- Topic: Read 8 buffered ports at the same time
- Replies: 11
- Views: 5797
Re: Read 8 buffered ports at the same time
Try this idea and post your results: //port config: on tile[0] : clock clk = XS1_CLKBLK_1; on tile[0] : in port p_clk_in = XS1_PORT_1I;//using external AD CLK on tile[0] : in port p_rd = XS1_PORT_1J;// DATA READY SIGNAL on tile[0] : in buffered port:32 chan_1 = XS1_PORT_1L;//DATA CHANNEL on tile[0]...
- Thu Mar 15, 2018 6:16 am
- Forum: Q&A
- Topic: Read 8 buffered ports at the same time
- Replies: 11
- Views: 5797
Re: Read 8 buffered ports at the same time
Review the topic of " Synchronising clocked I/O on multiple ports ", here: https://www.xmos.com/published/xmos-programming-guide?version=B&page=26 and post your results. The use of the sync feature may help. Thank You. I try to add the sync function,but the result change little config...
- Wed Mar 14, 2018 1:46 pm
- Forum: Q&A
- Topic: Read 8 buffered ports at the same time
- Replies: 11
- Views: 5797
Re: Read 8 buffered ports at the same time
if I clearbuf outside ,some useful data will be clear. Please look at my new post below.mon2 wrote:Place your clearbuf for each port outside the case and test again. Post your results.
- Wed Mar 14, 2018 1:39 pm
- Forum: Q&A
- Topic: Read 8 buffered ports at the same time
- Replies: 11
- Views: 5797
Re: Read 8 buffered ports at the same time
the AD7768 signal is shown below: https://s9.postimg.org/io3ieylyz/image.png I plan to read the 32 buffered port data every time the DRDY signal rising ,without clearbuf after read ,the data will be wrong...if I clearbuf too late ,the MSB data may be cleared and i cannot get the right result. I thin...
- Wed Mar 14, 2018 8:00 am
- Forum: Q&A
- Topic: Read 8 buffered ports at the same time
- Replies: 11
- Views: 5797
Read 8 buffered ports at the same time
I am going to use XL216 series chip to do the work of AD acquisition, AD model is AD7768, the AD data clock frequency is 8M, (125ns); 32 data patterns, I sample while DRDY signal is high, adopt 1 port 32 bit to buffer AD data. Taken every 32 clocks. Since the DRDY signal time is only about 40 ns, an...
多通道AD高速采集
我准备用XL216系列芯片做AD采集的工作,AD型号为AD7768,时钟频率为8M ,(125ns);32位数据模式,我在DRDY信号为高时采样,采用1位port 32位缓存AD数据。每32个时钟取一次数。由于DRDY信号时间只有40ns左右,而采样语句执行每步大约10ns,,导致后面几个通道数据错位。我想知道能否8通道同时采样。 I am going to use XL216 series chip to do the work of AD acquisition, AD model is AD7768, the AD data clock frequency is 8M, (125ns);...
- Fri Dec 29, 2017 7:38 am
- Forum: 中文讨论区
- Topic: #include<mylib.h>
- Replies: 0
- Views: 15715
#include<mylib.h>
I failed to Call some functions write by mysef when I put them in resource file such as myfunc.xc and the header file myfunc.h; I have include <myfunc.h> for example the project file system is like this: >bin >src >main.xc >myfunc.xc >myfunc.h ..... Sometimes , I would fail to include the lib_module...
- Thu Dec 28, 2017 3:01 pm
- Forum: 中文讨论区
- Topic: dual issue
- Replies: 3
- Views: 17603
Re: dual issue
THANKS.Is there any special switch to trun on the optimisations in the xTIMEcomposer studio? Or nothing need to do if I use xTIMEcomposer and code in xc, the composer will compose the instructions in dual issued mode (xcore-200 )? I have just read the xs2-Architecture and it's difficult for me to wr...