fix: Remove debug output from two-phase clock

This commit is contained in:
Jan-Peter von Hunnius 2026-02-26 19:50:11 +01:00
parent 6636417d18
commit a2f485df5b

View file

@ -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();
} }
} }