Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wrpc-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hdl-core-lib
wr-cores
wrpc-sw
Commits
49447882
Commit
49447882
authored
Oct 06, 2015
by
Maciej Lipinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main pll bandwidths: 30Hz (default) and 5Hz, 10Hz (commented out), increased fractional bitsd
parent
f3c60778
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
spll_defs.h
include/spll_defs.h
+1
-1
spll_main.c
softpll/spll_main.c
+13
-2
No files found.
include/spll_defs.h
View file @
49447882
...
...
@@ -31,7 +31,7 @@ WARNING: These parameters must be in sync with the generics of the HDL instantia
#define HPLL_N 14
/* Fractional bits in PI controller coefficients */
#define PI_FRACBITS 1
2
#define PI_FRACBITS 1
6
/* Max. allowed number of reference channels. Can be used to tweak memory usage. */
#define MAX_CHAN_REF BOARD_MAX_CHAN_REF
/* Depends on wrc/wrs */
...
...
softpll/spll_main.c
View file @
49447882
...
...
@@ -31,8 +31,19 @@ void mpll_init(struct spll_main_state *s, int id_ref,
s
->
pi
.
anti_windup
=
1
;
s
->
pi
.
bias
=
30000
;
#if defined(CONFIG_WR_SWITCH)
s
->
pi
.
kp
=
1100
;
// / 2;
s
->
pi
.
ki
=
30
;
// / 2;
// /*bandwidth = 5Hz */
s
->
pi
.
kp
=
2400
;
// / 2;
s
->
pi
.
ki
=
8
;
// / 2;
// /*bandwidth = 10Hz */
// s->pi.kp = 7000; // / 2;
// s->pi.ki = 16; // / 2;
//
/*bandwidth = 30Hz */
// s->pi.kp = 1100; // / 2;
// s->pi.ki = 30; // / 2;
#elif defined(CONFIG_WR_NODE)
s
->
pi
.
kp
=
1100
;
// / 2;
s
->
pi
.
ki
=
30
;
// / 2;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment