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
d46c33ef
Commit
d46c33ef
authored
9 years ago
by
Zanting
Browse files
Options
Downloads
Patches
Plain Diff
Added new ddr versions
parent
e5d3bcf4
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
boards/uniboard1/designs/unb1_test/tb/vhdl/tb_unb1_test.vhd
+40
-15
40 additions, 15 deletions
boards/uniboard1/designs/unb1_test/tb/vhdl/tb_unb1_test.vhd
with
40 additions
and
15 deletions
boards/uniboard1/designs/unb1_test/tb/vhdl/tb_unb1_test.vhd
+
40
−
15
View file @
d46c33ef
...
@@ -75,8 +75,9 @@ ARCHITECTURE tb OF tb_unb1_test IS
...
@@ -75,8 +75,9 @@ ARCHITECTURE tb OF tb_unb1_test IS
CONSTANT
c_sa_clk_period
:
TIME
:
=
6
.
4
ns
;
CONSTANT
c_sa_clk_period
:
TIME
:
=
6
.
4
ns
;
CONSTANT
c_pps_period
:
NATURAL
:
=
1000
;
CONSTANT
c_pps_period
:
NATURAL
:
=
1000
;
CONSTANT
c_use_ddr
:
BOOLEAN
:
=
g_design_name
=
"unb1_test_ddr"
OR
g_design_name
=
"unb1_test_all"
;
CONSTANT
c_use_ddr_MB_I
:
BOOLEAN
:
=
g_design_name
=
"unb1_test_ddr_MB_I"
OR
g_design_name
=
"unb1_test_ddr_MB_I_II"
OR
g_design_name
=
"unb1_test_all"
;
CONSTANT
c_ddr
:
t_c_tech_ddr
:
=
c_tech_ddr3_4g_800m_master
;
CONSTANT
c_use_ddr_MB_II
:
BOOLEAN
:
=
g_design_name
=
"unb1_test_ddr_MB_II"
OR
g_design_name
=
"unb1_test_ddr_MB_I_II"
OR
g_design_name
=
"unb1_test_all"
;
CONSTANT
c_ddr
:
t_c_tech_ddr
:
=
c_tech_ddr3_4g_single_rank_800m_master
;
-- DUT
-- DUT
SIGNAL
clk
:
STD_LOGIC
:
=
'0'
;
SIGNAL
clk
:
STD_LOGIC
:
=
'0'
;
...
@@ -107,10 +108,15 @@ ARCHITECTURE tb OF tb_unb1_test IS
...
@@ -107,10 +108,15 @@ ARCHITECTURE tb OF tb_unb1_test IS
SIGNAL
si_fn_lpbk_2
:
STD_LOGIC_VECTOR
(
c_unb1_board_ci
.
tr
.
bus_w
-1
DOWNTO
0
);
SIGNAL
si_fn_lpbk_2
:
STD_LOGIC_VECTOR
(
c_unb1_board_ci
.
tr
.
bus_w
-1
DOWNTO
0
);
SIGNAL
si_fn_lpbk_3
:
STD_LOGIC_VECTOR
(
c_unb1_board_ci
.
tr
.
bus_w
-1
DOWNTO
0
);
SIGNAL
si_fn_lpbk_3
:
STD_LOGIC_VECTOR
(
c_unb1_board_ci
.
tr
.
bus_w
-1
DOWNTO
0
);
-- Signals to interface with the DDR3 memory model.
-- Signals to interface with the MB_I DDR3 memory model.
SIGNAL
phy_in
:
t_tech_ddr3_phy_in
;
SIGNAL
phy_MB_I_in
:
t_tech_ddr3_phy_in
;
SIGNAL
phy_io
:
t_tech_ddr3_phy_io
;
SIGNAL
phy_MB_I_io
:
t_tech_ddr3_phy_io
;
SIGNAL
phy_ou
:
t_tech_ddr3_phy_ou
;
SIGNAL
phy_MB_I_ou
:
t_tech_ddr3_phy_ou
;
-- Signals to interface with the MB_II DDR3 memory model.
SIGNAL
phy_MB_II_in
:
t_tech_ddr3_phy_in
;
SIGNAL
phy_MB_II_io
:
t_tech_ddr3_phy_io
;
SIGNAL
phy_MB_II_ou
:
t_tech_ddr3_phy_ou
;
-- Model I2C sensor slaves as on the UniBoard
-- Model I2C sensor slaves as on the UniBoard
CONSTANT
c_fpga_temp_address
:
STD_LOGIC_VECTOR
(
6
DOWNTO
0
)
:
=
"0011000"
;
-- MAX1618 address LOW LOW
CONSTANT
c_fpga_temp_address
:
STD_LOGIC_VECTOR
(
6
DOWNTO
0
)
:
=
"0011000"
;
-- MAX1618 address LOW LOW
...
@@ -202,23 +208,42 @@ BEGIN
...
@@ -202,23 +208,42 @@ BEGIN
BN_BI_3_TX
=>
OPEN
,
BN_BI_3_TX
=>
OPEN
,
BN_BI_3_RX
=>
(
OTHERS
=>
'0'
),
BN_BI_3_RX
=>
(
OTHERS
=>
'0'
),
MB_I_IN
=>
phy_in
,
MB_I_IN
=>
phy_MB_I_in
,
MB_I_IO
=>
phy_io
,
MB_I_IO
=>
phy_MB_I_io
,
MB_I_OU
=>
phy_ou
MB_I_OU
=>
phy_MB_I_ou
,
MB_II_IN
=>
phy_MB_II_in
,
MB_II_IO
=>
phy_MB_II_io
,
MB_II_OU
=>
phy_MB_II_ou
);
);
------------------------------------------------------------------------------
------------------------------------------------------------------------------
-- DDR3 memory model
-- MB_I DDR3 memory model
------------------------------------------------------------------------------
gen_tech_ddr_memory_model_MB_I
:
IF
c_use_ddr_MB_I
=
TRUE
GENERATE
u_tech_ddr_memory_model_MB_I
:
ENTITY
tech_ddr_lib
.
tech_ddr_memory_model
GENERIC
MAP
(
g_tech_ddr
=>
c_ddr
)
PORT
MAP
(
mem3_in
=>
phy_MB_I_ou
,
mem3_io
=>
phy_MB_I_io
,
mem3_ou
=>
phy_MB_I_in
);
END
GENERATE
;
------------------------------------------------------------------------------
-- MB_II DDR3 memory model
------------------------------------------------------------------------------
------------------------------------------------------------------------------
gen_tech_ddr_memory_model
:
IF
c_use_ddr
=
TRUE
GENERATE
gen_tech_ddr_memory_model
_MB_II
:
IF
c_use_ddr
_MB_II
=
TRUE
GENERATE
u_tech_ddr_memory_model
:
ENTITY
tech_ddr_lib
.
tech_ddr_memory_model
u_tech_ddr_memory_model
_MB_II
:
ENTITY
tech_ddr_lib
.
tech_ddr_memory_model
GENERIC
MAP
(
GENERIC
MAP
(
g_tech_ddr
=>
c_ddr
g_tech_ddr
=>
c_ddr
)
)
PORT
MAP
(
PORT
MAP
(
mem3_in
=>
phy_ou
,
mem3_in
=>
phy_
MB_II_
ou
,
mem3_io
=>
phy_io
,
mem3_io
=>
phy_
MB_II_
io
,
mem3_ou
=>
phy_in
mem3_ou
=>
phy_
MB_II_
in
);
);
END
GENERATE
;
END
GENERATE
;
...
...
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