Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tdc-core
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Analyze
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
This is an archived project. Repository and other project resources are read-only.
hdl-core-lib
tdc-core
Commits
c168d7bb
Commit
c168d7bb
authored
13 years ago
by
Sebastien Bourdeauducq
Browse files
Options
Downloads
Patches
Plain Diff
channel: hold values
parent
efae20d4
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/tdc_channel.vhd
+14
-7
14 additions, 7 deletions
core/tdc_channel.vhd
with
14 additions
and
7 deletions
core/tdc_channel.vhd
+
14
−
7
View file @
c168d7bb
...
...
@@ -75,6 +75,7 @@ signal taps : std_logic_vector(4*g_CARRY4_COUNT-1 downto 0);
signal
polarity
:
std_logic
;
signal
polarity_d1
:
std_logic
;
signal
polarity_d2
:
std_logic
;
signal
detect_d1
:
std_logic
;
signal
raw
:
std_logic_vector
(
g_RAW_COUNT
-1
downto
0
);
signal
raw_d1
:
std_logic_vector
(
g_RAW_COUNT
-1
downto
0
);
signal
raw_d2
:
std_logic_vector
(
g_RAW_COUNT
-1
downto
0
);
...
...
@@ -144,6 +145,8 @@ begin
clk_o
=>
ro_clk_o
);
detect_d1
<=
polarity_d1
xor
polarity_d2
;
process
(
clk_i
)
begin
if
rising_edge
(
clk_i
)
then
...
...
@@ -154,11 +157,13 @@ begin
raw_d1
<=
(
others
=>
'0'
);
raw_d2
<=
(
others
=>
'0'
);
else
detect_o
<=
polarity_d1
xor
polarity
_d
2
;
detect_o
<=
detect
_d
1
;
polarity_d1
<=
polarity
;
polarity_d2
<=
polarity_d1
;
raw_d1
<=
raw
;
raw_d2
<=
raw_d1
;
if
detect_d1
=
'1'
then
polarity_d2
<=
polarity_d1
;
raw_d2
<=
raw_d1
;
end
if
;
end
if
;
end
if
;
end
process
;
...
...
@@ -172,10 +177,12 @@ begin
if
reset_i
=
'1'
then
fp_o
<=
(
others
=>
'0'
);
else
fp_o
<=
std_logic_vector
(
unsigned
(
coarse_i
&
(
lut
'range
=>
'0'
))
-
unsigned
(
lut
)
+
unsigned
(
deskew_i
));
if
detect_d1
=
'1'
then
fp_o
<=
std_logic_vector
(
unsigned
(
coarse_i
&
(
lut
'range
=>
'0'
))
-
unsigned
(
lut
)
+
unsigned
(
deskew_i
));
end
if
;
end
if
;
end
if
;
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