| Electronic Components Datasheet Search |
|
AVR32AP Datasheet(PDF) 64 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AVR32AP Datasheet(HTML) 64 Page - ATMEL Corporation |
|
64 / 181 page ![]() 64 32001A–AVR32–06/06 AVR32 5.1.3 Instruction forwarding If for some reason the instruction buffer is empty, the fetched instruction will be forwarded past the fetch queue and into ID as soon as it is fetched. This forwarding is done only when it can be ensured that the entire instruction is contained in the fetched word. This is ensured if the 2 least significant bits of the PC of the desired instruction equal 00. If the bits are 10, the fetched instruc- tion must pass via the instruction buffer. This will impose a 1-cycle penalty on the case where the addressed instruction is a compact instruction, but is done for critical path simplification. Instruction forwarding is done only in RISC mode, no instruction forwarding is done in Java mode. 5.2 Branch prediction 5.2.1 Functionality AVR32 AP implements special hardware in order to minimize the penalty from mispredicted branches. A branch target buffer (BTB) is used in order to record information about the outcome of encountered branches. This information is used to predict the outcome of branches based on the recorded history of the branch. The hardware is able to start fetching instructions from the predicted path, so that no branch penalty is experienced if the prediction was correct. If the pre- diction was wrong, the pipeline will have to be flushed and execution resume at the correct path. If prediction information about an encountered branch is contained in the BTB, hardware will in many cases be able to fold the branch instruction with the following instruction. In this process, the branch instruction is removed from the execution stream and its condition codes are passed on to the following instruction. This instruction is sent down the pipe together with the condition codes of the branch. If the branch was predicted correctly, the folded instruction is allowed to complete. Otherwise, the folded instruction is flushed from the pipeline and execution continues from the alternate branch path. Branch prediction is enabled or disabled according to the Branch Prediction Enable (BE) bit in the CPUCR system register. Before enabling or disabling the BTB, it must be invalidated. No branches should be executed between the BTB invalidate and the BTB enable or disable. Branch prediction is invisible to the programmer. Hardware makes sure that the program exe- cutes correctly regardless of a branch being predicted or not, and the correctness of the prediction. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |