Speed of IN, OUT, MOV; clock ticks, time

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
255
Posts: 2
Joined: Thu Aug 23, 2012 10:59 am

Speed of IN, OUT, MOV; clock ticks, time

Post by 255 »

Hi all, I'm trying to understand something about PCs and OSes and this seems the right place to solve misgivings I'm left with after browsing the web.

http://www.penguin.cz/~literakl/intel/i.html#IN
http://www.penguin.cz/~literakl/intel/o.html#OUT
The number of clocks it takes to do these instructions seems predefined/unchangeable/fixed.
But is the actual time different, depending on the device speed?
Or through the use of buffers and stuff the time for these operations never changes?

And what about the MOV instruction when reading/writing from/to RAM? To get the actual nanoseconds (or whatever) for that instruction should I add the fixed time for that instruction to the time needed to access ram, or is that time somehow included in the "clocks" value reported by these pages above because of cache and/or other tricks?

Sorry for the big confusion. ^ ^
User avatar
Owen
Member
Member
Posts: 1700
Joined: Fri Jun 13, 2008 3:21 pm
Location: Cambridge, United Kingdom
Contact:

Re: Speed of IN, OUT, MOV; clock ticks, time

Post by Owen »

Those clocks only apply to the specific processors listed. Other processors of course have different cycle timings (and those timings are rarely documented)

In general, the only timing manufacturers will give you is the best case latency. Obviously they cant' tell you how long e.g. a DRAM access is going to take, or how long a device might assert the WAIT signal for.
255
Posts: 2
Joined: Thu Aug 23, 2012 10:59 am

Re: Speed of IN, OUT, MOV; clock ticks, time

Post by 255 »

Owen wrote:Other processors of course have different cycle timings
Of course, that was not my doubt.
Owen wrote:Obviously they cant' tell you how long e.g. a DRAM access is going to take, or how long a device might assert the WAIT signal for.
OK this is what I wanted to know, thanks.
Post Reply