From 0ea64a0995b4dbb98159e24457e6f4bc0a3037be Mon Sep 17 00:00:00 2001 From: Anders Ryd Date: Mon, 14 Feb 2022 21:48:08 -0500 Subject: [PATCH] Fixes for checking valid_L3 --- TrackletAlgorithm/MatchCalculator.h | 14 ++++++++++---- project/script_MC.tcl | 2 +- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/TrackletAlgorithm/MatchCalculator.h b/TrackletAlgorithm/MatchCalculator.h index 01d5a784700..aee1da1ad7a 100644 --- a/TrackletAlgorithm/MatchCalculator.h +++ b/TrackletAlgorithm/MatchCalculator.h @@ -461,10 +461,12 @@ void MatchCalculator(BXType bx, ap_uint nmcout6 = 0; ap_uint nmcout7 = 0; ap_uint nmcout8 = 0; - MC_LOOP: for (ap_uint istep = 0; istep < kMaxProc - kMaxProcOffset(module::MC) - 2; istep++) + MC_LOOP: for (ap_uint istep = 0; istep < kMaxProc - kMaxProcOffset(module::MC); istep++) { - - //std::cout << "istep: " << istep << std::endl; + + //if (istep>105) { + // std::cout << "istep: " << istep << std::endl; + //} #pragma HLS PIPELINE II=1 @@ -758,6 +760,7 @@ void MatchCalculator(BXType bx, auto projid = datastream.getProjIndex(); auto stubid = datastream.getStubIndex(); // Use the stub and projection indices to pick up the stub and projection + //std::cout << "readproj istep projid : "< proj = allproj->read_mem(bx,projid); AllStub stub = allstub->read_mem(bx,stubid); @@ -858,7 +861,10 @@ void MatchCalculator(BXType bx, // } //if(newtracklet && goodmatch==true) { // Write out only the best match, based on the seeding - if(goodmatch_next) { + if(goodmatch_next&&valid_L3) { + + //std::cout << "Adding full match valid_L3 : "<()) { diff --git a/project/script_MC.tcl b/project/script_MC.tcl index 60fc409b7d1..185879c8cfb 100644 --- a/project/script_MC.tcl +++ b/project/script_MC.tcl @@ -16,7 +16,7 @@ set modules_to_test { } # module_to_export must correspond to the default macros set at the top of the # test bench; otherwise, the C/RTL cosimulation will fail -set module_to_export MC_L3PHIC +set module_to_export MC_L7PHIC # create new project (deleting any existing one of same name) open_project -reset match_calc