| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- #include "MISCQ7.h"
- #include "Error.h"
- #define MAX(A,B) (A) > (B) ? (A) : (B)
-
- void MISCQ7::test_conv_q7()
- {
-
- const q7_t *inp1=input1.ptr();
- const q7_t *inp2=input2.ptr();
- q7_t *outp=output.ptr();
- arm_conv_q7(inp1, this->nba,inp2, this->nbb, outp);
-
- }
- void MISCQ7::test_correlate_q7()
- {
-
- const q7_t *inp1=input1.ptr();
- const q7_t *inp2=input2.ptr();
- q7_t *outp=output.ptr();
- arm_correlate_q7(inp1, this->nba,inp2, this->nbb, outp);
-
- }
-
-
- void MISCQ7::setUp(Testing::testID_t id,std::vector<Testing::param_t>& params,Client::PatternMgr *mgr)
- {
- std::vector<Testing::param_t>::iterator it = params.begin();
- this->nba = *it++;
- this->nbb = *it;
- input1.reload(MISCQ7::INPUTSA1_Q7_ID,mgr,this->nba);
- input2.reload(MISCQ7::INPUTSB1_Q7_ID,mgr,this->nbb);
- switch(id)
- {
- case TEST_CONV_Q7_1:
- output.create(this->nba + this->nbb - 1 ,MISCQ7::OUT_SAMPLES_Q7_ID,mgr);
- break;
- case TEST_CORRELATE_Q7_2:
- output.create(2*MAX(this->nba , this->nbb) - 1 ,MISCQ7::OUT_SAMPLES_Q7_ID,mgr);
- break;
- }
-
- }
- void MISCQ7::tearDown(Testing::testID_t id,Client::PatternMgr *mgr)
- {
- }
|