mirror of https://github.com/YosysHQ/icestorm.git
Added FILTER_RANGE support to icepll
This commit is contained in:
parent
37cc00c3df
commit
9ebed4d055
|
|
@ -142,6 +142,13 @@ int main(int argc, char **argv)
|
|||
double f_pfd = f_pllin / (best_divr + 1);;
|
||||
double f_vco = f_pfd * (best_divf + 1);
|
||||
|
||||
int filter_range =
|
||||
f_pfd < 17 ? 1 :
|
||||
f_pfd < 26 ? 2 :
|
||||
f_pfd < 44 ? 3 :
|
||||
f_pfd < 66 ? 4 :
|
||||
f_pfd < 101 ? 5 : 6;
|
||||
|
||||
if (!simple_feedback)
|
||||
f_vco *= exp2(best_divq);
|
||||
|
||||
|
|
@ -170,5 +177,9 @@ int main(int argc, char **argv)
|
|||
|
||||
printf("\n");
|
||||
|
||||
printf("FILTER_RANGE: %d (3'b%s)\n", filter_range, binstr(filter_range, 3));
|
||||
|
||||
printf("\n");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue