单位换算! Ghz - ns - MHz - 周期
我正在准备一个单位测验,有两种转换让我感到困惑。
类型一: XXX 计算机上一个周期的长度(以纳秒为单位)是多少? - 在这种情况下,XXX 可以是随机的 MHz 或 Ghz。我在转换周期时间时遇到问题。示例:
50 兆赫 (MHz) 计算机上一个周期的长度(以 ns 为单位)是多少?
我遇到麻烦的第二种类型的转换: 如果 XXX 计算机上的平均指令需要 ZZ 个周期,则执行该指令平均需要多长时间(以 ns 为单位)? - 与之前的情况一样,XXX 要么是 MHz,要么是 Ghz。例如:
如果 2.0 GigaHertz (GHz) 计算机上的平均指令需要 2.0 个周期,则平均指令执行需要多长时间(以纳秒为单位)?
我不明白我在这些转换中做错了什么,但我总是弄错。任何帮助都会很棒!
I am preparing for a units quiz and there are two kinds of conversions that have me stumped.
Type one:
What is length (in ns) of one cycle on a XXX computer?
- In this case, XXX can be some MHz or Ghz, randomly. I am having trouble converting the cyles times. Example:
What is length (in ns) of one cycle on a 50 MegaHertz (MHz) computer?
The second type of conversion I have trouble with:
If the average instruction on a XXX computer requires ZZ cycles, how long (in ns) does the average instruction take to execute?
- Like the previous case, the XXX will either be some MHz or Ghz. For example:
If the average instruction on a 2.0 GigaHertz (GHz) computer requires 2.0 cycles, how long (in ns) does the average instruction take to execute?
I don't understand what I am doing wrong in these conversions but I keep getting them wrong. Any help would be great!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我希望我的数学正确,我会尝试一下。
1 赫兹定义为每秒一个周期,因此 1 Hz 计算机的周期长度为 10^9 ns(因为 nano 为 10^-9)。
50 Mega = 50 * 10^6,因此 50MHz 产生 (10^9 ns / (50 * 10^6)) = 20 ns 周期长度。
2 Giga = 2 * 10^9,因此 2GHz 产生 (10^9 ns / (2 * 10^9)) = 0.5 ns 周期长度。这里两个周期需要 1 ns。
I hope to have my math correct, I'll give it a try.
One Hertz is defined as one cycle per second, so a 1 Hz computer has a 10^9 ns cycle length (because nano is 10^-9).
50 Mega = 50 * 10^6, so 50MHz yields a (10^9 ns / (50 * 10^6)) = 20 ns cycle length.
2 Giga = 2 * 10^9, so 2GHz yields a (10^9 ns / (2 * 10^9)) = 0.5 ns cycle length. Two cycles here take 1 ns.
频率的单位是
Hz
,与1/s
或s^-1
相同。要将频率转换为长度(实际时间),您必须计算倒数:长度 = 1/频率
。1/(50*10^6 Hz) = 2*10^-8 秒 = 20*10^-9 秒 = 20 纳秒
一个周期:
1/(2*10^9 Hz) = 0.5*10^-9 s = 0.5 ns
两个周期:1 ns
The unit for frequency is
Hz
which is the same as1/s
ors^-1
. To convert from frequency to length (really time) you have to compute the reciprocal value:length = 1/frequency
.1/(50*10^6 Hz) = 2*10^-8 s = 20*10^-9 s = 20 ns
One cycle:
1/(2*10^9 Hz) = 0.5*10^-9 s = 0.5 ns
Two cycles: 1 ns