模拟器还是模拟器?有什么不同? [英] Simulator or Emulator? What is the difference?

查看:155
本文介绍了模拟器还是模拟器?有什么不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

虽然我大致理解模拟和仿真的含义,但我几乎总是对它们感到困惑。假设我创建了一个模仿现有硬件/软件的软件,我应该怎么称呼它?模拟器还是模拟器?

While I understand what simulation and emulation mean in general, I almost always get confused about them. Assume that I create a piece of software that mimics existing hardware/software, what should I call it? A simulator or an emulator?

有人可以解释编程上的区别吗?

Could anyone explain the difference in terms of programming?

奖金:什么是奖金?这两个术语在英语上的区别? (对不起,我不是母语人士):

Bonus: What is the difference in English between these two terms? (Sorry, I am not a native speaker :))

推荐答案

模拟是模仿外部可观察到的行为以匹配现有目标。仿真机制的内部状态不必准确反映它正在仿真的目标的内部状态。

Emulation is the process of mimicking the outwardly observable behavior to match an existing target. The internal state of the emulation mechanism does not have to accurately reflect the internal state of the target which it is emulating.

另一方面,仿真包括对基础对象进行建模目标的状态。良好仿真的最终结果是,仿真模型将仿真所仿真的目标。

Simulation, on the other hand, involves modeling the underlying state of the target. The end result of a good simulation is that the simulation model will emulate the target which it is simulating.

理想情况下,您应该能够查看模拟并观察到的属性,如果您查看原始目标,这些属性也会显示出来。在实践中,出于性能原因,可能会有一些简化的模拟方法-也就是说,模拟的某些内部方面实际上可能是一种仿真。

Ideally, you should be able to look into the simulation and observe properties that you would also see if you looked into the original target. In practice, there may some shortcuts to the simulation for performance reasons -- that is, some internal aspects of the simulation may actually be an emulation.

MAME是一款街机游戏仿真器Hyperterm是一个(不是很好)的终端模拟器。

MAME is an arcade game emulator; Hyperterm is a (not very good) terminal emulator. There's no need to model the arcade machine or a terminal in detail to get the desired emulated behavior.

飞行模拟器是一种模拟器;无需对游戏机或终端进行详细建模即可获得所需的模拟行为。 SPICE是电子模拟器。他们尽可能地对目标的每个细节进行建模,以表示目标在现实中所做的事情。

Flight Simulator is a simulator; SPICE is an electronics simulator. They model as much as possible every detail of the target to represent what the target does in reality.

编辑:其他答复指出,仿真的目的是为了能够代替它正在仿真的对象。这很重要。模拟的重点更多地放在目标内部状态的建模上,并且模拟不一定会导致仿真。特别是,模拟运行可能比实时运行慢得多。例如,SPICE不能代替实际的电子电路(即使假设存在某种神奇的设备也可以完美地将电路与SPICE仿真接口连接。)
仿真
仿真并不总是导致仿真-

Other responses have pointed out that the goal of an emulation is to able to substitute for the object it is emulating. That's an important point. A simulation's focus is more on the modelling of the internal state of the target -- and the simulation does not necessarily lead to emulation. In particular, a simulation may run far slower than real time. SPICE, for example, cannot substitue for an actual electronics circuit (even if assuming there was some kind of magical device that perfectly interfaces electrical circuits to a SPICE simulation.) A simulation Simulation does not always lead to emulation --

这篇关于模拟器还是模拟器?有什么不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