Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Beam Positoning Monitor - Gateware
Commits
e65453ec
Commit
e65453ec
authored
Jan 22, 2016
by
Vitor Finotti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed flip-flip chain of synchronization from the top of receiver to trigger_rcv.vhd
parent
547169a6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
18 deletions
+17
-18
trigger_rcv.vhd
hdl/modules/dbe_common/trigger_rcv/trigger_rcv.vhd
+14
-2
test_trigger_rcv.vhd
hdl/top/afc_v3/vivado/test_trigger/rcv/test_trigger_rcv.vhd
+3
-16
No files found.
hdl/modules/dbe_common/trigger_rcv/trigger_rcv.vhd
View file @
e65453ec
...
...
@@ -6,7 +6,7 @@
-- Author : aylons <aylons@LNLS190>
-- Company :
-- Created : 2015-11-09
-- Last update: 2016-01-
14
-- Last update: 2016-01-
22
-- Platform :
-- Standard : VHDL'93/02
-------------------------------------------------------------------------------
...
...
@@ -88,6 +88,18 @@ architecture structural of trigger_rcv is
begin
-- Prevent matastability problems
cmp_input_sync
:
gc_sync_ffs
generic
map
(
g_sync_edge
=>
"positive"
)
port
map
(
clk_i
=>
clk_i
,
rst_n_i
=>
rst_n_i
,
data_i
=>
data_i
,
synced_o
=>
data_sync
,
npulse_o
=>
open
,
ppulse_o
=>
open
);
cmp_deglitcher
:
gc_dyn_glitch_filt
generic
map
(
g_len_width
=>
g_glitch_len_width
)
...
...
@@ -95,7 +107,7 @@ begin
clk_i
=>
clk_i
,
rst_n_i
=>
rst_n_i
,
len_i
=>
len_i
,
dat_i
=>
data_
i
,
dat_i
=>
data_
sync
,
dat_o
=>
deglitched
);
cmp_edge_detector
:
gc_sync_ffs
...
...
hdl/top/afc_v3/vivado/test_trigger/rcv/test_trigger_rcv.vhd
View file @
e65453ec
...
...
@@ -5,7 +5,7 @@
-- Author : aylons <aylons@LNLS190>
-- Company :
-- Created : 2015-11-11
-- Last update: 2016-01-
18
-- Last update: 2016-01-
22
-- Platform :
-- Standard : VHDL'93/02
-------------------------------------------------------------------------------
...
...
@@ -63,7 +63,6 @@ architecture structural of test_trigger_rcv is
signal
direction
:
std_logic_vector
(
7
downto
0
);
signal
length
:
std_logic_vector
(
c_glitch_len_width
-1
downto
0
)
:
=
"11111111"
;
signal
trigger_sync
:
std_logic_vector
(
7
downto
0
);
signal
pulse
:
std_logic_vector
(
7
downto
0
);
type
count_array
is
array
(
7
downto
0
)
of
std_logic_vector
(
c_count_width
-1
downto
0
);
...
...
@@ -228,18 +227,6 @@ begin
gen_trigger
:
for
i
in
0
to
7
generate
-- Prevent matastability problems
cmp_edge_detector
:
gc_sync_ffs
generic
map
(
g_sync_edge
=>
"positive"
)
port
map
(
clk_i
=>
clk_100mhz
,
rst_n_i
=>
rst_n
,
data_i
=>
trigger_i
(
i
),
synced_o
=>
trigger_sync
(
i
),
npulse_o
=>
open
,
ppulse_o
=>
open
);
cmp_trigger_rcv
:
trigger_rcv
generic
map
(
g_glitch_len_width
=>
c_glitch_len_width
,
...
...
@@ -248,7 +235,7 @@ begin
clk_i
=>
clk_100mhz
,
rst_n_i
=>
rst_n
,
len_i
=>
length
,
data_i
=>
trigger_
sync
(
i
),
data_i
=>
trigger_
i
(
i
),
pulse_o
=>
pulse
(
i
));
end
generate
gen_trigger
;
...
...
@@ -289,7 +276,7 @@ begin
CLK
=>
clk_100mhz
,
TRIG0
=>
count_success
(
7
),
TRIG1
=>
count_fail
(
7
),
TRIG2
(
7
downto
0
)
=>
trigger_
sync
,
TRIG2
(
7
downto
0
)
=>
trigger_
i
,
TRIG2
(
15
downto
8
)
=>
pulse
,
TRIG2
(
18
downto
16
)
=>
std_logic_vector
(
current_s
),
TRIG2
(
31
downto
19
)
=>
filler
(
31
downto
19
),
...
...
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