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
80ba2261
Commit
80ba2261
authored
10 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Renamed g_sim into g_use_ddr_memory_model.
parent
fc437369
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
libraries/technology/ddr/tech_ddr.vhd
+12
-10
12 additions, 10 deletions
libraries/technology/ddr/tech_ddr.vhd
with
12 additions
and
10 deletions
libraries/technology/ddr/tech_ddr.vhd
+
12
−
10
View file @
80ba2261
...
@@ -24,9 +24,11 @@
...
@@ -24,9 +24,11 @@
-- Description:
-- Description:
-- The component also supports different types of DDR, so DDR3 and DDR4.
-- The component also supports different types of DDR, so DDR3 and DDR4.
-- Remark:
-- Remark:
-- In simulation use g_sim=TRUE to also include the DDR memory model that is
-- In simulation use g_use_ddr_memory_model=TRUE to also include the DDR
-- internally available within tech_ddr. This avoids having to connect a DDR
-- memory model that is internally available within tech_ddr. This avoids
-- memory model at top level in the test bench.
-- having to connect a DDR memory model at top level in the test bench.
-- Default g_use_ddr_memory_model must be FALSE to avoid further analysis
-- of the DDR memory model component by synthesis.
LIBRARY
IEEE
,
common_lib
,
technology_lib
;
LIBRARY
IEEE
,
common_lib
,
technology_lib
;
USE
IEEE
.
STD_LOGIC_1164
.
ALL
;
USE
IEEE
.
STD_LOGIC_1164
.
ALL
;
...
@@ -39,7 +41,7 @@ ENTITY tech_ddr IS
...
@@ -39,7 +41,7 @@ ENTITY tech_ddr IS
GENERIC
(
GENERIC
(
g_technology
:
NATURAL
:
=
c_tech_select_default
;
g_technology
:
NATURAL
:
=
c_tech_select_default
;
g_tech_ddr
:
t_c_tech_ddr
;
g_tech_ddr
:
t_c_tech_ddr
;
g_
sim
:
BOOLEAN
:
=
FALSE
g_
use_ddr_memory_model
:
BOOLEAN
:
=
FALSE
);
);
PORT
(
PORT
(
-- PLL reference clock
-- PLL reference clock
...
@@ -90,15 +92,15 @@ BEGIN
...
@@ -90,15 +92,15 @@ BEGIN
phy_in
,
phy_io
,
i_phy_ou
);
phy_in
,
phy_io
,
i_phy_ou
);
END
GENERATE
;
END
GENERATE
;
-- Include DDR memory model for simulation
-- Include DDR memory model
only
for simulation
no_
sim
:
IF
g_sim
=
FALSE
GENERATE
no_
ddr_memory_model
:
IF
g_use_ddr_memory_model
=
FALSE
GENERATE
phy_ou
<=
i_phy_ou
;
phy_ou
<=
i_phy_ou
;
END
GENERATE
;
END
GENERATE
;
gen_
sim
:
IF
g_sim
=
TRUE
GENERATE
gen_
ddr_memory_model
:
IF
g_use_ddr_memory_model
=
TRUE
GENERATE
u_tech_ddr_memory_model
:
ENTITY
work
.
tech_ddr_memory_model
u_tech_ddr_memory_model
:
ENTITY
work
.
tech_ddr_memory_model
GENERIC
MAP
(
GENERIC
MAP
(
g_sim
=>
g_sim
,
g_sim
=>
g_use_ddr_memory_model
,
g_tech_ddr
=>
g_tech_ddr
g_tech_ddr
=>
g_tech_ddr
)
)
PORT
MAP
(
PORT
MAP
(
...
...
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