Hi,
I have a question about C6670 viterbi coprocessor(VCP2).
I'm trying to do WiMAX CC decode by using VCP2.
The input bit count is 288 bits.
The parameters of VCP2 are configured as follows:
////////////////////////////////////////////////////////////////////////////////
vcpParameters.constLen = 7; // Constraint Length(K)
vcpParameters.decision = VCP2_DECISION_SOFT; // Decision: soft->1, hard->0
vcpParameters.frameLen = 324; // NumInputBits(288)+2*PREFIX_SIZE(18)
vcpParameters.outOrder = VCP2_OUTORDER_0_31; // Hard decision output ordering 0:0to31, 1:31to0
vcpParameters.perf = VCP2_PERF_MOST_CRITICAL; // Result in setting convergence distance
vcpParameters.rate = VCP2_RATE_1_2; // Coding Rate
vcpParameters.readFlag = VCP2_OUTF_YES; // Output parameters read flag
vcpParameters.stateNum = 0; // StatNum
vcpParameters.tailBitEnable = FALSE; // Tail Bit Disable
vcpParameters.tbConvrgMode = TRUE; // Convergent mode
vcpParameters.traceBackIndex = 0; // Tailbiting traceback index mode
vcpParameters.yamTh = 0; // Yamamoto threshold value
////////////////////////////////////////////////////////////////////////////////
The output memory area is as follows:
////////////////////////////////////////////////////////////////////////////////
Name of destination pointer = decisions
Start of address = 0x00819428(core0 L2SRAM)
Size= 334 bytes
////////////////////////////////////////////////////////////////////////////////
But the problem occured.
I thought vcpParameters.frameLen size of data will be replied. But decoding result from VCP2 replies only 256 bytes.
For details, 256 bytes was output to the destination pointer(decisions) of VCP2,
so that 240 bit of data(the amount of prefix(top 18bit) is excluded ) was decoded correctly.
By the way, if vcpParameters.decision was configured to hard decision, all bits of data was decoded correctly.
So, I have a question as follows:
////////////////////////////////////////////////////////////////////////////////
Is there any problems in my configuration of the vcpParameters when decoding with soft decision?
////////////////////////////////////////////////////////////////////////////////
best regards,
g.f.