summaryrefslogtreecommitdiffstats
path: root/src/host/calypso_pll/pll.pl
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/calypso_pll/pll.pl')
-rwxr-xr-xsrc/host/calypso_pll/pll.pl10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/host/calypso_pll/pll.pl b/src/host/calypso_pll/pll.pl
new file mode 100755
index 00000000..52c91319
--- /dev/null
+++ b/src/host/calypso_pll/pll.pl
@@ -0,0 +1,10 @@
+#!/usr/bin/perl
+
+my $f_in = 26*1000*1000;
+
+for (my $mult = 1; $mult < 31; $mult++) {
+ for (my $div = 0; $div < 3; $div++) {
+ my $fout = $f_in * ($mult / ($div+1));
+ printf("%03.1f MHz (mult=%2u, div=%1u)\n", $fout/(1000*1000), $mult, $div);
+ }
+}