SPT kernel: using increment for tram

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SPT kernel: using increment for tram

1,761件の閲覧回数
MaksimS
Contributor I

Hello,

When a win-command is used, the accessing point of tram is always same for each loop-iteration.

E.g: win .cmplx .cmplx_win .nosft, OUTPUT_RBIN_PER_CH, OR_1_64_0, OR_1_64_0, 0x1, 0x1, TR_0_162_0, .mod0, 0x0

I need to add increment for each loop-iteration, something like this:

win .cmplx .cmplx_win .nosft, OUTPUT_RBIN_PER_CH, OR_1_64_0, OR_1_64_0, 0x1, 0x1, TR_0_162_0 +increment, .mod0, 0x0

How to do it?

 

0 件の賞賛
返信
6 返答(返信)

1,655件の閲覧回数
MaksimS
Contributor I

Hello Peter,

Is the indirect memory addressing possible for MULT_MOD = 2 (multiple coefficients)?

For that piece of line I am getting a compiler-error (see attached file):

win.ind .cmplx .cmplx_win .nosft, OUTPUT_RBIN_PER_CH, OR_1_64_0, OR_1_64_0, 0x1, 0x1, WR15, .mod0, 0x1

MaksimS_1-1693577952914.png

 

MaksimS_0-1693577913022.png

 

0 件の賞賛
返信

1,608件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

The following instructions may helps
win.ind .2x .cmplx .cmplx_win .nosft, 20, WR_0, 1, 1, WR_8, .mod0, 1
the spt explorer is easier to choose the spt instruction, see attached picture

petervlna_0-1693995246613.png

Best regards,

Peter

0 件の賞賛
返信

1,685件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

the spt"Win.ind " instruction support the "indirect memory addressing", the SRC_ADD and DEST_ADD are contained in the image part and real part of work register , at the same time, the MULT_COEF_ADD can also get from either “Work register” or “twiddle Ram” . see the attached picture. if select the work register to pass the "mult_coeff_addr",the work register content can be easy to update in loop-iteration, it would satisfy your requirement.

petervlna_0-1693471964374.png

Best regards,

Peter

0 件の賞賛
返信

1,711件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,

I have asked SPT expert for feedback.

Best regards,

Peter

0 件の賞賛
返信

1,594件の閲覧回数
MaksimS
Contributor I

1. Your screen-shot of docu and commands-syntax (without x) looks different then mine (see my attachment).
I am using SAF85XX .

your syntax: win.ind .2x .cmplx .cmplx_win .nosft, 20, WR_0, 1, 1, WR_8, .mod0, 1

mine syntax:win.ind .cmplx .cmplx_win .nosft, 20, WR_0x0, 0x1, 0x1, WR_8, .mod0, 0x1

2. How to open SPT-Explorer in Design Studio. Do I need extra toolbox?

0 件の賞賛
返信

1,537件の閲覧回数
petervlna
NXP TechSupport
NXP TechSupport

Hello,


I though you were using SPT3.1 as you did not share device . my test is based on R45. SPT3.4 should be similar.

After installing "Radar extension package for SF85xx ", You can click"Window->show view->other-> spt explorer" to open SPT3.4 explorer. The SPT Explorer view displays elements in a tree format when mylibrary.psptfile is chosen in src folder of the project in the Project Explorer view or opened in the Editor area. please see the "SPT Explorer view" in S32DS help.

Best regards,

Peter

0 件の賞賛
返信