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
45dea166
Commit
45dea166
authored
10 years ago
by
Eric Kooistra
Browse files
Options
Downloads
Patches
Plain Diff
use func_tech_ddr_dq_address() for end_address, start_address and for cur_addr.
parent
16ad05ed
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/io/ddr/src/vhdl/io_ddr_driver.vhd
+5
-9
5 additions, 9 deletions
libraries/io/ddr/src/vhdl/io_ddr_driver.vhd
with
5 additions
and
9 deletions
libraries/io/ddr/src/vhdl/io_ddr_driver.vhd
+
5
−
9
View file @
45dea166
...
@@ -35,8 +35,8 @@ ENTITY io_ddr_driver IS
...
@@ -35,8 +35,8 @@ ENTITY io_ddr_driver IS
clk
:
IN
STD_LOGIC
;
clk
:
IN
STD_LOGIC
;
rst
:
IN
STD_LOGIC
;
rst
:
IN
STD_LOGIC
;
ctlr_rdy
:
IN
STD_LOGIC
;
ctlr_init_done
:
IN
STD_LOGIC
;
ctlr_init_done
:
IN
STD_LOGIC
;
ctlr_rdy
:
IN
STD_LOGIC
;
ctlr_burst
:
OUT
STD_LOGIC
;
ctlr_burst
:
OUT
STD_LOGIC
;
ctlr_burst_size
:
OUT
STD_LOGIC_VECTOR
(
g_tech_ddr
.
maxburstsize_w
-1
DOWNTO
0
);
ctlr_burst_size
:
OUT
STD_LOGIC_VECTOR
(
g_tech_ddr
.
maxburstsize_w
-1
DOWNTO
0
);
ctlr_wr_req
:
OUT
STD_LOGIC
;
ctlr_wr_req
:
OUT
STD_LOGIC
;
...
@@ -61,8 +61,7 @@ END io_ddr_driver;
...
@@ -61,8 +61,7 @@ END io_ddr_driver;
ARCHITECTURE
str
OF
io_ddr_driver
IS
ARCHITECTURE
str
OF
io_ddr_driver
IS
CONSTANT
c_chip_addr_w
:
NATURAL
:
=
ceil_log2
(
g_tech_ddr
.
cs_w
);
--Chip sel lines converted to logical address
CONSTANT
c_address_w
:
NATURAL
:
=
func_tech_ddr_dq_address_w
(
g_tech_ddr
)
+
1
;
-- 1 bit added to detect overflow
CONSTANT
c_address_w
:
NATURAL
:
=
c_chip_addr_w
+
g_tech_ddr
.
ba_w
+
g_tech_ddr
.
a_w
+
g_tech_ddr
.
a_col_w
+
1
;
-- 1 bit added to detect overflow
CONSTANT
c_margin
:
NATURAL
:
=
2
;
-- wr_burst_size is updated one cycle after reading actual nof available words.
CONSTANT
c_margin
:
NATURAL
:
=
2
;
-- wr_burst_size is updated one cycle after reading actual nof available words.
-- Subtract two (wr_fifo_usedw and wr_burst_size are both registered) so we cannot
-- Subtract two (wr_fifo_usedw and wr_burst_size are both registered) so we cannot
...
@@ -264,13 +263,10 @@ BEGIN
...
@@ -264,13 +263,10 @@ BEGIN
END
CASE
;
END
CASE
;
END
PROCESS
;
END
PROCESS
;
end_address
<=
RESIZE_UVEC
(
end_addr
.
chip
&
end_addr
.
bank
&
end_addr
.
row
(
g_tech_ddr
.
a_w
-1
DOWNTO
0
)
&
end_addr
.
column
(
g_tech_ddr
.
a_col_w
-1
DOWNTO
0
)
,
c_address_w
);
end_address
<=
func_tech_ddr_dq_address
(
end_addr
,
g_tech_ddr
,
c_address_w
);
start_address
<=
RESIZE_UVEC
(
start_addr
.
chip
&
start_addr
.
bank
&
start_addr
.
row
(
g_tech_ddr
.
a_w
-1
DOWNTO
0
)
&
start_addr
.
column
(
g_tech_ddr
.
a_col_w
-1
DOWNTO
0
)
,
c_address_w
);
start_address
<=
func_tech_ddr_dq_address
(
start_addr
,
g_tech_ddr
,
c_address_w
);
cur_addr
.
chip
(
c_chip_addr_w
-1
DOWNTO
0
)
<=
cur_address
(
c_chip_addr_w
+
g_tech_ddr
.
ba_w
+
g_tech_ddr
.
a_w
+
g_tech_ddr
.
a_col_w
-1
DOWNTO
g_tech_ddr
.
ba_w
+
g_tech_ddr
.
a_w
+
g_tech_ddr
.
a_col_w
);
cur_addr
<=
func_tech_ddr_dq_address
(
cur_address
,
g_tech_ddr
);
cur_addr
.
bank
(
g_tech_ddr
.
ba_w
-1
DOWNTO
0
)
<=
cur_address
(
g_tech_ddr
.
ba_w
+
g_tech_ddr
.
a_w
+
g_tech_ddr
.
a_col_w
-1
DOWNTO
g_tech_ddr
.
a_w
+
g_tech_ddr
.
a_col_w
);
cur_addr
.
row
(
g_tech_ddr
.
a_w
-1
DOWNTO
0
)
<=
cur_address
(
g_tech_ddr
.
a_w
+
g_tech_ddr
.
a_col_w
-1
DOWNTO
g_tech_ddr
.
a_col_w
);
cur_addr
.
column
(
g_tech_ddr
.
a_col_w
-1
DOWNTO
0
)
<=
cur_address
(
g_tech_ddr
.
a_col_w
-1
DOWNTO
0
);
END
str
;
END
str
;
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