From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 1164f8,272806539bf7cbe5 X-Google-Attributes: gid1164f8,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.cw.net!cw.net!news-FFM2.ecrc.de!news.net.uni-c.dk!munin.diku.dk!ask.diku.dk!firefly From: "Peter \"Firefly\" Lund" Newsgroups: comp.sys.dec Subject: Re: VAX floating-point instruction timing? Date: Wed, 6 Sep 2006 05:19:58 +0200 Organization: Department of Computer Science, University of Copenhagen Message-ID: References: <44fdecd9@usenet01.boi.hp.com> NNTP-Posting-Host: ask.diku.dk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: munin.diku.dk 1157512799 1007 130.225.96.225 (6 Sep 2006 03:19:59 GMT) X-Complaints-To: news@diku.dk NNTP-Posting-Date: Wed, 6 Sep 2006 03:19:59 +0000 (UTC) In-Reply-To: <44fdecd9@usenet01.boi.hp.com> Xref: g2news2.google.com comp.sys.dec:1213 On Tue, 5 Sep 2006, Hoff Hoffman wrote: > The VLSI-based VAX systems used microcode, too. I know. Bob Supnik released the microcode source code for those. >>> About all you can count on is that a NOP in the instruction cache >>> should be one cycle. >> >> On a microcoded machine? Not necessarily ;) > > I'd have to check the architecture specs to see if that was a certainty, > but I'd tend to assume that some VAX systems used more than one cycle for a > NOP. It may well have been less than a cycle in some cases, depending on > whether it was compressed out of the instruction stream. It seems to have cost exactly one (micro)cycle, not counting instruction fetch time, on the VLSI machines. Wouldn't be surprised if the really old machines took more. > (On VAX 9000?) NOP > was also useful for branch alignment, as unaligned branches were slower than > aligned branches. > >> (Yes, it was one cycle on the VLSI VAXen -- was it on VAX 11/780, too? I >> know next to nothing about its cycle times, unfortunately.) > > IIRC, it was a 188 bit microword on the VAX-11/780, and 80 on the > VAX-11/750. 188 is grotesque! I hope that meant that at least they didn't have to decode any fields of the microword. The VLSI CPUs used around 40 bits per microinstruction (but used (simple) decoders). > And not all cycles and not all ticks are necessarily the same length. Huh?! Do we talk past each other? What I call a cycle is a clock tick, in which a single microinstruction can be executed. I think some people call them ticks and reserve the word cycle for however long it takes to execute a macroinstruction. As far as I know, all the VAX implementations were synchronous so all clock ticks were equally long. I think some PDPs were partially asynchronous, though. >>> Cycle counts are about as usefull as Marketing Instructions Per >>> Second, which have the same and a few more issues. >> >> They are very useful if you are trying to understand the various >> microarchitectures used. > > And various VAX families used different microarchitectures, and instruction > subsets can and did vary across the VAX family. In various cases, it was > faster to execute a series of discrete instructions than some of the more > complex instructions. CRC comes to mind here. Sure. CRC and POLY (and queue manipulation, privilege changes, EDITPC, and vector stuff) don't interest me much, though. >> They are also very useful for optimization purposes, particularly if the >> microarchitecture is simple. > > I've never heard a VAX referred to as "simple," and a VAX microarchitecture > is not "simple.". Compared to a modern CPU, they were. I have reason to believe the microarchitectures were more complicated than necessary. If you take the Pentium microarchitecture, strip out one of the two pipelines and change it so it fits the VAX architecture instead of the IA32 architecture (basically yank out one set of idiosyncracies and stuff in another), then you should end up with something both faster and simpler than what DEC used. And you should be able to use that basic microarchitecture over a much wider range of implementations, even TTL. > (Dig around for any discussions of the WCS Writable > Control Store option if you want details of what one VAX looked like. The > WCS allowed user-written microcode for the VAX-11/780, and there were some > folks that wanted or needed that extra margin of performance enough to use > WCS.) Yes, I read some articles on that. People writing Prolog accelerators, for example. It sounds like ego stroking for clever little engineers to me ;) > And you have to expect to toss all your careful profiling work out and > start over again either periodically -- there were several releases of > microcode for various VAX systems, and more than a few of the instruction > tuners had to re-tune -- or when you moved to a different VAX platform. (Or > when the data was aligned versus unaligned.) Make sure your data is aligned, then ;) This is no different from having to reoptimize when going from one x86 generation to the next -- or from Intel to Cyrix to AMD to VIA to IIT. There's a fun story about the Watcom compiler for x86. It was not very popular but everybody knew it generated the best machine code bar none. They redid their optimizations for the 486 and got a modest speed improvement after trying really, really hard. Then the Pentium came out and they had to find a way to optimize for that. They succeed -- and the Pentium-optimized code happened to run much faster on the 486 than their previus 486-optimized code ;) > The old black processor binders (black five-ring binders with a white grill > pattern) had the microcode listings for various of the VAX-11 series boxes. > And the WCS option had tools and such for one of the boxes. > > BitSavers () claims to have: > > dec/vax/AA-H306B_780uprogToolsMar82.pdf VAX-11/780 Microprogramming Tools > User's Guide (Mar 1982) Thank you :) -Peter