男人洁身自好什么意思| 电镀对人体有什么危害| 继发性是什么意思| 牡丹是什么季节开的| 诸葛亮属相是什么生肖| 鸡柳是什么肉| 硫酸对人体有什么危害| 红枣补什么| 干呕是什么病的前兆| 学位证书有什么用| 把妹什么意思| 皮肤过敏吃什么药| 年薪20万算什么水平| 做b超前需要注意什么| 急性结肠炎什么症状| venes保温杯是什么品牌| 口腔溃疡挂什么科室| 腺瘤样增生是什么意思| 妮子什么意思| 狮子座后面是什么星座| 三合局是什么意思| 心凉是什么意思| 巨蟹座和什么座最配| 绣眼鸟吃什么| 动脉硬化挂什么科| 化疗是什么样的过程| 龟头有白色污垢是什么| 老做梦是什么原因| 硬金是什么意思| 耳鸣用什么药治疗效果最好| 小便少是什么原因| 左眼皮跳什么意思| 什么山不能爬脑筋急转弯| 痔疮长什么样子的图片| 经常说梦话是什么原因| 泳帽的作用是什么| 什么是造影手术| 海藻糖是什么糖| 十二指肠球部溃疡a1期是什么意思| 女人肾阴虚吃什么药| 什么美白效果最好最快| snoopy是什么意思| 春是什么生肖| 唐宝是什么意思| 吃苦瓜对身体有什么好处| 肝脏钙化灶是什么意思| 维生素c不能和什么一起吃| 吃饭后胃疼是什么原因| 刚是什么意思| 血压什么时候量最准确| 早早孕什么时候测最准| 舌头痒痒的是什么原因| 梦见大蛇是什么预兆| 测血糖挂号挂什么科| 吃什么有助于伤口愈合| 夏天摆摊适合卖什么| 垂体泌乳素高是什么原因| 蕊字五行属什么| 西米露是什么材料做的| bmd是什么意思| 搞基什么意思| 5月1号是什么星座| 蟑螂卵什么样| 猪砂是什么东西| 嗳气什么意思| lirs 是什么意思| 什么是远视眼| 砂舞是什么意思| 正月初四是什么星座| 天生一对成伴侣是什么生肖| 口语化是什么意思| 支气管炎哮喘吃什么药| 乙肝病毒表面抗体阳性是什么意思| 三无产品是指什么| 猪油用什么容器装好| 男的叫少爷女的叫什么| 什么是传染性软疣| 为什么水不会燃烧| 猴子尾巴的作用是什么| 减肥期间能吃什么水果| 囟门是什么| 什么头什么发| 装清高是什么意思| 什么病必须戒酒| 女人梦见老鼠什么征兆| 肺大泡是什么意思| 白泽长什么样| 流产了有什么症状| nt检查什么内容| 深棕色是什么颜色| 老人大小便失禁是什么原因造成的| 为什么人会衰老| 心肌桥是什么病| 梦见女儿结婚是什么意思| 申时左眼跳是什么预兆| 做什么检查需要空腹| 什么是慢性病| 双相情感障碍是什么| 为什么叫清明上河图| 所见的意思是什么| 包皮是什么| 猪肝吃多了有什么坏处| 人老是犯困想睡觉是什么原因| 脾门区结节是什么意思| 吃什么食物补钾| 指标是什么意思| 单恋是什么意思| 龙凤呈祥的意思是什么| 黑咖啡为什么能减肥| 什么水什么山| 什么叫化疗为什么要化疗| 猿是什么动物| 打黄体酮针有什么副作用| 早上起来嘴巴苦是什么原因| 脖子疼是什么原因| 女性缺镁有什么症状| 解表药是什么意思| 建军节是什么时候| 伽利略是什么学家| 晚上一直做梦是什么原因引起的| fs是什么单位| 织女是什么生肖| 射手座女和什么星座最配| 什么防晒霜防晒效果好| 头痛什么原因| 蜘蛛痣是什么| 下午4点多是什么时辰| 白头发吃什么维生素能变黑| 法克油是什么意思| 膀胱壁增厚毛糙是什么意思| 共济失调是什么意思| 918是什么日子| 脾胃不好可以吃什么水果| 血糖高可以吃什么零食| 非经期出血是什么原因| 吃豆角中毒什么症状| 旅游穿什么鞋最舒服| 什么叫子宫肌瘤| 唱过什么歌| 什么水果养胃又治胃病| 头顶发热是什么原因| he是什么气体| 尿血最坏的病是什么病| 英语四级是什么水平| 眼干眼涩眼疲劳用什么眼药水| 晚上扫地有什么说法| 吃头孢为什么不能喝酒| 刻舟求剑是什么意思| 射手女跟什么星座最配| 内膜欠均匀是什么意思| 一什么花瓶| 爱到什么时候| 桃子什么时候成熟| 胃炎挂什么科| 双肺微结节是什么意思| 什么是隐形矫正牙齿| 艾滋病的症状是什么样| 生姜红糖水有什么作用| 入殓师是做什么的| 万年历是什么| 什么水果低糖| 老鹰茶是什么茶| 大象的天敌是什么动物| dunk是什么牌子| 鹰潭有什么好玩的地方| mt指什么| 盆腔炎是什么病| 多什么多什么| 经常玩手机有什么危害| 塞药塞到什么位置| 红加绿是什么颜色| 痛经喝什么可以缓解| 见异思迁什么意思| 酉时是什么时候| 拉肚子是什么原因| 硼砂是干什么用的| 垂体泌乳素是什么意思| 什么药清肺化痰好| 儿童吃什么钙片补钙效果好| 什么叫猥亵| 口腔扁平苔藓是什么原因造成的| 文化大革命什么时候| 吃什么补叶酸| 有齿痕吃什么药| beko是什么牌子| 中暑吃什么水果好| 腱鞘炎要挂什么科| 喝柠檬茶有什么好处| 教师节是什么时候| 湿气是什么东西| 油管是什么意思| 肝ca是什么意思| 空调的几匹是什么意思| 瘴气是什么意思| 什么叫脑白质病变| 血栓是什么病| 青少年嗜睡是什么原因| 孕妇甲减是什么原因引起的| 庹在姓氏上读什么| 脚掌麻木是什么原因| 肚脐眼连接体内的什么器官| 姑姑的孩子叫什么| 跳蚤吃什么| 胆固醇是什么意思| fda是什么| 女性尿血挂什么科| 为什么短信验证码收不到| 多巴胺是什么意思| 2000属什么生肖| 小径是什么意思| 梦见抱小女孩是什么意思| 什么是癔症病| 眼睛模糊是什么原因引起的| dr胸部正位片是检查什么的| 前列腺炎吃什么药最有效| 鼻子干燥用什么药| 反应性细胞改变炎症是什么意思| 舍我其谁是什么意思| 梦见墓碑是什么意思| 7月30号是什么星座| 缘起缘灭是什么意思| 土的行业有什么工作| 白带什么时候来| 清宫和无痛人流有什么区别| 硫脲是什么| 大便青黑色是什么原因| 总胆红素升高是什么原因| 婴儿感冒吃什么药| 骨加客念什么| 礼成是什么意思| coupon是什么意思| 1954属什么生肖| adidas是什么品牌| 直肠疾病都有什么症状| bace是什么意思| mw是什么意思| pv是什么| 夏天有什么植物| 狼吞虎咽是什么生肖| 梅核气吃什么药好得快| 什么是化石| 安欣是什么电视剧| 名列前茅是什么生肖| 什么是再生纤维| 做活检前要注意什么| junior是什么意思| 什么的水果| 手机root后有什么好处和坏处| 为什么会脱发| 湿热会引起什么症状| 思密达是什么意思| 卡路里什么意思| 迁单是什么意思| 胃窦隆起是什么意思| 眼睛肿胀是什么原因| 气胸什么症状| 武警是干什么的| 什么水果补铁| 做梦梦到钓鱼是什么意思| 视网膜病变是什么意思| 梦房子倒塌什么预兆| 化妆水是什么| 嘴唇发黑是什么症状| KP什么意思| 百度Jump to content

