Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
30
Issues
30
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
White Rabbit core collection
Commits
d663c192
Commit
d663c192
authored
Mar 15, 2013
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
timing/pulse_[gen|stamper].vhd: follow new WRPC port timing port names
parent
d8583c2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
pulse_gen.vhd
modules/timing/pulse_gen.vhd
+8
-8
pulse_stamper.vhd
modules/timing/pulse_stamper.vhd
+9
-9
No files found.
modules/timing/pulse_gen.vhd
View file @
d663c192
...
...
@@ -53,7 +53,7 @@ entity pulse_gen is
-- produce pulses and keep trig_ready_o line permamaently active)
tm_time_valid_i
:
in
std_logic
;
-- number of seconds
tm_
utc
_i
:
in
std_logic_vector
(
39
downto
0
);
tm_
tai
_i
:
in
std_logic_vector
(
39
downto
0
);
-- number of clk_ref_i cycles
tm_cycles_i
:
in
std_logic_vector
(
27
downto
0
);
...
...
@@ -67,9 +67,9 @@ entity pulse_gen is
-- time at which the pulse will be produced + a single-cycle strobe to
-- latch it in
trig_
utc
_i
:
in
std_logic_vector
(
39
downto
0
);
trig_
tai
_i
:
in
std_logic_vector
(
39
downto
0
);
trig_cycles_i
:
in
std_logic_vector
(
27
downto
0
);
trig_valid_
p1_
i
:
in
std_logic
trig_valid_i
:
in
std_logic
);
end
pulse_gen
;
...
...
@@ -95,8 +95,8 @@ begin -- architecture rtl
if
rst_n_i
=
'0'
then
trig_utc
<=
(
others
=>
'0'
);
trig_cycles
<=
(
others
=>
'0'
);
elsif
trig_valid_
p1_
i
=
'1'
then
trig_utc
<=
trig_
utc
_i
;
elsif
trig_valid_i
=
'1'
then
trig_utc
<=
trig_
tai
_i
;
trig_cycles
<=
trig_cycles_i
;
end
if
;
end
if
;
...
...
@@ -111,7 +111,7 @@ begin -- architecture rtl
if
rst_n_i
=
'0'
or
rst_from_sync
=
'1'
then
trig_valid_sys_d1
<=
'0'
;
elsif
clk_sys_i
'event
and
clk_sys_i
=
'1'
then
if
trig_valid_
p1_
i
=
'1'
then
if
trig_valid_i
=
'1'
then
trig_valid_sys_d1
<=
'1'
;
end
if
;
end
if
;
...
...
@@ -165,7 +165,7 @@ begin -- architecture rtl
if
rst_n_i
=
'0'
then
trig_ready_o
<=
'1'
;
elsif
clk_sys_i
'event
and
clk_sys_i
=
'1'
then
if
trig_valid_
p1_
i
=
'1'
then
if
trig_valid_i
=
'1'
then
trig_ready_o
<=
'0'
;
elsif
rst_from_sync_d1
=
'1'
and
rst_from_sync
=
'0'
then
-- falling edge of reset_from_sync
...
...
@@ -188,7 +188,7 @@ begin -- architecture rtl
elsif
clk_ref_i
'event
and
clk_ref_i
=
'1'
then
if
tm_time_valid_i
=
'0'
then
pulse_o
<=
'0'
;
elsif
tm_
utc
_i
=
trig_utc_ref
and
tm_cycles_i
=
trig_cycles_ref
then
elsif
tm_
tai
_i
=
trig_utc_ref
and
tm_cycles_i
=
trig_cycles_ref
then
pulse_o
<=
'1'
;
else
pulse_o
<=
'0'
;
...
...
modules/timing/pulse_stamper.vhd
View file @
d663c192
...
...
@@ -49,7 +49,7 @@ entity pulse_stamper is
-- 1: time given on tm_utc_i and tm_cycles_i is valid (otherwise, don't timestamp)
tm_time_valid_i
:
in
std_logic
;
-- number of seconds
tm_
utc
_i
:
in
std_logic_vector
(
39
downto
0
);
tm_
tai
_i
:
in
std_logic_vector
(
39
downto
0
);
-- number of clk_ref_i cycles
tm_cycles_i
:
in
std_logic_vector
(
27
downto
0
);
...
...
@@ -57,10 +57,10 @@ entity pulse_stamper is
---------------------------------------------------------------------------
-- Time tag output (clk_sys_i domain)
---------------------------------------------------------------------------
tag_
utc
_o
:
out
std_logic_vector
(
39
downto
0
);
tag_
tai
_o
:
out
std_logic_vector
(
39
downto
0
);
tag_cycles_o
:
out
std_logic_vector
(
27
downto
0
);
-- single-cycle pulse: strobe tag on tag_utc_o and tag_cycles_o
tag_valid_
p1_
o
:
out
std_logic
tag_valid_o
:
out
std_logic
);
...
...
@@ -101,7 +101,7 @@ begin -- architecture rtl
begin
if
clk_ref_i
'event
and
clk_ref_i
=
'1'
then
if
pulse_ref_p1
=
'1'
and
tm_time_valid_i
=
'1'
then
tag_utc_ref
<=
tm_
utc
_i
;
tag_utc_ref
<=
tm_
tai
_i
;
tag_cycles_ref
<=
tm_cycles_i
;
end
if
;
end
if
;
...
...
@@ -145,15 +145,15 @@ begin -- architecture rtl
begin
if
clk_sys_i
'event
and
clk_sys_i
=
'1'
then
if
rst_n_i
=
'0'
then
tag_
utc
_o
<=
(
others
=>
'0'
);
tag_
tai
_o
<=
(
others
=>
'0'
);
tag_cycles_o
<=
(
others
=>
'0'
);
tag_valid_
p1_
o
<=
'0'
;
tag_valid_o
<=
'0'
;
elsif
pulse_sys_p1
=
'1'
then
tag_
utc
_o
<=
tag_utc_ref
;
tag_
tai
_o
<=
tag_utc_ref
;
tag_cycles_o
<=
tag_cycles_ref
;
tag_valid_
p1_
o
<=
'1'
;
tag_valid_o
<=
'1'
;
else
tag_valid_
p1_
o
<=
'0'
;
tag_valid_o
<=
'0'
;
end
if
;
end
if
;
end
process
sys_tags
;
...
...
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