由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Hardware版 - 求问这个题要怎么解
相关主题
现在还有没有带并口和串口的电脑?Intel相当无语:苹果请AMD定制x86处理器
一个引发集体怀旧的dealdell工作站的重大散热缺陷
到哪儿能订做到ISA插槽的工控机?请问核越多,待机温度就越高么?
这边质量比较好的工控机有能用DDR3和DDR4的Z370 主板吗?
帮看看是什么问题请帮忙:X61 能用X61 Tablet 的屏幕吗?
amd的南岛系列啥时候开卖出一个HP Elitebook 2730p Tablet @560 (Refurbished)
CPU温度很高Router reduces cable internet speed ???
Dell T7500不能启动了,怎么回事?(已解决,开始enjoy V12了)X201 Down grade from i7 to Intel Core i5-480M to subtract $
相关话题的讨论汇总
话题: techium话题: cpi话题: alu话题: script
进入Hardware版参与讨论
1 (共1页)
l*****n
发帖数: 3
1
We are working on a new processor, techium 5, which is going to replace the
old Techium 4. Techium 5 has new ISA with more registers, which
1. Reduces the number of memory instructions by 50 %
2. While increasing the number of simple ALU instructions by 10%
Additionally, Techium 4 has a clock frequency of 2GHzm while Techium 5 uses
3GHz.
The two processors have the same average CPI for each type of instruction—
1 CPI for simple ALU, 3 CPI for memory
2 CPI for all other instructions
A professor mostly runs a project grading script grading script on this
laptop. A run of this script, with the Techium 4 processor, resulting in
executing 50 billion simple ALU instructions, 10 billion memory instructions
, and 40 billion other instructions.
How long does this script run on Techium 4?
How long does this script run on Techium 5
a*o
发帖数: 19981
2
尼玛隔行如隔山,哥题目都只看了个囫囵个儿,好几个缩写只能猜。。。

the
uses

【在 l*****n 的大作中提到】
: We are working on a new processor, techium 5, which is going to replace the
: old Techium 4. Techium 5 has new ISA with more registers, which
: 1. Reduces the number of memory instructions by 50 %
: 2. While increasing the number of simple ALU instructions by 10%
: Additionally, Techium 4 has a clock frequency of 2GHzm while Techium 5 uses
: 3GHz.
: The two processors have the same average CPI for each type of instruction—
: 1 CPI for simple ALU, 3 CPI for memory
: 2 CPI for all other instructions
: A professor mostly runs a project grading script grading script on this

z*********e
发帖数: 10149
3
CPU time = Sigma(# of instructions * CPI * Clock)
想不出来跟
1. Reduces the number of memory instructions by 50 %
2. While increasing the number of simple ALU instructions by 10%
有什么关系呢?
l*****n
发帖数: 3
4

我不知道他是不是用不同的处理器所以处理script的方式也不一样,instruction的数
量可能变化了,如果没有变化的话,那不是只有cycle time会影响吗

【在 z*********e 的大作中提到】
: CPU time = Sigma(# of instructions * CPI * Clock)
: 想不出来跟
: 1. Reduces the number of memory instructions by 50 %
: 2. While increasing the number of simple ALU instructions by 10%
: 有什么关系呢?

d***a
发帖数: 13752
5
难道不先说清楚是single issue,in-order pipeline。:)
实际的处理器中,没有哪个2-3 GHz的处理器是single issue, in-order的了。
要解也很简单,CPU time = # instructions * CPI * clock cycle time,分别对ALU
,memory和others做计算,再求和。
Reduces the number of memory instructions by 50%的意思是,在Techium 4上执行
程序运行时有10 billion memory instructions。在Techium 5上,因为指令集变了(
编译器也变了),源程序相同,执行程序变得不同,执行程序运行时memory
instructions的数目减少到了5 billion了。

the
uses

【在 l*****n 的大作中提到】
: We are working on a new processor, techium 5, which is going to replace the
: old Techium 4. Techium 5 has new ISA with more registers, which
: 1. Reduces the number of memory instructions by 50 %
: 2. While increasing the number of simple ALU instructions by 10%
: Additionally, Techium 4 has a clock frequency of 2GHzm while Techium 5 uses
: 3GHz.
: The two processors have the same average CPI for each type of instruction—
: 1 CPI for simple ALU, 3 CPI for memory
: 2 CPI for all other instructions
: A professor mostly runs a project grading script grading script on this

l*****n
发帖数: 3
6

ALU
我最开始也是这么理解的,如果说是这样的话,那4的运算时间应该是0.08秒,5应该是
0.05秒,这样的话5的alu变成了55million了也就。可是我把答案放上去了还是不对,
是我算错了吗?还是有别的可能性?

【在 d***a 的大作中提到】
: 难道不先说清楚是single issue,in-order pipeline。:)
: 实际的处理器中,没有哪个2-3 GHz的处理器是single issue, in-order的了。
: 要解也很简单,CPU time = # instructions * CPI * clock cycle time,分别对ALU
: ,memory和others做计算,再求和。
: Reduces the number of memory instructions by 50%的意思是,在Techium 4上执行
: 程序运行时有10 billion memory instructions。在Techium 5上,因为指令集变了(
: 编译器也变了),源程序相同,执行程序变得不同,执行程序运行时memory
: instructions的数目减少到了5 billion了。
:
: the

d***a
发帖数: 13752
7
啊,你把小数点算错了三位。第一个时间应该是80秒。

【在 l*****n 的大作中提到】
:
: ALU
: 我最开始也是这么理解的,如果说是这样的话,那4的运算时间应该是0.08秒,5应该是
: 0.05秒,这样的话5的alu变成了55million了也就。可是我把答案放上去了还是不对,
: 是我算错了吗?还是有别的可能性?

m********n
发帖数: 3812
8
pretend there is a job offer opening, and set this as the interview question
.
then tell all the applications that so sorry, maybe next time.
1 (共1页)
进入Hardware版参与讨论
相关主题
X201 Down grade from i7 to Intel Core i5-480M to subtract $帮看看是什么问题
HP RP5700amd的南岛系列啥时候开卖
mix use of load reduced dimm and regular dimmCPU温度很高
买了个Thinkpad X1 Carbon翻修机Dell T7500不能启动了,怎么回事?(已解决,开始enjoy V12了)
现在还有没有带并口和串口的电脑?Intel相当无语:苹果请AMD定制x86处理器
一个引发集体怀旧的dealdell工作站的重大散热缺陷
到哪儿能订做到ISA插槽的工控机?请问核越多,待机温度就越高么?
这边质量比较好的工控机有能用DDR3和DDR4的Z370 主板吗?
相关话题的讨论汇总
话题: techium话题: cpi话题: alu话题: script