Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC TDC 1ns 5cha - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC TDC 1ns 5cha - Gateware
Commits
6cdecdba
Commit
6cdecdba
authored
Sep 26, 2019
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[hdl] [bugfix] Properly sign-extend timestamp values in timestamp adder/subtractor
parent
7b243fd4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
tdc_ts_addsub.vhd
hdl/rtl/tdc_ts_addsub.vhd
+6
-7
No files found.
hdl/rtl/tdc_ts_addsub.vhd
View file @
6cdecdba
...
...
@@ -99,14 +99,13 @@ begin -- rtl
elsif
(
enable_i
=
'1'
)
then
pipe
(
0
)
<=
valid_i
;
sums
(
0
)
.
tai
<=
signed
(
resize
(
unsigned
(
a_i
.
tai
)
+
unsigned
(
b_i
.
tai
),
33
)
);
sums
(
0
)
.
seq
<=
a_i
.
seq
;
sums
(
0
)
.
seq
<=
a_i
.
seq
;
sums
(
0
)
.
slope
<=
a_i
.
slope
;
sums
(
0
)
.
meta
<=
a_i
.
meta
;
sums
(
0
)
.
frac
<=
signed
(
resize
(
unsigned
(
a_i
.
frac
),
16
)
+
resize
(
unsigned
(
b_i
.
frac
),
16
)
);
sums
(
0
)
.
coarse
<=
signed
(
resize
(
unsigned
(
a_i
.
coarse
),
sums
(
0
)
.
coarse
'length
)
+
resize
(
unsigned
(
b_i
.
coarse
),
sums
(
0
)
.
coarse
'length
)
);
sums
(
0
)
.
meta
<=
a_i
.
meta
;
sums
(
0
)
.
tai
<=
resize
(
signed
(
a_i
.
tai
),
33
)
+
resize
(
signed
(
b_i
.
tai
),
33
);
sums
(
0
)
.
frac
<=
resize
(
signed
(
a_i
.
frac
),
16
)
+
resize
(
signed
(
b_i
.
frac
),
16
);
sums
(
0
)
.
coarse
<=
signed
(
a_i
.
coarse
)
+
signed
(
b_i
.
coarse
);
else
pipe
(
0
)
<=
'0'
;
...
...
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