Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
White Rabbit core collection
Manage
Activity
Members
Labels
Plan
Issues
33
Issue boards
Milestones
Wiki
Code
Merge requests
3
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
White Rabbit core collection
Commits
7656ad69
Commit
7656ad69
authored
11 years ago
by
Wesley W. Terpstra
Committed by
Tomasz Wlostowski
10 years ago
Browse files
Options
Downloads
Patches
Plain Diff
spll: don't waste a clock network
parent
3fbaa93c
Branches
wesley-stuff-to-be-tested
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/wr_softpll_ng/spll_bangbang_pd.vhd
+14
-13
14 additions, 13 deletions
modules/wr_softpll_ng/spll_bangbang_pd.vhd
with
14 additions
and
13 deletions
modules/wr_softpll_ng/spll_bangbang_pd.vhd
+
14
−
13
View file @
7656ad69
...
@@ -96,6 +96,7 @@ architecture rtl of spll_bangbang_pd is
...
@@ -96,6 +96,7 @@ architecture rtl of spll_bangbang_pd is
-- phase detector input signals (after division)
-- phase detector input signals (after division)
signal
pd_in_ref
:
std_logic
;
signal
pd_in_ref
:
std_logic
;
signal
pd_in_fbck
:
std_logic
;
signal
pd_in_fbck
:
std_logic
;
signal
r_pd_in_fbck
:
std_logic
;
-- phase detector outputs
-- phase detector outputs
signal
pd_a
,
pd_b
,
pd_t
,
pd_ta
:
std_logic
;
signal
pd_a
,
pd_b
,
pd_t
,
pd_ta
:
std_logic
;
...
@@ -214,20 +215,20 @@ begin -- rtl
...
@@ -214,20 +215,20 @@ begin -- rtl
-- pd_in_ref <= clk_ref_div(0);
-- pd_in_ref <= clk_ref_div(0);
bb_pd_negedge
:
process
(
pd_in
_fb
ck
)
bb_pd_
pos
negedge
:
process
(
clk
_fb
_i
)
begin
begin
if
fall
ing_edge
(
pd_in
_fb
ck
)
then
if
ris
ing_edge
(
clk
_fb
_i
)
then
pd_
ta
<=
pd_in_
ref
;
r_
pd_
in_fbck
<=
pd_in_
fbck
;
end
if
;
end
process
;
if
r_pd_in_fbck
=
'1'
and
pd_in_fbck
=
'0'
then
-- falling edge
pd_ta
<=
pd_in_ref
;
end
if
;
bb_pd_posedge
:
process
(
pd_in_fbck
)
begin
if
r_pd_in_fbck
=
'0'
and
pd_in_fbck
=
'1'
then
-- rising_edge
if
rising_edge
(
pd_in_fbck
)
then
pd_b
<=
pd_in_ref
;
pd_
b
<=
pd_
in_ref
;
pd_
a
<=
pd_
b
;
pd_
a
<=
pd_
b
;
pd_
t
<=
pd_
ta
;
pd_t
<=
pd_ta
;
end
if
;
end
if
;
end
if
;
end
process
;
end
process
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment