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:
@@ -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
|
||||
|
Reference in New Issue
Block a user