Skip to content
Snippets Groups Projects
Commit 13071b9e authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Moved cur_addr close to where it is used.

parent 61bd9e67
No related branches found
No related tags found
No related merge requests found
...@@ -130,8 +130,6 @@ BEGIN ...@@ -130,8 +130,6 @@ BEGIN
start_address <= func_tech_ddr_dq_address(dvr_start_addr, g_tech_ddr, c_address_w); start_address <= func_tech_ddr_dq_address(dvr_start_addr, g_tech_ddr, c_address_w);
end_address <= func_tech_ddr_dq_address(dvr_end_addr, g_tech_ddr, c_address_w); end_address <= func_tech_ddr_dq_address(dvr_end_addr, g_tech_ddr, c_address_w);
cur_addr <= func_tech_ddr_dq_address(cur_address, g_tech_ddr);
-- Add 1 address (accounting for address resulotion) to diff_address: we also want to write the last address. Shift the result right to provide the correct resolution. -- Add 1 address (accounting for address resulotion) to diff_address: we also want to write the last address. Shift the result right to provide the correct resolution.
addresses_rem <= RESIZE_UVEC( SHIFT_UVEC( INCR_UVEC(diff_address, g_tech_ddr.rsl), g_tech_ddr.rsl_w), addresses_rem'LENGTH); addresses_rem <= RESIZE_UVEC( SHIFT_UVEC( INCR_UVEC(diff_address, g_tech_ddr.rsl), g_tech_ddr.rsl_w), addresses_rem'LENGTH);
...@@ -162,6 +160,8 @@ BEGIN ...@@ -162,6 +160,8 @@ BEGIN
nxt_rd_burst_size <= v_burst_size; nxt_rd_burst_size <= v_burst_size;
END PROCESS; END PROCESS;
cur_addr <= func_tech_ddr_dq_address(cur_address, g_tech_ddr);
ctlr_mosi.address <= func_tech_ddr_ctlr_address(cur_addr, g_tech_ddr, c_tech_ddr_ctlr_address_w); ctlr_mosi.address <= func_tech_ddr_ctlr_address(cur_addr, g_tech_ddr, c_tech_ddr_ctlr_address_w);
ctlr_mosi.wrdata <= RESIZE_DDR_CTLR_DATA(wr_snk_in.data); ctlr_mosi.wrdata <= RESIZE_DDR_CTLR_DATA(wr_snk_in.data);
ctlr_mosi.burstsize <= ctlr_mosi_burstsize; ctlr_mosi.burstsize <= ctlr_mosi_burstsize;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment