From c052e247dc79c1b3553cd0d9593b64d65be6ab0e Mon Sep 17 00:00:00 2001
From: ISIP CS/NCTU <tyhsu@cs.nctu.edu.tw>
Date: Thu, 6 Sep 2018 15:41:08 +0200
Subject: [PATCH] check dmrs for pdsch

---
 openair1/PHY/NR_REFSIG/nr_gold.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/openair1/PHY/NR_REFSIG/nr_gold.c b/openair1/PHY/NR_REFSIG/nr_gold.c
index c49d11d747..151d357704 100644
--- a/openair1/PHY/NR_REFSIG/nr_gold.c
+++ b/openair1/PHY/NR_REFSIG/nr_gold.c
@@ -91,15 +91,12 @@ void nr_init_pdsch_dmrs(PHY_VARS_gNB* gNB, uint32_t Nid)
     for (uint8_t symb=0; symb<fp->symbols_per_slot; symb++) {
 
       reset = 1;
-      x2 = ((1<<17) * (slot*symb*slot+symb+1) * (Nid+1) *((Nid<<1)+Nscid))&(((uint32_t)1<<31)-1);
-      printf("x2 = %d\n",x2);
+      x2 = ((1<<17) * (slot*symb*slot+symb+1) * ((Nid<<1)+1) +((Nid<<1)+Nscid))&(((uint32_t)1<<31)-1);
       for (uint32_t n=0; n<NR_MAX_PDSCH_DMRS_INIT_LENGTH_DWORD; n++) {
         pdsch_dmrs[slot][symb][n] = lte_gold_generic(&x1, &x2, reset);
-    printf("slot = %d***  symb = %d*** n = %d*** \n",slot,symb,n);
-
         reset = 0;
       }
     }  
   }
 
-}
\ No newline at end of file
+}
-- 
2.26.2