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
2
Merge Requests
2
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
44181219
Commit
44181219
authored
Apr 26, 2023
by
Tomasz Wlostowski
Committed by
Tristan Gingold
May 05, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrc_core: use async assert, sync deassert reset
parent
d0cc35be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
17 deletions
+17
-17
wrc_periph.vhd
modules/wrc_core/wrc_periph.vhd
+17
-17
No files found.
modules/wrc_core/wrc_periph.vhd
View file @
44181219
...
...
@@ -6,7 +6,7 @@
-- Author : Grzegorz Daniluk <grzegorz.daniluk@cern.ch>
-- Company : CERN (BE-CO-HT)
-- Created : 2011-04-04
-- Last update: 202
2-01-25
-- Last update: 202
3-04-26
-- Platform : FPGA-generics
-- Standard : VHDL
-------------------------------------------------------------------------------
...
...
@@ -141,27 +141,28 @@ architecture struct of wrc_periph is
signal
diag_out_regs
:
t_generic_word_array
(
g_diag_rw_size
-
1
downto
0
);
signal
diag_in
:
t_generic_word_array
(
g_diag_ro_size
+
g_diag_rw_size
-1
downto
0
);
signal
rst_net_n
,
rst_net_n_d0
:
std_logic
;
signal
rst_wrc_n
,
rst_wrc_n_d0
:
std_logic
;
constant
c_RESET_CHAIN_LENGTH
:
integer
:
=
3
;
signal
rst_net_n
,
rst_wrc_n
:
std_logic
;
signal
rst_net_n_chain
,
rst_wrc_n_chain
:
std_logic_vector
(
c_RESET_CHAIN_LENGTH
-1
downto
0
);
begin
-- async assert, sync de-assert reset.
process
(
clk_sys_i
)
begin
if
rising_edge
(
clk_sys_i
)
then
if
rst_n_i
=
'0'
then
rst_wrc_n_o
<=
'0'
;
else
rst_net_n_o
<=
rst_net_n_d0
;
rst_net_n_d0
<=
rst_net_n
;
rst_wrc_n_o
<=
rst_wrc_n_d0
;
rst_wrc_n_d0
<=
rst_wrc_n
;
end
if
;
if
rst_n_i
=
'0'
then
rst_net_n_chain
<=
(
others
=>
'0'
);
rst_wrc_n_chain
<=
(
others
=>
'0'
);
elsif
rising_edge
(
clk_sys_i
)
then
rst_net_n_chain
<=
rst_net_n
&
rst_net_n_chain
(
c_RESET_CHAIN_LENGTH
-1
downto
1
);
rst_wrc_n_chain
<=
rst_wrc_n
&
rst_wrc_n_chain
(
c_RESET_CHAIN_LENGTH
-1
downto
1
);
end
if
;
end
process
;
rst_wrc_n_o
<=
rst_wrc_n_chain
(
0
);
rst_net_n_o
<=
rst_net_n_chain
(
0
);
process
(
clk_sys_i
)
begin
if
rising_edge
(
clk_sys_i
)
then
...
...
@@ -170,10 +171,9 @@ begin
if
g_has_preinitialized_firmware
then
rst_wrc_n
<=
'1'
;
else
rst_wrc_n
<=
'0'
;
-- no firmware in DPRAM? keep in reset so
-- that the CPU doesn't walk through the
-- whole address space trying to fetch
-- instructions (and sometimes freezing the interconnect)
-- no firmware in DPRAM? keep in reset so that the CPU doesn't walk through the
-- whole address space trying to fetch instructions (and sometimes freezing the interconnect)
rst_wrc_n
<=
'0'
;
end
if
;
else
...
...
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