mirror of https://github.com/YosysHQ/icestorm.git
Fix coding style in icepll.cc
This commit is contained in:
parent
3fb5934d54
commit
502611016c
|
|
@ -108,14 +108,10 @@ int main(int argc, char **argv)
|
||||||
int best_divf = 0;
|
int best_divf = 0;
|
||||||
int best_divq = 0;
|
int best_divq = 0;
|
||||||
|
|
||||||
//The documentation in the iCE40 PLL Usage Guide incorrectly lists the
|
// The documentation in the iCE40 PLL Usage Guide incorrectly lists the
|
||||||
//maximum value of DIVF as 63, when it is only limited to 63 when using
|
// maximum value of DIVF as 63, when it is only limited to 63 when using
|
||||||
//feedback modes other that SIMPLE.
|
// feedback modes other that SIMPLE.
|
||||||
int divf_max = 63;
|
int divf_max = simple_feedback ? 127 : 63;
|
||||||
if(simple_feedback)
|
|
||||||
{
|
|
||||||
divf_max = 127;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (f_pllin < 10 || f_pllin > 133) {
|
if (f_pllin < 10 || f_pllin > 133) {
|
||||||
fprintf(stderr, "Error: PLL input frequency %.3f MHz is outside range 10 MHz - 133 MHz!\n", f_pllin);
|
fprintf(stderr, "Error: PLL input frequency %.3f MHz is outside range 10 MHz - 133 MHz!\n", f_pllin);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue