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
2b23147c
Commit
2b23147c
authored
10 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Added c_use_sim_model for sim_10gbase_r.
parent
c931eba7
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/10gbase_r/tech_10gbase_r.vhd
+14
-1
14 additions, 1 deletion
libraries/technology/10gbase_r/tech_10gbase_r.vhd
with
14 additions
and
1 deletion
libraries/technology/10gbase_r/tech_10gbase_r.vhd
+
14
−
1
View file @
2b23147c
...
...
@@ -31,6 +31,7 @@ ENTITY tech_10gbase_r IS
GENERIC
(
g_technology
:
NATURAL
:
=
c_tech_select_default
;
g_sim
:
BOOLEAN
:
=
FALSE
;
g_sim_level
:
NATURAL
:
=
0
;
-- 0 = use IP; 1 = use fast serdes model
g_nof_channels
:
NATURAL
:
=
1
);
PORT
(
...
...
@@ -56,9 +57,12 @@ END tech_10gbase_r;
ARCHITECTURE
str
OF
tech_10gbase_r
IS
CONSTANT
c_use_technology
:
BOOLEAN
:
=
g_sim
=
FALSE
OR
g_sim_level
=
0
;
CONSTANT
c_use_sim_model
:
BOOLEAN
:
=
NOT
c_use_technology
;
BEGIN
gen_ip_arria10
:
IF
g_technology
=
c_tech_arria10
GENERATE
gen_ip_arria10
:
IF
c_use_technology
=
TRUE
AND
g_technology
=
c_tech_arria10
GENERATE
u0
:
ENTITY
work
.
tech_10gbase_r_arria10
GENERIC
MAP
(
g_sim
,
g_nof_channels
)
PORT
MAP
(
tr_ref_clk_644
,
...
...
@@ -67,5 +71,14 @@ BEGIN
tx_serial_arr
,
rx_serial_arr
);
END
GENERATE
;
gem_sim_10gbase_r
:
IF
c_use_sim_model
=
TRUE
GENERATE
u0
:
ENTITY
work
.
sim_10gbase_r
GENERIC
MAP
(
g_sim
,
g_nof_channels
)
PORT
MAP
(
tr_ref_clk_644
,
clk_156
,
rst_156
,
xgmii_tx_ready_arr
,
xgmii_rx_ready_arr
,
xgmii_tx_dc_arr
,
xgmii_rx_dc_arr
,
tx_serial_arr
,
rx_serial_arr
);
END
GENERATE
;
END
str
;
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