Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Gateware
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Beam Positoning Monitor - Gateware
Commits
173733d3
Commit
173733d3
authored
Jul 13, 2016
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modules/*/wb_acq_core/*: fix DDR start address calculation
We got "luck" that the previous calculation was right.
parent
871cf7ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
8 deletions
+7
-8
acq_ddr3_axis_read.vhd
hdl/modules/dbe_wishbone/wb_acq_core/acq_ddr3_axis_read.vhd
+7
-8
No files found.
hdl/modules/dbe_wishbone/wb_acq_core/acq_ddr3_axis_read.vhd
View file @
173733d3
...
...
@@ -159,8 +159,8 @@ architecture rtl of acq_ddr3_axis_read is
signal
lmt_full_pkt_addr_ms
:
unsigned
(
42
downto
0
);
signal
lmt_pre_pkt_addr
:
unsigned
(
42
downto
0
);
signal
lmt_pre_full_addr
:
unsigned
(
42
downto
0
);
signal
lmt_pre_full_addr_m
:
unsigned
(
85
downto
0
);
signal
sample_size
:
unsigned
(
10
downto
0
);
signal
lmt_pre_full_addr_m
:
unsigned
(
42
downto
0
);
signal
lmt_curr_chan_width_bytes
:
unsigned
(
t_acq_width
'length
-1
downto
0
);
-- DDR3 Signals
signal
ddr_data_in
:
std_logic_vector
(
c_ddr_payload_width
-1
downto
0
);
...
...
@@ -308,15 +308,14 @@ begin
end
if
;
end
process
;
sample_size
<=
g_acq_channels
(
to_integer
(
lmt_curr_chan_id_i
))
.
width
/
g_acq_channels
(
to_integer
(
lmt_curr_chan_id_i
))
.
num_atoms
/
8
;
lmt_curr_chan_width_bytes
<=
g_acq_channels
(
to_integer
(
lmt_curr_chan_id_i
))
.
width
/
8
;
-- in bytes
lmt_full_pkt_addr_ss
<=
lmt_full_pkt_size
*
sample_size
;
lmt_full_pkt_addr_ss
<=
lmt_full_pkt_size
*
lmt_curr_chan_width_bytes
;
lmt_full_pkt_addr_ms
<=
lmt_full_pkt_addr_ss
(
lmt_full_pkt_addr_ss
'left
-
lmt_shots_nb
'length
downto
0
)
*
(
lmt_shots_nb
-1
);
lmt_pre_pkt_addr
<=
lmt_pre_pkt_size
*
sample_size
;
lmt_pre_pkt_addr
<=
lmt_pre_pkt_size
*
lmt_curr_chan_width_bytes
;
lmt_pre_full_addr_m
<=
(
lmt_full_pkt_addr_ms
+
lmt_pre_pkt_addr
)
*
c_bytes_per_word
;
lmt_pre_full_addr
<=
lmt_pre_full_addr_m
(
42
downto
0
);
lmt_pre_full_addr_m
<=
(
lmt_full_pkt_addr_ms
+
lmt_pre_pkt_addr
)
;
-- in bytes
lmt_pre_full_addr
<=
lmt_pre_full_addr_m
;
-- in bytes
----------------------------------------------------------------------------
-- Start reading
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment