ELGIP-95 Corrected diag_peek_addr bit slice for RAM select

This commit is contained in:
Simon Southwell 2020-05-12 07:47:37 +01:00
commit d8eb3430e7

View file

@ -391,7 +391,7 @@ begin
end loop;
for i in 0 to MAX_OP_WIDTH-1 loop
if is_en_peek = '1' and i = unsigned(diag_peek_addr(log2(MAX_OP_WIDTH)-1+PX_DEPTH_LOG2 downto PX_DEPTH_LOG2)) then
if is_en_peek = '1' and i = unsigned(diag_peek_addr(log2(MAX_OP_WIDTH) + TOTAL_DEPTH_LOG2 - 1 downto TOTAL_DEPTH_LOG2)) then
diag_peek_data <= q((i+1)*PX_WIDTH-2 downto i*PX_WIDTH);