发明名称 Processors operable to allow flexible instruction alignment
摘要 Methods and apparatus are provided for optimizing a processor core. Common processor subcircuitry is used to perform calculations for various types of instructions, including branch and non-branch instructions. Increasing the commonality of calculations across different instruction types allows branch instructions to jump to byte aligned memory address even if supported instructions are multi-byte or word aligned.
申请公布号 US8874881(B2) 申请公布日期 2014.10.28
申请号 US201113163451 申请日期 2011.06.17
申请人 Altera Corporation 发明人 Ball James Loran
分类号 G06F9/30;G06F9/38;G06F9/32 主分类号 G06F9/30
代理机构 Kwan & Olynick LLP 代理人 Kwan & Olynick LLP
主权项 1. A method comprising: performing by a first subcircuitry a multi-byte non-branch instruction that includes determining, by a first portion of the first subcircuitry, a first sign extended value of a first immediate field associated with a multi-byte non-branch instruction using first subcircuitry, wherein the first portion of the first subcircuitry is operable to only perform sign extension; and performing by the first subcircuitry a multi-byte branch instruction, the branch instruction having a different multi-byte alignment from the non-branch instruction, by determining, by said first portion of the first subcircuitry, a second sign extended value of a second immediate field associated with the multi-byte branch instruction and calculating a target address by adding the second sign extended value of the second immediate field to a program counter value, wherein the multi-byte branch instruction is performed without first performing a multiplication with the second immediate field, wherein the first subcircuitry is used to determine the second sign extended value and calculate the target address even if the target address contains a byte aligned instruction or a multi-byte aligned instruction, and wherein determining the first sign extended value and determining the second sign extended value are both performed using the same first portion of the first subcircuitry.
地址 San Jose CA US