From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Thread: 1164f8,5cdb0c1dbaceb85b X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.73.229 with SMTP id o5mr9345832pbv.7.1328465752194; Sun, 05 Feb 2012 10:15:52 -0800 (PST) MIME-Version: 1.0 Path: lh20ni264003pbb.0!nntp.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!aioe.org!.POSTED!not-for-mail From: glen herrmannsfeldt Newsgroups: alt.sys.pdp11,vmsnet.pdp-11,comp.sys.dec Subject: Re: PDP11 Values from MFPT Date: Sun, 5 Feb 2012 18:15:46 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <4f175c07.15409279@nntp.aioe.org> <4f28b73b$0$290$14726298@news.sunsite.dk> <4f291473.18988613@nntp.aioe.org> <4f2a3a1e.28631752@nntp.aioe.org> <4f2a8c5a.52418379@nntp.aioe.org> <4f2e5f77.65538828@nntp.aioe.org> <4f2e76d1.2957482@nntp.aioe.org> <9p5e9tFm9cU1@mid.individual.net> NNTP-Posting-Host: H0vc4U5LIRkRHNPyGCs2dA.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org User-Agent: tin/1.9.6-20100522 ("Lochruan") (UNIX) (Linux/2.6.32-5-amd64 (x86_64)) X-Notice: Filtered by postfilter v. 0.8.2 In vmsnet.pdp-11 Johnny Billquist wrote: (snip on emulation speed) > Right. You can slow it down. However, at some point this becomes a > problem anyway. If you run your simulator on a host system, you are > subject to the host operating system scheduling. Which means you cannot > have a consistent clock, as with real hardware. Now, how do you solve that? Well, the other way, which hasn't been discussed much here, is hardware emulation, usually in an FPGA. There are cycle-accurate HDL cores for popular microprocessors. One can choose to clock them at an appropriate slow rate, or not. One can supply the appropriate external clock sources, such as a power line frequency clock, or, popular on some systems, CRT synchronization pulse clock. (For early IBM PC's, one updated the display memory during the vertical retrace to avoid snow on the screen.) >> But then, the question might be, except for the example above, why would >> anyone want to slow it down? > That is another good question. For game programs, it is probably necessary, otherwise usually not. >> And, no, I don't consider the fact that they run faster than the original >> to be a flaw in the emulation. They are just running as if the original >> was over-clocked. As previously mentioned, some OS won't run on an especially fast machine. Some use timing loops that fail when the processor is too fast. > Right. Actually, I think that Simh can slow the system down to the > actual speed of the real machine, but as mentioned above, that will not > be perfect, and in fact would be rather hard to get perfect on a generic > timesharing system like Unix. Something with realtime behavior might be > able to do it better, but those kind of systems are almost gone > nowadays. You just throw Unix at it, with some semi-realtime extension, > and then instead make sure you have such a fast CPU that you get away > with the system actually not doing realtime at all. And then people can > claim that Unix can do realtime. :-) I believe for Hercules, there are some tricks, such as running it slow in the beginning, when the OS does some tests, then fast. -- glen