首页 | 本学科首页   官方微博 | 高级检索  
     

改进OR1200 CPU流水线的设计
引用本文:曹凯宁,沈兴浩,姬梦飞,常玉春.改进OR1200 CPU流水线的设计[J].计算机系统应用,2017,26(12):268-271.
作者姓名:曹凯宁  沈兴浩  姬梦飞  常玉春
作者单位:吉林大学 电子科学与工程学院, 长春 130012,吉林大学 电子科学与工程学院, 长春 130012,吉林大学 电子科学与工程学院, 长春 130012,吉林大学 电子科学与工程学院, 长春 130012
基金项目:吉林省省级经济结构战略调整引导资金专项项目(2015Y041);吉林省重点科技攻关项目(20160204042GX)
摘    要:流水线是制造高性能CPU的关键技术,目前被广泛研究的OR1200是一款带有四级流水线的免费开源CPU. 为了提高流水线的效率,针对OR1200没有设计访存流水段,流水线会暂停等待加载存储类指令这个问题,在LSU操作即访存操作模块,为OR1200增加了访存流水段,设计了冒险检测和旁路单元,因此CPU在访存阶段不需要暂停,从而使OR1200变为真正的五级流水线CPU;另一方面,当需要用加载指令加载数据的时候,会导致加载类数据冒险问题,为了解决此类冒险,设计了数据有效信号Tag,用来控制流水线暂停,对乘法计算、访存阶段以及其他不能在执行阶段得到结果的运算作流水线暂停判断,以等待数据的获取. 通过实验仿真证明,Tag信号暂停流水线一个时钟后会把数据反馈回去,成功解决了必须暂停数据相关问题的暂停判断问题.

关 键 词:OR1200  流水线  数据冒险  数据旁路
收稿时间:2016/12/6 0:00:00
修稿时间:2016/12/19 0:00:00

Improved Design of Pipeline CPU Based on OR1200
CAO Kai-Ning,SHEN Xing-Hao,JI Meng-Fei and CHANG Yu-Chun.Improved Design of Pipeline CPU Based on OR1200[J].Computer Systems& Applications,2017,26(12):268-271.
Authors:CAO Kai-Ning  SHEN Xing-Hao  JI Meng-Fei and CHANG Yu-Chun
Affiliation:College of Electronic Science and Engineering, Jilin University, Changchun 130012, China,College of Electronic Science and Engineering, Jilin University, Changchun 130012, China,College of Electronic Science and Engineering, Jilin University, Changchun 130012, China and College of Electronic Science and Engineering, Jilin University, Changchun 130012, China
Abstract:The pipeline is the key technology of manufacturing high-performance CPU. The OR1200, which has been widely studied currently, is a 4-stage pipeline CPU with a free open source. Without MEM stage which should be designed in OR1200, the pipeline will be stalled to wait for load or store instruction. In this research, we design a MEM stage for OR1200 in LSU. Hazard detection and data forwarding units have been included for efficient implementation of the pipeline. On the other hand, when a data requested by a load instruction has not yet become available, it leads to load-use hazards. To resolve this hazard problem, we design a data valid signal Tag to control stalling of pipeline. The pipeline is stalled by the Tag signal for one stage and then continues with the forwarding of data, as the simulation result shows.
Keywords:OR1200  pipeline  data hazard  data forwarding
点击此处可从《计算机系统应用》浏览原始摘要信息
点击此处可从《计算机系统应用》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号