Adjusts delay in monitoring script and adds clock frequency calculator

Increases the delay in the monitoring script from 1 second to 3 seconds to reduce resource strain during rapid file changes.

Introduces a new Python script for calculating optimal clock frequency settings based on input and target frequencies.
This commit is contained in:
2025-04-26 10:25:43 +00:00
parent 2a2789dda1
commit d1a3b7cec9
2 changed files with 31 additions and 2 deletions

View File

@@ -76,8 +76,8 @@ echo "👂 Monitoring $BITFILE for changes... (Press Ctrl+C to exit)"
# ♻️ Infinite watch loop
while true; do
inotifywait -e close_write "$BITFILE" >/dev/null 2>&1
echo "🌀 Change detected. Waiting 1 second..."
sleep 1
echo "🌀 Change detected. Waiting 3 second..."
sleep 3
flash_bitstream
echo "✅ Done. Waiting for next change..."
done