This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
userrw [2019/03/19 16:13] jfduval [Implementation tips & Known limitations] |
userrw [2019/03/19 16:14] (current) jfduval [Testing the script] |
||
---|---|---|---|
Line 21: | Line 21: | ||
If you would like to stream the read and write buffers, you can also add it to the genVars. Adding the following lines to mainFSMx() will achieve that: | If you would like to stream the read and write buffers, you can also add it to the genVars. Adding the following lines to mainFSMx() will achieve that: | ||
<code> | <code> | ||
- | for(int i =0; i < 4; i++){rigid1.mn.genVar[i] = user_data_1.w[i];} | + | for(int i = 0; i < 4; i++){rigid1.mn.genVar[i] = user_data_1.w[i];} |
- | for(int i =4; i < 8; i++){rigid1.mn.genVar[i] = user_data_1.r[i-4];} | + | for(int i = 4; i < 8; i++){rigid1.mn.genVar[i] = user_data_1.r[i-4];} |
</code> | </code> | ||
**Note**: Be sure that there are no other uses of the genVars. | **Note**: Be sure that there are no other uses of the genVars. |