Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC DEL 1ns 4cha
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
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
FMC DEL 1ns 4cha
Commits
605a1ff8
Commit
605a1ff8
authored
Aug 29, 2011
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Separated reset generation from the top-level core
parent
7ed59b0d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
59 additions
and
0 deletions
+59
-0
fd_reset_generator.vhd
hdl/rtl/fd_reset_generator.vhd
+59
-0
No files found.
hdl/rtl/fd_reset_generator.vhd
0 → 100644
View file @
605a1ff8
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
use
work
.
fd_wbgen2_pkg
.
all
;
entity
fd_reset_generator
is
port
(
clk_sys_i
:
in
std_logic
;
clk_ref_i
:
in
std_logic
;
rst_n_i
:
in
std_logic
;
rst_n_sys_o
:
out
std_logic
;
rst_n_ref_o
:
out
std_logic
;
regs_b
:
inout
t_fd_registers
);
end
fd_reset_generator
;
architecture
behavioral
of
fd_reset_generator
is
constant
c_RSTR_TRIGGER_VALUE
:
std_logic_vector
(
31
downto
0
)
:
=
x"deadbeef"
;
signal
rstn_host_sysclk
:
std_logic
;
signal
rstn_host_refclk
:
std_logic
;
signal
rstn_host_d0
:
std_logic
;
signal
rstn_host_d1
:
std_logic
;
begin
-- behavioral
p_soft_reset
:
process
(
clk_sys_i
)
begin
if
rising_edge
(
clk_sys_i
)
then
if
(
rst_n_i
=
'0'
)
then
rstn_host_sysclk
<=
'0'
;
else
if
(
regs
.
rstr_wr_o
=
'1'
and
regs
.
rstr_o
=
c_RSTR_TRIGGER_VALUE
)
then
rstn_host_sysclk
<=
'0'
;
else
rstn_host_sysclk
<=
'1'
;
end
if
;
end
if
;
end
if
;
end
process
;
p_sync_reset_refclk
:
process
(
clk_ref_i
)
begin
if
rising_edge
(
clk_ref_i
)
then
rstn_host_refclk
<=
rst_n_i
and
rstn_host_sysclk
;
rstn_host_d0
<=
rstn_host_sysclk
;
rstn_host_d1
<=
rstn_host_d0
;
rstn_host_refclk
<=
rstn_host_d1
;
end
if
;
end
process
;
rst_n_ref_o
<=
rstn_host_sysclk
;
rst_n_sys_o
<=
rstn_host_refclk
;
end
behavioral
;
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