Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 12 additions & 9 deletions include/acl_pll.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,19 @@

#include "acl_bsp_io.h"

// Settings for the Phase-Locked-Loop
// note that we use double frequency of the kernel clock for some double-pumped
// memories
typedef struct {
unsigned int freq_khz;
unsigned int m;
unsigned int n;
unsigned int k;
unsigned int c0;
unsigned int c1;
unsigned int r;
unsigned int cp;
unsigned int div;
unsigned int freq_khz; /* output frequency in kHz */
unsigned int m; /* multiplier factor */
unsigned int n; /* 1st divider factor */
unsigned int k; /* 2nd divider factor */
unsigned int c0; /* output divider for kernel clock */
unsigned int c1; /* output divider for double kernel clock */
unsigned int r; /* lowpass filter setting */
unsigned int cp; /* charge pump gain setting */
unsigned int div; /* PLL mode */
} pll_setting_t;

typedef struct {
Expand Down
2 changes: 2 additions & 0 deletions src/acl_device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,8 @@ clReleaseDevice(cl_device_id device) {

ACL_EXPORT CL_API_ENTRY cl_int
clReconfigurePLLIntelFPGA(cl_device_id device, const char *pll_settings_str) {
// To get the format of the second string argument please refer to the code
// comments specified for struct pll_setting_t in include/acl_pll.
const acl_hal_t *hal;
cl_int configure_status;
acl_lock();
Expand Down