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

Support g_data_w other then default c_word_w, to avoid X in sosi.data after resize.

parent 7480bf1c
No related branches found
No related tags found
2 merge requests!148L2SDP-495,!146Prepared dp_bsn_align_v2.vhd (still empty) and mmp_, tb_ and tb_mmp_ files,...
......@@ -37,6 +37,7 @@ ENTITY dp_block_from_mm IS
g_data_size : NATURAL;
g_step_size : NATURAL;
g_nof_data : NATURAL;
g_data_w : NATURAL := c_word_w;
g_reverse_word_order : BOOLEAN := FALSE
);
PORT (
......@@ -82,7 +83,7 @@ BEGIN
u_sosi : PROCESS(r, mm_miso)
BEGIN
out_sosi <= c_dp_sosi_rst; -- To avoid Modelsim warnings on conversion to integer from unused fields.
out_sosi.data <= RESIZE_DP_DATA(mm_miso.rddata(c_word_w-1 DOWNTO 0));
out_sosi.data <= RESIZE_DP_DATA(mm_miso.rddata(g_data_w-1 DOWNTO 0));
out_sosi.valid <= mm_miso.rdval; -- read latency from mm_mosi.rd to mm_miso.rdval is 1, so same as the ready latency (RL = 1)
out_sosi.sop <= r.sop; -- read latency from mm_mosi.rd to mm_miso.rdval is 1, so r.sop can be used for output sop
out_sosi.eop <= r.eop; -- read latency from mm_mosi.rd to mm_miso.rdval is 1, so r.eop can be used for output eop
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment