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
9a6c734a
Commit
9a6c734a
authored
10 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
Default ctlr_mosi.burstsize <= burst_size fits all states.
parent
baf6c23f
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/io/ddr/src/vhdl/io_ddr_driver.vhd
+10
-14
10 additions, 14 deletions
libraries/io/ddr/src/vhdl/io_ddr_driver.vhd
with
10 additions
and
14 deletions
libraries/io/ddr/src/vhdl/io_ddr_driver.vhd
+
10
−
14
View file @
9a6c734a
...
...
@@ -170,8 +170,8 @@ BEGIN
ctlr_mosi
.
wr
<=
'0'
;
ctlr_mosi
.
rd
<=
'0'
;
ctlr_mosi
.
burstbegin
<=
'0'
;
-- only used for legacy DDR controllers, because the controller can derive it internally by counting wr and rd accesses
ctlr_mosi
.
burstsize
<=
(
OTHERS
=>
'0'
);
-- no need to hold during burst, because the Avalon constantBurstBehaviour=FALSE (default) of the DDR IP slave
ctlr_mosi
.
burstsize
<=
TO_MEM_CTLR_BURSTSIZE
(
burst_size
);
-- burstsize >= 1,
-- no need to hold during burst, because the Avalon constantBurstBehaviour=FALSE (default) of the DDR IP slave
wr_snk_out
.
ready
<=
'0'
;
nxt_dvr_done
<=
'0'
;
nxt_cur_address
<=
cur_address
;
...
...
@@ -202,7 +202,6 @@ BEGIN
wr_snk_out
.
ready
<=
'1'
;
ctlr_mosi
.
wr
<=
'1'
;
ctlr_mosi
.
burstbegin
<=
'1'
;
-- assert burstbegin,
ctlr_mosi
.
burstsize
<=
TO_MEM_CTLR_BURSTSIZE
(
burst_size
);
-- burstsize >= 1
nxt_cur_address
<=
INCR_UVEC
(
cur_address
,
burst_size
);
nxt_address_cnt
<=
INCR_UVEC
(
address_cnt
,
-
burst_size
);
nxt_burst_wr_cnt
<=
burst_size
-1
;
...
...
@@ -218,19 +217,16 @@ BEGIN
IF
address_cnt_is_0
=
'1'
THEN
-- end address reached
nxt_dvr_done
<=
'1'
;
nxt_state
<=
s_idle
;
ELS
E
ELS
IF
ctlr_miso
.
waitrequest_n
=
'1'
THEN
IF
rd_src_in
.
ready
=
'1'
THEN
-- the external FIFO uses almost full level assert its snk_out.ready and can then still accept the maximum rd burst of words
IF
ctlr_miso
.
waitrequest_n
=
'1'
THEN
ctlr_mosi
.
rd
<=
'1'
;
ctlr_mosi
.
burstbegin
<=
'1'
;
-- assert burstbegin,
ctlr_mosi
.
burstsize
<=
TO_MEM_CTLR_BURSTSIZE
(
burst_size
);
-- burstsize >= 1
nxt_cur_address
<=
INCR_UVEC
(
cur_address
,
burst_size
);
nxt_address_cnt
<=
INCR_UVEC
(
address_cnt
,
-
burst_size
);
-- Return for next rd request
nxt_state
<=
s_wait
;
END
IF
;
END
IF
;
END
IF
;
-- In this state address_cnt is valid and in the next state burst_size (that depends on address_cnt) will be valid.
-- Therefore this wait state is inserted between any requests.
...
...
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