Skip to content

Commit b729c4e

Browse files
ericxu233pcolberg
authored andcommitted
Added comments for pll_setting_t and pll_settings_str
1 parent 8b55aab commit b729c4e

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

include/acl_pll.h

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@
88

99
#include "acl_bsp_io.h"
1010

11+
// Settings for the Phase-Locked-Loop
12+
// note that we use double frequency of the kernel clock for some double-pumped
13+
// memories
1114
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 */
2124
} pll_setting_t;
2225

2326
typedef struct {

src/acl_device.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,8 @@ clReleaseDevice(cl_device_id device) {
708708

709709
ACL_EXPORT CL_API_ENTRY cl_int
710710
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.
711713
const acl_hal_t *hal;
712714
cl_int configure_status;
713715
acl_lock();

0 commit comments

Comments
 (0)