@@ -92,7 +92,6 @@ void align_word(Target* tgt, pflib::ROC& roc, pflib::ECON& econ,
9292 std::map<std::string, std::map<std::string, uint64_t >> parameters = {};
9393 // BX value econ resets to when it receives BCR (linkreset)
9494 // Overall phase marker between ROC and ECON
95- parameters[" ALIGNER" ][" GLOBAL_MATCH_MASK_VAL" ] = 0 ;
9695 parameters[" ALIGNER" ][" GLOBAL_I2C_SNAPSHOT_EN" ] = 0 ;
9796 parameters[" ALIGNER" ][" GLOBAL_SNAPSHOT_ARM" ] = 0 ;
9897 parameters[" ALIGNER" ][" GLOBAL_SNAPSHOT_EN" ] = 1 ;
@@ -144,20 +143,16 @@ void align_word(Target* tgt, pflib::ROC& roc, pflib::ECON& econ,
144143 // FAST CONTROL - ENABLE THE BCR (ORBIT SYNC)
145144 tgt->fc ().standard_setup ();
146145
147- // TO DO
148- // // Read BX value of link reset rocd
149- // tgt->fc().bx_custom(3, 0xfff000, 3000);
146+ // TODO: Read BX value of link reset rocd
150147
151148 // ------- Scan when the ECON takes snapshot -----
152- int start_val, end_val, testval, snapshot_match;
149+ int start_val, end_val, snapshot_match;
153150 if (on_zcu) {
154151 start_val = 3490 ; // 3531; // near your orbit region of interest
155152 end_val = 3540 ; // up to orbit rollover
156- testval = 3532 ;
157153 } else {
158154 start_val = 64 * 40 - 60 ; // near your orbit region of interest
159155 end_val = 64 * 40 - 1 ; // up to orbit rollover
160- testval = start_val + 1 ;
161156 }
162157
163158 std::cout << " Iterating over snapshots to find SPECIAL HEADER: " << std::endl;
@@ -167,7 +162,6 @@ void align_word(Target* tgt, pflib::ROC& roc, pflib::ECON& econ,
167162 std::cout << " --------------------------------------------------- "
168163 << std::endl;
169164
170- // int snapshot_val = testval;
171165 parameters.clear ();
172166 parameters[" ALIGNER" ][" GLOBAL_ORBSYN_CNT_SNAPSHOT" ] = snapshot_val;
173167 auto econ_word_align_currentvals = econ.applyParameters (parameters);
0 commit comments