Skip to content

Commit

Permalink
reordering wword write MSB first
Browse files Browse the repository at this point in the history
  • Loading branch information
hossein1387 committed Nov 27, 2020
1 parent 015e36b commit 6b09b98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vsrc/data_transposer.sv
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ module data_transposer #(

function void transpose_write(int pos);
for (int i=0; i<MAX_DATA_PREC; i++) begin
buffer[i] = sliced_val[i]<<(NUM_WORDS-pos-1) | buffer[i];
// buffer[i] = sliced_val[i]<<(NUM_WORDS-pos-1) | buffer[i];
buffer[i] = sliced_val[i]<<(pos) | buffer[i];
end
endfunction

Expand Down

0 comments on commit 6b09b98

Please sign in to comment.