Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
HDL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RTSD
HDL
Commits
39cff917
Commit
39cff917
authored
10 months ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Generate completely independent 2009 and 2024 versions dependent on g_tree_len.
parent
f2b6cd2d
No related branches found
No related tags found
1 merge request
!418
Do not assign default value for g_reset in common_fifo_sc. To avoid clutter in...
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/base/common/src/vhdl/common_areset.vhd
+29
-17
29 additions, 17 deletions
libraries/base/common/src/vhdl/common_areset.vhd
with
29 additions
and
17 deletions
libraries/base/common/src/vhdl/common_areset.vhd
+
29
−
17
View file @
39cff917
...
@@ -79,6 +79,7 @@ begin
...
@@ -79,6 +79,7 @@ begin
-- 2009
-- 2009
-- Capture asynchronous reset assertion, to also support i_rst when there is
-- Capture asynchronous reset assertion, to also support i_rst when there is
-- no clk.
-- no clk.
without_pipe
:
if
g_tree_len
=
0
generate
u_async
:
entity
work
.
common_async
u_async
:
entity
work
.
common_async
generic
map
(
generic
map
(
g_rst_level
=>
c_out_rst_level
,
g_rst_level
=>
c_out_rst_level
,
...
@@ -88,20 +89,31 @@ begin
...
@@ -88,20 +89,31 @@ begin
rst
=>
i_rst
,
rst
=>
i_rst
,
clk
=>
clk
,
clk
=>
clk
,
din
=>
c_out_rst_level_n
,
din
=>
c_out_rst_level_n
,
dout
=>
o_rst
dout
=>
o
ut
_rst
);
);
end
generate
;
-- 2024
-- 2024
-- Pass on synchronized reset with sufficient g_tree_len to ease timing
-- Pass on synchronized reset with sufficient g_tree_len to ease timing
-- closure by FF duplication in out_rst tree. Keep rst = '0' to break
-- closure by FF duplication in out_rst tree. Keep rst = '0' to break
-- combinatorial path with in_rst to ease timing closure in the reset tree
-- combinatorial path with in_rst to ease timing closure in the reset tree
-- network. Use g_tree_len = 0 for wire out_rst <= o_rst, so no reset tree
-- network. Use g_tree_len = 0 for no clocked reset tree as in 2009.
-- as in 2009.
-- Instantiate u_async again to keep 2009 and 2024 completely independent.
no_pipe
:
if
g_tree_len
=
0
generate
-- To avoid delta-cycle differences due to e.g. out_rst <= o_rst when
out_rst
<=
o_rst
;
-- wires
-- g_tree_len = 0, that could lead to different results in a simulation tb.
end
generate
;
with_pipe
:
if
g_tree_len
>
0
generate
u_async
:
entity
work
.
common_async
generic
map
(
g_rst_level
=>
c_out_rst_level
,
g_delay_len
=>
g_delay_len
)
port
map
(
rst
=>
i_rst
,
clk
=>
clk
,
din
=>
c_out_rst_level_n
,
dout
=>
o_rst
);
gen_pipe
:
if
g_tree_len
>
0
generate
u_pipe
:
entity
work
.
common_async
u_pipe
:
entity
work
.
common_async
generic
map
(
generic
map
(
g_rst_level
=>
c_out_rst_level
,
g_rst_level
=>
c_out_rst_level
,
...
...
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