From 6f38c94d7b771b6237eba1459cc205e342b5eac1 Mon Sep 17 00:00:00 2001
From: Raymond Knopp <raymond.knopp@eurecom.fr>
Date: Thu, 25 Oct 2018 23:17:42 +0200
Subject: [PATCH] error statistics for nr_pbchsim

---
 openair1/SIMULATION/NR_PHY/pbchsim.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/openair1/SIMULATION/NR_PHY/pbchsim.c b/openair1/SIMULATION/NR_PHY/pbchsim.c
index cf276e8faa8..644203a40a7 100644
--- a/openair1/SIMULATION/NR_PHY/pbchsim.c
+++ b/openair1/SIMULATION/NR_PHY/pbchsim.c
@@ -532,10 +532,11 @@ int main(int argc, char **argv)
 			 SISO,
 			 UE->high_speed_flag);
 
+	if (ret<0) n_errors++;
       }
     } //noise trials
 
-    printf("SNR %f : n_errors = %d/%d\n", SNR,n_errors,n_trials);
+    printf("SNR %f : n_errors (negative CRC) = %d/%d\n", SNR,n_errors,n_trials);
 
     if (n_trials==1)
       break;
-- 
GitLab