Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我假设使用 Microblaze 桶形移位器进行移位没有简单移位的字节顺序复杂性,例如
bslli r11, r11, 1
r11 == r11 * 2不管选择的字节顺序如何,都相当于?
r11 == r11 * 2
只有在从面向字节的内存中加载和存储字时才需要考虑字节序。一旦您在寄存器中获得了值,字节顺序就不是问题,并且左移将始终将位“向上”移动一步。