发明名称 Static branch prediction method and code execution method for pipeline processor, and code compiling method for static branch prediction
摘要 A static branch prediction method and code execution method for a pipeline processor, and a code compiling method for static branch prediction, are provided herein. The static branch prediction method includes predicting a conditional branch code as taken or not-taken, adding the prediction information, converting the conditional branch code into a jump target address setting (JTS) code including target address information, branch time information, and a test code, and scheduling codes in a block. The code may be scheduled into a last slot of the block, and the JTS code may be scheduled into an empty slot after all the other codes in the block are scheduled. When the conditional branch code is predicted as taken in the prediction operation, a target address indicated by the target address information may be fetched at a cycle time indicated by the branch time information.
申请公布号 US8954946(B2) 申请公布日期 2015.02.10
申请号 US201012692735 申请日期 2010.01.25
申请人 Samsung Electronics Co., Ltd. 发明人 Jin Tai-song;Suh Dong-kwan;Kim Suk-jin
分类号 G06F9/45;G06F9/30;G06F9/38 主分类号 G06F9/45
代理机构 NSIP Law 代理人 NSIP Law
主权项 1. A processor-implemented static branch prediction method for a pipeline processor, the method comprising: predicting a conditional branch code as taken or not-taken; converting the conditional branch code into a jump target address setting (JTS) code including target address information, branch time information, and a test code; scheduling the JTS code and the test code in a block such that the test code is scheduled into a last slot of the block and the JTS code is scheduled into an empty slot of the block, after scheduling all other codes in the block; and fetching a target address indicated by the target address information at a cycle time indicated by the branch time information when the conditional branch code is predicted as taken.
地址 Suwon-si KR