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
15d89753
Commit
15d89753
authored
9 years ago
by
Gijs Schoonderbeek
Browse files
Options
Downloads
Patches
Plain Diff
added tc.number
parent
7620fd87
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
boards/uniboard2/designs/unb2_test/tb/python/tc_unb2_test_ddr.py
+12
-2
12 additions, 2 deletions
...uniboard2/designs/unb2_test/tb/python/tc_unb2_test_ddr.py
with
12 additions
and
2 deletions
boards/uniboard2/designs/unb2_test/tb/python/tc_unb2_test_ddr.py
+
12
−
2
View file @
15d89753
...
@@ -87,8 +87,10 @@ io.wait_for_time(hw_time=0.01, sim_time=(1, 'us'))
...
@@ -87,8 +87,10 @@ io.wait_for_time(hw_time=0.01, sim_time=(1, 'us'))
# Control defaults
# Control defaults
nof_mon
=
5
nof_mon
=
5
start_address
=
7
start_address
=
0
nof_words
=
100
#start_address = tc.number
#nof_words = 1000 #tc.number+10
nof_words
=
tc
.
number
for
rep
in
range
(
tc
.
repeat
):
for
rep
in
range
(
tc
.
repeat
):
tc
.
append_log
(
5
,
''
)
tc
.
append_log
(
5
,
''
)
...
@@ -110,6 +112,7 @@ for rep in range(tc.repeat):
...
@@ -110,6 +112,7 @@ for rep in range(tc.repeat):
# Set DDR controller in write mode and start writing
# Set DDR controller in write mode and start writing
io_ddr
[
mb
].
write_set_address
(
data
=
start_address
,
vLevel
=
5
)
io_ddr
[
mb
].
write_set_address
(
data
=
start_address
,
vLevel
=
5
)
# print 'nof_words=',nof_words
io_ddr
[
mb
].
write_access_size
(
data
=
nof_words
,
vLevel
=
5
)
io_ddr
[
mb
].
write_access_size
(
data
=
nof_words
,
vLevel
=
5
)
io_ddr
[
mb
].
write_mode_write
(
vLevel
=
5
)
io_ddr
[
mb
].
write_mode_write
(
vLevel
=
5
)
io_ddr
[
mb
].
write_begin_access
(
vLevel
=
5
)
io_ddr
[
mb
].
write_begin_access
(
vLevel
=
5
)
...
@@ -122,6 +125,12 @@ for rep in range(tc.repeat):
...
@@ -122,6 +125,12 @@ for rep in range(tc.repeat):
io
.
wait_for_time
(
hw_time
=
0.01
,
sim_time
=
(
1
,
'
us
'
))
io
.
wait_for_time
(
hw_time
=
0.01
,
sim_time
=
(
1
,
'
us
'
))
tx_seq_ddr
[
mb
].
read_cnt
(
vLevel
=
5
)
tx_seq_ddr
[
mb
].
read_cnt
(
vLevel
=
5
)
# for mb in mb_list:
# # Wait until controller write access is done
# do_until_eq(io_ddr[mb].read_done, ms_retry=3000, val=1, s_timeout=36000)
# tc.sleep(10.0)
for
mb
in
mb_list
:
for
mb
in
mb_list
:
# Wait until controller write access is done
# Wait until controller write access is done
do_until_eq
(
io_ddr
[
mb
].
read_done
,
ms_retry
=
3000
,
val
=
1
,
s_timeout
=
36000
)
do_until_eq
(
io_ddr
[
mb
].
read_done
,
ms_retry
=
3000
,
val
=
1
,
s_timeout
=
36000
)
...
@@ -138,6 +147,7 @@ for rep in range(tc.repeat):
...
@@ -138,6 +147,7 @@ for rep in range(tc.repeat):
io
.
wait_for_time
(
hw_time
=
0.01
,
sim_time
=
(
1
,
'
us
'
))
io
.
wait_for_time
(
hw_time
=
0.01
,
sim_time
=
(
1
,
'
us
'
))
rx_seq_ddr
[
mb
].
read_cnt
(
vLevel
=
5
)
rx_seq_ddr
[
mb
].
read_cnt
(
vLevel
=
5
)
# print "2"
for
mb
in
mb_list
:
for
mb
in
mb_list
:
# Wait until controller read access is done
# Wait until controller read access is done
do_until_eq
(
io_ddr
[
mb
].
read_done
,
ms_retry
=
3000
,
val
=
1
,
s_timeout
=
36000
)
do_until_eq
(
io_ddr
[
mb
].
read_done
,
ms_retry
=
3000
,
val
=
1
,
s_timeout
=
36000
)
...
...
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