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
3acc83a1
Commit
3acc83a1
authored
9 years ago
by
Zanting
Browse files
Options
Downloads
Patches
Plain Diff
Removed unused pi_ddr3. Added ddr.write_flush_pulse().
parent
1df5cd49
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_ddr3/tb/python/tc_unb1_ddr3_seq.py
+6
-8
6 additions, 8 deletions
...uniboard1/designs/unb1_ddr3/tb/python/tc_unb1_ddr3_seq.py
with
6 additions
and
8 deletions
boards/uniboard1/designs/unb1_ddr3/tb/python/tc_unb1_ddr3_seq.py
+
6
−
8
View file @
3acc83a1
...
@@ -33,7 +33,6 @@ Usage:
...
@@ -33,7 +33,6 @@ Usage:
# System imports
# System imports
import
test_case
import
test_case
import
node_io
import
node_io
import
pi_ddr3
import
pi_diag_block_gen
import
pi_diag_block_gen
import
pi_diag_tx_seq
import
pi_diag_tx_seq
import
pi_diag_data_buffer
import
pi_diag_data_buffer
...
@@ -61,17 +60,12 @@ io = node_io.NodeIO(tc.nodeImages, tc.base_ip)
...
@@ -61,17 +60,12 @@ io = node_io.NodeIO(tc.nodeImages, tc.base_ip)
# Create instances for the periperals
# Create instances for the periperals
c_nof_streams
=
1
c_nof_streams
=
1
c_nof_ddr3
=
1
# possible options: 1 or 2
bg
=
pi_diag_block_gen
.
PiDiagBlockGen
(
tc
,
io
,
nofChannels
=
c_nof_streams
,
ramSizePerChannel
=
2
**
14
)
bg
=
pi_diag_block_gen
.
PiDiagBlockGen
(
tc
,
io
,
nofChannels
=
c_nof_streams
,
ramSizePerChannel
=
2
**
14
)
db
=
pi_diag_data_buffer
.
PiDiagDataBuffer
(
tc
,
io
,
nofStreams
=
c_nof_streams
)
db
=
pi_diag_data_buffer
.
PiDiagDataBuffer
(
tc
,
io
,
nofStreams
=
c_nof_streams
)
tx_seq
=
pi_diag_tx_seq
.
PiDiagTxSeq
(
tc
,
io
,
nof_inst
=
c_nof_streams
)
tx_seq
=
pi_diag_tx_seq
.
PiDiagTxSeq
(
tc
,
io
,
nof_inst
=
c_nof_streams
)
rx_seq
=
pi_diag_rx_seq
.
PiDiagRxSeq
(
tc
,
io
,
nof_inst
=
c_nof_streams
)
rx_seq
=
pi_diag_rx_seq
.
PiDiagRxSeq
(
tc
,
io
,
nof_inst
=
c_nof_streams
)
ddr3
=
[]
for
i
in
range
(
c_nof_ddr3
):
ddr3
.
append
(
pi_ddr3
.
PiDDR3
(
tc
,
io
,
[
i
]))
# Create object for DDR register map
# Create object for DDR register map
ddr
=
pi_io_ddr
.
PiIoDdr
(
tc
,
io
,
nof_inst
=
1
)
ddr
=
pi_io_ddr
.
PiIoDdr
(
tc
,
io
,
nof_inst
=
1
)
...
@@ -88,11 +82,15 @@ rx_seq.write_disable()
...
@@ -88,11 +82,15 @@ rx_seq.write_disable()
# Read RX Sequencer result before run
# Read RX Sequencer result before run
rx_seq
.
read_result
()
rx_seq
.
read_result
()
# Wait for the DDR
3
to become available
# Wait for the DDR
memory
to become available
#ddr.read_io_ddr()
#ddr.read_io_ddr()
do_until_eq
(
ddr
.
read_init_done
,
ms_retry
=
3000
,
val
=
1
,
s_timeout
=
3600
)
do_until_eq
(
ddr
.
read_init_done
,
ms_retry
=
3000
,
val
=
1
,
s_timeout
=
3600
)
# Set DDR3 controller in write mode and start writing
# Flush Tx FIFO
ddr
.
write_flush_pulse
()
io
.
wait_for_time
(
hw_time
=
0.01
,
sim_time
=
(
1
,
'
us
'
))
# Set DDR controller in write mode and start writing
start_address
=
0
start_address
=
0
nof_words
=
100
nof_words
=
100
ddr
.
set_address
(
data
=
start_address
)
ddr
.
set_address
(
data
=
start_address
)
...
...
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