莲都区委常委会召开扩大会议 传达学习习近平总书记在十九届中央政治局第四次集体学习时的重要讲话精神

From Wikipedia, the free encyclopedia
百度 纸质稿一概不收。

In computer architecture, cycles per instruction (aka clock cycles per instruction, clocks per instruction, or CPI) is one aspect of a processor's performance: the average number of clock cycles per instruction for a program or program fragment.[1] It is the multiplicative inverse of instructions per cycle.

Definition

[edit]

The average of Cycles Per Instruction in a given process (CPI) is defined by the following weighted average:

Where is the number of instructions for a given instruction type , is the clock-cycles for that instruction type and is the total instruction count. The summation sums over all instruction types for a given benchmarking process.

Explanation

[edit]

Let us assume a classic RISC pipeline, with the following five stages:

  1. Instruction fetch cycle (IF).
  2. Instruction decode/Register fetch cycle (ID).
  3. Execution/Effective address cycle (EX).
  4. Memory access (MEM).
  5. Write-back cycle (WB).

Each stage requires one clock cycle and an instruction passes through the stages sequentially. Without pipelining, in a multi-cycle processor, a new instruction is fetched in stage 1 only after the previous instruction finishes at stage 5, therefore the number of clock cycles it takes to execute an instruction is five (CPI = 5 > 1). In this case, the processor is said to be subscalar. With pipelining, a new instruction is fetched every clock cycle by exploiting instruction-level parallelism, therefore, since one could theoretically have five instructions in the five pipeline stages at once (one instruction per stage), a different instruction would complete stage 5 in every clock cycle and on average the number of clock cycles it takes to execute an instruction is 1 (CPI = 1). In this case, the processor is said to be scalar.

