Reverse bit order on VHDL

后端 未结 6 1010
闹比i
闹比i 2021-01-31 19:48

I\'m having trouble doing something like

b(0 to 7) <= a(7 downto 0)

when I compile it with ghdl, I have an order error. The only way I have

6条回答
  •  一整个雨季
    2021-01-31 20:21

    Really inverting:

    for i in 0 to intermediate_data'left loop
    
      inverted_vector(i) <= intermediate_data(intermediate_data'left - i);
    
    end loop;
    

提交回复
热议问题