fix: Remove debug output from two-phase clock
This commit is contained in:
parent
6636417d18
commit
a2f485df5b
1 changed files with 0 additions and 11 deletions
|
|
@ -141,17 +141,6 @@ impl Component for TwoPhaseClock {
|
||||||
self.update_outputs();
|
self.update_outputs();
|
||||||
|
|
||||||
if self.should_transition() {
|
if self.should_transition() {
|
||||||
// Reduced debug output - only show occasional transitions
|
|
||||||
// Use atomic counter instead of static mutable for thread safety
|
|
||||||
use std::sync::atomic::{AtomicU32, Ordering};
|
|
||||||
static TRANSITION_COUNT: AtomicU32 = AtomicU32::new(0);
|
|
||||||
let count = TRANSITION_COUNT.fetch_add(1, Ordering::Relaxed);
|
|
||||||
if count % 1000 == 0 {
|
|
||||||
println!(
|
|
||||||
"DEBUG: [CLOCK] Transitioning - PHI1: {:?} -> PHI2: {:?} (cycle {})",
|
|
||||||
self.phi1_state, self.phi2_state, count
|
|
||||||
);
|
|
||||||
}
|
|
||||||
self.perform_transition();
|
self.perform_transition();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue