Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
b2edf852
Commit
b2edf852
authored
Sep 23, 2019
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dev/ertm14_dds_sync: moved bitmask generation to VHDL, fixed tap size
parent
6b8f8aca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
ertm14_dds_sync.c
dev/ertm14_dds_sync.c
+2
-6
No files found.
dev/ertm14_dds_sync.c
View file @
b2edf852
...
...
@@ -33,7 +33,7 @@ void dds_sync_unit_create( struct dds_sync_unit_device *dev, uint32_t base )
writel
(
0
,
dev
->
base
+
DS_REG_CSR
);
// disable core
for
(
i
=
0
;
i
<
DDS_SYNC_N_CHANNELS
;
i
++
)
{
dev
->
channels
[
i
].
delay_tap_size
=
2000
/
31
;
dev
->
channels
[
i
].
delay_tap_size
=
78
/* ps */
;
dev
->
channels
[
i
].
index
=
i
;
}
}
...
...
@@ -101,12 +101,8 @@ void dds_sync_unit_trigger( struct dds_sync_unit_device* dev, uint32_t mask, int
uint32_t
coarse_ser
=
ch
->
pps_offset_ps
/
2000
-
coarse_par
*
8
;
uint32_t
fine
=
(
ch
->
pps_offset_ps
%
2000
)
/
ch
->
delay_tap_size
;
uint32_t
mask
;
uint32_t
mask
=
coarse_ser
;
// 24/09 VHDL generates mask internally
if
(
continuous
)
mask
=
0xf0
;
//rotr(0xf0, 7-coarse_ser );
else
mask
=
(
1
<<
(
7
-
coarse_ser
+
1
))
-
1
;
ocr
=
(
coarse_par
<<
DS_OCR0_PPS_OFFS_SHIFT
)
|
(
mask
<<
DS_OCR0_MASK_SHIFT
)
...
...
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