Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
DIOT WIC 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
DIOT WIC Gateware
Commits
8d1a2d7e
Commit
8d1a2d7e
authored
Nov 27, 2018
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add synchronizers for nanoFIP rdy signals
parent
c7f28532
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
6 deletions
+37
-6
gefe_top.vhd
hdl/top/gefe_test/gefe_top.vhd
+37
-6
No files found.
hdl/top/gefe_test/gefe_top.vhd
View file @
8d1a2d7e
...
...
@@ -129,9 +129,12 @@ architecture rtl of gefe_top is
signal
scl_out
,
sda_out
:
std_logic
;
signal
scl_oen
,
sda_oen
:
std_logic
;
signal
slots_in
:
t_wic_slot_in_array
(
c_SLOT_NUM
-1
downto
0
);
signal
slots_out
:
t_wic_slot_out_array
(
c_SLOT_NUM
-1
downto
0
);
signal
diags
:
t_diag_out
;
signal
slots_in
:
t_wic_slot_in_array
(
c_SLOT_NUM
-1
downto
0
);
signal
slots_out
:
t_wic_slot_out_array
(
c_SLOT_NUM
-1
downto
0
);
signal
diags
:
t_diag_out
;
signal
var1_rdy_synced
:
std_logic
;
signal
var2_rdy_synced
:
std_logic
;
signal
var3_rdy_synced
:
std_logic
;
begin
...
...
@@ -174,6 +177,34 @@ begin
rst_n
<=
'1'
when
and_reduce
(
std_logic_vector
(
rst_cnt
))
=
'1'
else
'0'
;
-------------------------------------------------------------------------------
-- Synchronizers for RDY signals (40MHz clock domain in nanoFIP
-------------------------------------------------------------------------------
cmp_sync_ffs_var1
:
entity
work
.
gc_sync_ffs
port
map
(
clk_i
=>
clk_25m_i
,
rst_n_i
=>
rst_n
,
data_i
=>
var1_rdy_i
,
synced_o
=>
var1_rdy_synced
,
npulse_o
=>
open
,
ppulse_o
=>
open
);
cmp_sync_ffs_var2
:
entity
work
.
gc_sync_ffs
port
map
(
clk_i
=>
clk_25m_i
,
rst_n_i
=>
rst_n
,
data_i
=>
var2_rdy_i
,
synced_o
=>
var2_rdy_synced
,
npulse_o
=>
open
,
ppulse_o
=>
open
);
cmp_sync_ffs_var3
:
entity
work
.
gc_sync_ffs
port
map
(
clk_i
=>
clk_25m_i
,
rst_n_i
=>
rst_n
,
data_i
=>
var3_rdy_i
,
synced_o
=>
var3_rdy_synced
,
npulse_o
=>
open
,
ppulse_o
=>
open
);
-------------------------------------------------------------------------------
cmp_wic_main
:
entity
work
.
wic_main
...
...
@@ -199,11 +230,11 @@ begin
rstin_o
=>
rstin_o
,
nostat_o
=>
nostat_o
,
var3_acc_o
=>
var3_acc_o
,
var3_rdy_i
=>
var3_rdy_
i
,
var3_rdy_i
=>
var3_rdy_
synced
,
var2_acc_o
=>
var2_acc_o
,
var2_rdy_i
=>
var2_rdy_
i
,
var2_rdy_i
=>
var2_rdy_
synced
,
var1_acc_o
=>
var1_acc_o
,
var1_rdy_i
=>
var1_rdy_
i
,
var1_rdy_i
=>
var1_rdy_
synced
,
p3_lgth_o
=>
p3_lgth_o
);
-------------------------------------------------------------------------------
...
...
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