This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

thumb 2 instruction set

The thumb 2 instruction contains both the instruction sets( best of both worlds) ARM and THUMB.
 
So my question is how does processor come to know that the fetched one  is 16 bit size instruction or 32bit size instruction

why this doubt:

in joesph yiu in pgno 60 second paragah fourth line it is given as

"In fact, Cortex-M processors does not support 32-bit instructions at all" is this true? or am I  getting this wrong ? 

and one more extension to my doubt is while fetching instructions in how many bits is fetching done ........

are 16 bits fetched at once or 32 bits or 8 bits?

i am confused with this thumb2 instruction set ....................and what is prefetch?  

thanks for the answers in advance 

Parents
  • The purpose of the Prefetch Unit (PFU) is to:
    • Fetch instructions in advance and forward PC relative branch instructions.
    Fetches are speculative in the case of conditional branches
    • Detect Thumb-2 instructions and present these as a single instruction word.
    • Perform vector loads.
    The PFU fetches instructions from the memory system that can supply one word each
    cycle. The PFU buffers up to three word fetches in its FIFO, which means that it can
    buffer up to three Thumb-2 instructions or six Thumb instructions.
    The majority of branches that are generated as the ALU addition of PC plus immediate
    are generated no later than the decode phase of the branch opcode. In the case of
    conditionally executed branches, the address is speculatively presented (consuming a
    fetch slot on the bus), and the forwarded result determines if the branch path flushes the
    fetch queue or is preserved.
    Short subroutine returns are optimized to take advantage of the forwarding behavior in
    the case of BX LR.
Reply
  • The purpose of the Prefetch Unit (PFU) is to:
    • Fetch instructions in advance and forward PC relative branch instructions.
    Fetches are speculative in the case of conditional branches
    • Detect Thumb-2 instructions and present these as a single instruction word.
    • Perform vector loads.
    The PFU fetches instructions from the memory system that can supply one word each
    cycle. The PFU buffers up to three word fetches in its FIFO, which means that it can
    buffer up to three Thumb-2 instructions or six Thumb instructions.
    The majority of branches that are generated as the ALU addition of PC plus immediate
    are generated no later than the decode phase of the branch opcode. In the case of
    conditionally executed branches, the address is speculatively presented (consuming a
    fetch slot on the bus), and the forwarded result determines if the branch path flushes the
    fetch queue or is preserved.
    Short subroutine returns are optimized to take advantage of the forwarding behavior in
    the case of BX LR.
Children