Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
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
Simple PCIe FMC carrier SPEC
Commits
6d10688e
Commit
6d10688e
authored
Jul 12, 2019
by
Dimitris Lampridis
Committed by
Tristan Gingold
Jul 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
expose reference clk and reset, rework reset logic, add keep attributes.
parent
d696b8e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
4 deletions
+29
-4
spec_template_wr.vhd
hdl/rtl/spec_template_wr.vhd
+29
-4
No files found.
hdl/rtl/spec_template_wr.vhd
View file @
6d10688e
...
...
@@ -229,6 +229,8 @@ entity spec_template_wr is
-- Clocks and reset.
clk_sys_62m5_o
:
out
std_logic
;
rst_sys_62m5_n_o
:
out
std_logic
;
clk_ref_125m_o
:
out
std_logic
;
rst_ref_125m_n_o
:
out
std_logic
;
-- Interrupts
irq_user_i
:
in
std_logic_vector
(
g_NUM_USER_IRQ
+
5
downto
6
)
:
=
(
others
=>
'0'
);
...
...
@@ -326,10 +328,12 @@ architecture top of spec_template_wr is
signal
wrc_out
:
t_wishbone_master_out
;
signal
wrc_out_sh
:
t_wishbone_master_out
;
signal
csr_rst_app
:
std_logic
;
signal
csr_rst_gbl
:
std_logic
;
signal
csr_rst_app
:
std_logic
;
signal
rst_csr_app_n
:
std_logic
;
signal
rst_csr_app_sync_n
:
std_logic
;
signal
rst_app_n
:
std_logic
;
signal
rst_gbl_n
:
std_logic
;
signal
fmc0_scl_out
,
fmc0_sda_out
:
std_logic
;
...
...
@@ -370,6 +374,13 @@ architecture top of spec_template_wr is
signal
wrc_pps_out
:
std_logic
;
signal
wrc_pps_led
:
std_logic
;
signal
wrc_pps_in
:
std_logic
;
attribute
keep
:
string
;
attribute
keep
of
clk_sys_62m5
:
signal
is
"TRUE"
;
attribute
keep
of
clk_ref_125m
:
signal
is
"TRUE"
;
attribute
keep
of
clk_ddr_333m
:
signal
is
"TRUE"
;
attribute
keep
of
ddr_rst
:
signal
is
"TRUE"
;
begin
-- architecture top
------------------------------------------------------------------------------
...
...
@@ -659,12 +670,26 @@ begin -- architecture top
fmc_presence
(
31
downto
1
)
<=
(
others
=>
'0'
);
rst_gbl_n
<=
rst_sys_62m5_n
and
(
not
csr_rst_gbl
);
rst_app_n
<=
rst_gbl_n
and
(
not
csr_rst_app
);
-- reset for DDR including soft reset.
-- This is treated as async and will be re-synced by the DDR controller
ddr_rst
<=
not
rst_ddr_333m_n
or
csr_rst_gbl
;
rst_sys_62m5_n_o
<=
rst_app_n
;
rst_csr_app_n
<=
not
(
csr_rst_gbl
or
csr_rst_app
);
rst_sys_62m5_n_o
<=
rst_sys_62m5_n
and
rst_csr_app_n
;
clk_sys_62m5_o
<=
clk_sys_62m5
;
i_rst_csr_app_sync
:
gc_sync_ffs
port
map
(
clk_i
=>
clk_ref_125m
,
rst_n_i
=>
'1'
,
data_i
=>
rst_csr_app_n
,
synced_o
=>
rst_csr_app_sync_n
);
rst_ref_125m_n_o
<=
rst_ref_125m_n
and
rst_csr_app_sync_n
;
clk_ref_125m_o
<=
clk_ref_125m
;
i_i2c
:
entity
work
.
xwb_i2c_master
generic
map
(
g_interface_mode
=>
CLASSIC
,
...
...
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