Commit f7ed592e authored by Parminder Singh's avatar Parminder Singh

Fixed available_bits calculation for PTRS in -n option in ulsim

parent 0cff460e
......@@ -901,7 +901,8 @@ int main(int argc, char **argv)
//----------------- count and print errors -----------------
//----------------------------------------------------------
if (pusch_pdu->pdu_bit_map & PUSCH_PDU_BITMAP_PUSCH_PTRS) {
if ((pusch_pdu->pdu_bit_map & PUSCH_PDU_BITMAP_PUSCH_PTRS) && (trial==0)) {
ptrs_symbols = 0;
for (int i = pusch_pdu->start_symbol_index; i < pusch_pdu->start_symbol_index + pusch_pdu->nr_of_symbols; i++){
ptrs_symbols += ((gNB->pusch_vars[UE_id]->ptrs_symbols) >> i) & 1;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment