Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
comcellnode_ethernet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
DG
FOFB
comcellnode_ethernet
Commits
0bd31e96
Commit
0bd31e96
authored
Feb 21, 2024
by
BRONES Romain
Browse files
Options
Downloads
Patches
Plain Diff
fix: Corrections on reset engine
parent
c41feaaa
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
hdl/ccn_ethernet_reset.vhd
+21
-16
21 additions, 16 deletions
hdl/ccn_ethernet_reset.vhd
with
21 additions
and
16 deletions
hdl/ccn_ethernet_reset.vhd
+
21
−
16
View file @
0bd31e96
...
...
@@ -2,6 +2,9 @@
library
ieee
;
use
ieee
.
std_logic_1164
.
all
;
library
xpm
;
use
xpm
.
vcomponents
.
all
;
entity
ccn_ethernet_reset
is
port
(
...
...
@@ -33,11 +36,11 @@ port(
core_tx_rst_i
:
in
std_logic
;
core_tx_rst_o
:
out
std_logic
;
core_rx_rst_i
:
in
std_logic
;
-- registered on txusrclk
core_rx_rst_o
:
out
std_logic
;
core_rx_rst_o
:
out
std_logic
);
end
entity
;
architecture
rtl
of
ccn_ethernet_reset
architecture
rtl
of
ccn_ethernet_reset
is
signal
r_ctl_all_rst
:
std_logic
;
signal
r_ctl_rx_rst
:
std_logic
;
...
...
@@ -53,7 +56,7 @@ architecture rtl of ccn_ethernet_reset
signal
r_core_rx_rst
:
std_logic
;
signal
s_core_rx_rst
:
std_logic
;
signal
s_gt_serdes_rx_rst
:
std_logic
signal
s_gt_serdes_rx_rst
:
std_logic
;
begin
...
...
@@ -64,7 +67,7 @@ begin
-- registers ctl rst
process
(
s_axi_aclk
)
begin
if
rising_edge
(
s_axi_aclk
)
if
rising_edge
(
s_axi_aclk
)
then
r_ctl_all_rst
<=
ctl_all_rst_i
;
r_ctl_tx_rst
<=
ctl_tx_rst_i
;
r_ctl_rx_rst
<=
ctl_rx_rst_i
;
...
...
@@ -75,21 +78,21 @@ begin
inst_cdc_freeclk_all
:
xpm_cdc_sync_rst
port
map
(
dest_clk
=>
freeclk
,
dest_rst
_out
=>
s_ctl_all_rst
,
dest_rst
=>
s_ctl_all_rst
,
src_rst
=>
r_ctl_all_rst
);
inst_cdc_freeclk_rx
:
xpm_cdc_sync_rst
port
map
(
dest_clk
=>
freeclk
,
dest_rst
_out
=>
s_ctl_rx_rst
,
dest_rst
=>
s_ctl_rx_rst
,
src_rst
=>
r_ctl_rx_rst
);
inst_cdc_freeclk_tx
:
xpm_cdc_sync_rst
port
map
(
dest_clk
=>
freeclk
,
dest_rst
_out
=>
s_ctl_tx_rst
,
dest_rst
=>
s_ctl_tx_rst
,
src_rst
=>
r_ctl_tx_rst
);
...
...
@@ -105,15 +108,15 @@ begin
-- CDC to GT txusrclk
inst_cdc_txusrclk_rx
:
xpm_cdc_sync_rst
port
map
(
dest_clk
=>
gt_tx_usrclk
dest_rst
_out
=>
s_gt_tx_rst
,
dest_clk
=>
gt_tx_usrclk
,
dest_rst
=>
s_gt_tx_rst
,
src_rst
=>
gt_tx_rst_i
);
inst_cdc_rxusrclk_rx
:
xpm_cdc_sync_rst
port
map
(
dest_clk
=>
gt_tx_usrclk
dest_rst
_out
=>
s_gt_rx_rst
,
dest_clk
=>
gt_tx_usrclk
,
dest_rst
=>
s_gt_rx_rst
,
src_rst
=>
gt_rx_rst_i
);
...
...
@@ -124,7 +127,7 @@ begin
process
(
gt_tx_usrclk
)
begin
if
rising_edge
(
gt_tx_usrclk
)
then
r_core_
n
rst
<=
(
not
s_gt_rx_rst
)
or
core_rx_rst_i
;
r_core_
rx_
rst
<=
(
not
s_gt_rx_rst
)
or
core_rx_rst_i
;
end
if
;
end
process
;
...
...
@@ -137,24 +140,26 @@ begin
inst_cdc_rxusrclk
:
xpm_cdc_sync_rst
port
map
(
dest_clk
=>
gt_rx_usrclk
,
dest_rst
_out
=>
s_gt_serdes_rx_rst
,
dest_rst
=>
s_gt_serdes_rx_rst
,
src_rst
=>
r_core_rx_rst
);
-- output on GT rxusrclk
gt_serdes_rx_rst_o
<=
s_gt_serdes_rx_rst
gt_serdes_rx_rst_o
<=
s_gt_serdes_rx_rst
;
----------
-- CORE --
----------
-- CDC to rx core clk
inst_cdc_rx
usr
clk
:
xpm_cdc_sync_rst
inst_cdc_rx
core
clk
:
xpm_cdc_sync_rst
port
map
(
dest_clk
=>
core_rx_clk
,
dest_rst
_out
=>
s_core_rx_rst
,
dest_rst
=>
s_core_rx_rst
,
src_rst
=>
r_core_rx_rst
);
-- ouput on rx core clk
core_rx_rst_o
<=
s_core_rx_rst
;
end
architecture
rtl
;
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment