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
6b928216
Commit
6b928216
authored
10 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Change c_nof_channels constant into generic.
parent
2a83f59b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libraries/technology/10gbase_r/tb_tech_10gbase_r.vhd
+13
-13
13 additions, 13 deletions
libraries/technology/10gbase_r/tb_tech_10gbase_r.vhd
with
13 additions
and
13 deletions
libraries/technology/10gbase_r/tb_tech_10gbase_r.vhd
+
13
−
13
View file @
6b928216
...
@@ -48,7 +48,8 @@ USE tech_pll_lib.tech_pll_component_pkg.ALL;
...
@@ -48,7 +48,8 @@ USE tech_pll_lib.tech_pll_component_pkg.ALL;
ENTITY
tb_tech_10gbase_r
IS
ENTITY
tb_tech_10gbase_r
IS
-- Test bench control parameters
-- Test bench control parameters
GENERIC
(
GENERIC
(
g_technology
:
NATURAL
:
=
c_tech_select_default
g_technology
:
NATURAL
:
=
c_tech_select_default
;
g_nof_channels
:
NATURAL
:
=
24
);
);
END
tb_tech_10gbase_r
;
END
tb_tech_10gbase_r
;
...
@@ -58,7 +59,6 @@ ARCHITECTURE tb OF tb_tech_10gbase_r IS
...
@@ -58,7 +59,6 @@ ARCHITECTURE tb OF tb_tech_10gbase_r IS
CONSTANT
c_sim
:
BOOLEAN
:
=
TRUE
;
CONSTANT
c_sim
:
BOOLEAN
:
=
TRUE
;
CONSTANT
c_sim_level
:
NATURAL
:
=
0
;
-- 0 = use IP; 1 = use fast serdes model (not useful here, because no proper xgmii_tx_dc_arr stimuli)
CONSTANT
c_sim_level
:
NATURAL
:
=
0
;
-- 0 = use IP; 1 = use fast serdes model (not useful here, because no proper xgmii_tx_dc_arr stimuli)
CONSTANT
phy_loopback_delay
:
TIME
:
=
sel_a_b
(
c_sim_level
=
0
,
1
ns
,
0
ns
);
CONSTANT
phy_loopback_delay
:
TIME
:
=
sel_a_b
(
c_sim_level
=
0
,
1
ns
,
0
ns
);
CONSTANT
c_nof_channels
:
NATURAL
:
=
2
;
SIGNAL
tb_end
:
STD_LOGIC
:
=
'0'
;
SIGNAL
tb_end
:
STD_LOGIC
:
=
'0'
;
SIGNAL
tr_ref_clk_644
:
STD_LOGIC
:
=
'0'
;
SIGNAL
tr_ref_clk_644
:
STD_LOGIC
:
=
'0'
;
...
@@ -66,17 +66,17 @@ ARCHITECTURE tb OF tb_tech_10gbase_r IS
...
@@ -66,17 +66,17 @@ ARCHITECTURE tb OF tb_tech_10gbase_r IS
SIGNAL
rst_156
:
STD_LOGIC
;
SIGNAL
rst_156
:
STD_LOGIC
;
-- XGMII interface
-- XGMII interface
SIGNAL
xgmii_tx_ready_arr
:
STD_LOGIC_VECTOR
(
c
_nof_channels
-1
DOWNTO
0
);
SIGNAL
xgmii_tx_ready_arr
:
STD_LOGIC_VECTOR
(
g
_nof_channels
-1
DOWNTO
0
);
SIGNAL
xgmii_rx_ready_arr
:
STD_LOGIC_VECTOR
(
c
_nof_channels
-1
DOWNTO
0
);
SIGNAL
xgmii_rx_ready_arr
:
STD_LOGIC_VECTOR
(
g
_nof_channels
-1
DOWNTO
0
);
SIGNAL
xgmii_tx_dc_arr
:
t_xgmii_dc_arr
(
c
_nof_channels
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
(
OTHERS
=>
'0'
));
-- '0', '1'
SIGNAL
xgmii_tx_dc_arr
:
t_xgmii_dc_arr
(
g
_nof_channels
-1
DOWNTO
0
)
:
=
(
OTHERS
=>
(
OTHERS
=>
'0'
));
-- '0', '1'
SIGNAL
xgmii_rx_dc_arr
:
t_xgmii_dc_arr
(
c
_nof_channels
-1
DOWNTO
0
);
SIGNAL
xgmii_rx_dc_arr
:
t_xgmii_dc_arr
(
g
_nof_channels
-1
DOWNTO
0
);
-- PHY serial interface
-- PHY serial interface
--SIGNAL link_fault : STD_LOGIC := '1'; -- model initial link fault
--SIGNAL link_fault : STD_LOGIC := '1'; -- model initial link fault
SIGNAL
link_fault
:
STD_LOGIC
:
=
'0'
;
SIGNAL
link_fault
:
STD_LOGIC
:
=
'0'
;
SIGNAL
tx_serial_arr
:
STD_LOGIC_VECTOR
(
c
_nof_channels
-1
DOWNTO
0
);
SIGNAL
tx_serial_arr
:
STD_LOGIC_VECTOR
(
g
_nof_channels
-1
DOWNTO
0
);
SIGNAL
tx_serial_arr_dly
:
STD_LOGIC_VECTOR
(
c
_nof_channels
-1
DOWNTO
0
);
SIGNAL
tx_serial_arr_dly
:
STD_LOGIC_VECTOR
(
g
_nof_channels
-1
DOWNTO
0
);
SIGNAL
rx_serial_arr
:
STD_LOGIC_VECTOR
(
c
_nof_channels
-1
DOWNTO
0
);
SIGNAL
rx_serial_arr
:
STD_LOGIC_VECTOR
(
g
_nof_channels
-1
DOWNTO
0
);
BEGIN
BEGIN
...
@@ -110,10 +110,10 @@ BEGIN
...
@@ -110,10 +110,10 @@ BEGIN
dut
:
ENTITY
work
.
tech_10gbase_r
dut
:
ENTITY
work
.
tech_10gbase_r
GENERIC
MAP
(
GENERIC
MAP
(
g_technology
=>
g_technology
,
g_technology
=>
g_technology
,
g_sim
=>
c_sim
,
g_sim
=>
c_sim
,
g_sim_level
=>
c_sim_level
,
g_sim_level
=>
c_sim_level
,
g_nof_channels
=>
c
_nof_channels
g_nof_channels
=>
g
_nof_channels
)
)
PORT
MAP
(
PORT
MAP
(
-- Transceiver ATX PLL reference clock
-- Transceiver ATX PLL reference clock
...
...
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