With a single-execution-unit processor, the best CPI attainable is 1. However, with a multiple-execution-unit processor, one may achieve even better CPI values (CPI < 1). In this case, the processor is said to be superscalar. To get better CPI values without pipelining, the number of execution units must be greater than the number of stages. For example, with six executions units, six new instructions are fetched in stage 1 only after the six previous instructions finish at stage 5, therefore on average the number of clock cycles it takes to execute an instruction is 5/6 (CPI = 5/6 < 1). To get better CPI values with pipelining, there must be at least two execution units. For example, with two executions units, two new instructions are fetched every clock cycle by exploiting instruction-level parallelism, therefore two different instructions would complete stage 5 in every clock cycle and on average the number of clock cycles it takes to execute an instruction is 1/2 (CPI = 1/2 < 1).

Examples

[edit]

Example 1

[edit]

For the multi-cycle MIPS, there are five types of instructions:

  • Load (5 cycles)
  • Store (4 cycles)
  • R-type (4 cycles)
  • Branch (3 cycles)
  • Jump (3 cycles)

If a program has:

  • 50% load instructions
  • 25% store instructions
  • 15% R-type instructions
  • 8% branch instructions
  • 2% jump instructions

then, the CPI is:

Example 2

[edit]

[2] A 400MHz processor was used to execute a benchmark program with the following instruction mix and clock cycle count:

Instruction TYPE Instruction count Clock cycle count
Integer Arithmetic 45000 1
Data transfer 32000 2
Floating point 15000 2
Control transfer 8000 2

Determine the effective CPI, MIPS (Millions of instructions per second) rate, and execution time for this program.

since: and

Therefore:

See also

[edit]

References

[edit]
  1. ^ Patterson, David A.; Hennessy, John L. (1994). Computer Organization and Design: The Hardware/Software Interface. Morgan Kaufmann. ISBN 9781558602816.
  2. ^ Advanced Computer Architecture by Kai Hwang, Chapter 1, Exercise Problem 1.1
擦汗的表情是什么意思 胎先露是什么意思 日丙念什么 什么血型不招蚊子 阳历九月份是什么星座
绞股蓝有什么功效 爸爸的姐姐叫什么 疱疹不能吃什么食物 eb病毒阳性是什么意思 栖字五行属什么
血糖高对身体有什么危害 肝功能不全是什么意思 鸿运当头什么意思 咖啡什么牌子的好 梦见别人理发是什么意思
9月什么星座 苎麻是什么 什么蔬菜含铁高 秦始皇是什么生肖 斑秃是什么原因引起的
七月二十二什么日子hcv9jop7ns1r.cn g是什么单位hcv9jop8ns0r.cn 抗hp治疗是什么意思hcv9jop0ns8r.cn 睡觉被憋醒是什么原因hcv9jop4ns8r.cn 白芷炖肉起什么作用0735v.com
什么米减肥效果好hkuteam.com 四月二十一是什么星座hcv7jop5ns1r.cn 鸢的俗称是什么hcv8jop9ns0r.cn 雪藏是什么意思hcv9jop0ns2r.cn 蝉的幼虫叫什么gysmod.com
烂尾楼是什么意思hcv9jop1ns2r.cn 博爱是什么意思bysq.com 尿道口红肿是什么原因hcv8jop9ns6r.cn 为什么会睡不着hcv7jop5ns2r.cn 减肥适合吃什么水果xscnpatent.com
牛奶为什么能解辣chuanglingweilai.com pm什么意思bfb118.com 腰酸挂什么科dayuxmw.com 早上起床想吐是什么原因hcv8jop8ns5r.cn buns是什么意思jingluanji.com
百度