File tree Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Expand file tree Collapse file tree 2 files changed +14
-9
lines changed Original file line number Diff line number Diff line change 8
8
9
9
#include " acl_bsp_io.h"
10
10
11
+ // Settings for the Phase-Locked-Loop
12
+ // note that we use double frequency of the kernel clock for some double-pumped
13
+ // memories
11
14
typedef struct {
12
- unsigned int freq_khz;
13
- unsigned int m;
14
- unsigned int n;
15
- unsigned int k;
16
- unsigned int c0;
17
- unsigned int c1;
18
- unsigned int r;
19
- unsigned int cp;
20
- unsigned int div;
15
+ unsigned int freq_khz; /* output frequency in kHz */
16
+ unsigned int m; /* multiplier factor */
17
+ unsigned int n; /* 1st divider factor */
18
+ unsigned int k; /* 2nd divider factor */
19
+ unsigned int c0; /* output divider for kernel clock */
20
+ unsigned int c1; /* output divider for double kernel clock */
21
+ unsigned int r; /* lowpass filter setting */
22
+ unsigned int cp; /* charge pump gain setting */
23
+ unsigned int div; /* PLL mode */
21
24
} pll_setting_t ;
22
25
23
26
typedef struct {
Original file line number Diff line number Diff line change @@ -708,6 +708,8 @@ clReleaseDevice(cl_device_id device) {
708
708
709
709
ACL_EXPORT CL_API_ENTRY cl_int
710
710
clReconfigurePLLIntelFPGA (cl_device_id device, const char *pll_settings_str) {
711
+ // To get the format of the second string argument please refer to the code
712
+ // comments specified for struct pll_setting_t in include/acl_pll.
711
713
const acl_hal_t *hal;
712
714
cl_int configure_status;
713
715
acl_lock ();
You can’t perform that action at this time.
0 commit comments