diff options
author | Matthias <mail@matthiasbock.net> | 2017-02-04 16:57:20 +0100 |
---|---|---|
committer | Matthias <mail@matthiasbock.net> | 2017-02-04 16:57:20 +0100 |
commit | b6dcaaee4d39d1914418cb27b07bb6c0d076c8a3 (patch) | |
tree | 01d56c78595fabf78565b0491e120fba3a0f95c3 | |
parent | 14fd3eec5b2eb4fe1673755673286cecda32687e (diff) | |
download | icestorm-b6dcaaee4d39d1914418cb27b07bb6c0d076c8a3.tar.gz icestorm-b6dcaaee4d39d1914418cb27b07bb6c0d076c8a3.tar.bz2 icestorm-b6dcaaee4d39d1914418cb27b07bb6c0d076c8a3.zip |
icepll: changes according to cliffordwolf/icestorm#67:
* corrected getopt argument
* removed PLLOUT_SELECT("GENCLK") from output
-rw-r--r-- | icepll/icepll.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/icepll/icepll.cc b/icepll/icepll.cc index 68456bd..273c6a1 100644 --- a/icepll/icepll.cc +++ b/icepll/icepll.cc @@ -68,7 +68,7 @@ int main(int argc, char **argv) bool quiet = false; int opt; - while ((opt = getopt(argc, argv, "i:o:S:mf:q")) != -1) + while ((opt = getopt(argc, argv, "i:o:Smf:q")) != -1) { switch (opt) { @@ -243,7 +243,6 @@ int main(int argc, char **argv) // save iCE40 PLL tile configuration fprintf(f, "SB_PLL40_CORE #(\n"); fprintf(f, "\t\t.FEEDBACK_PATH(\"%s\"),\n", (simple_feedback ? "SIMPLE" : "NON_SIMPLE")); - fprintf(f, "\t\t.PLLOUT_SELECT(\"GENCLK\"),\n"); fprintf(f, "\t\t.DIVR(4'b%s),\t\t" "// DIVR = %2d\n", binstr(best_divr, 4), best_divr); fprintf(f, "\t\t.DIVF(7'b%s),\t" "// DIVF = %2d\n", binstr(best_divf, 7), best_divf); fprintf(f, "\t\t.DIVQ(3'b%s),\t\t" "// DIVQ = %2d\n", binstr(best_divq, 3), best_divq); @@ -279,7 +278,6 @@ int main(int argc, char **argv) // PLL configuration fprintf(f, ".FEEDBACK_PATH(\"%s\"),\n", (simple_feedback ? "SIMPLE" : "NON_SIMPLE")); - fprintf(f, ".PLLOUT_SELECT(\"GENCLK\"),\n"); fprintf(f, ".DIVR(4'b%s),\t\t" "// DIVR = %2d\n", binstr(best_divr, 4), best_divr); fprintf(f, ".DIVF(7'b%s),\t" "// DIVF = %2d\n", binstr(best_divf, 7), best_divf); fprintf(f, ".DIVQ(3'b%s),\t\t" "// DIVQ = %2d\n", binstr(best_divq, 3), best_divq); |