From: "Peter \"Firefly\" Lund" <firefly@diku.dk>
Subject: Re: VAX floating-point instruction timing?
Date: Wed, 6 Sep 2006 05:19:58 +0200 [thread overview]
Message-ID: <Pine.LNX.4.61.0609060458180.13545@ask.diku.dk> (raw)
In-Reply-To: <44fdecd9@usenet01.boi.hp.com>
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 (<http://www.bitsavers.org/>) claims to have:
>
> dec/vax/AA-H306B_780uprogToolsMar82.pdf VAX-11/780 Microprogramming Tools
> User's Guide (Mar 1982)
Thank you :)
-Peter
next prev parent reply other threads:[~2006-09-06 3:19 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-02 5:18 VAX floating-point instruction timing? Peter "Firefly" Lund
2006-09-05 12:50 ` Bob Koehler
2006-09-05 20:15 ` Peter "Firefly" Lund
2006-09-05 21:32 ` Hoff Hoffman
2006-09-06 3:19 ` Peter "Firefly" Lund [this message]
2006-09-06 12:14 ` Bart Z. Lederman
2006-09-06 12:27 ` Peter "Firefly" Lund
2006-09-06 13:09 ` Peter "Firefly" Lund
2006-09-06 14:56 ` Hoff Hoffman
2006-09-06 21:32 ` Peter "Firefly" Lund
2006-09-07 3:16 ` Hoff Hoffman
2006-09-07 16:32 ` Peter "Firefly" Lund
2006-09-07 18:19 ` Hoff Hoffman
2006-09-08 2:10 ` Peter "Firefly" Lund
2006-09-08 16:21 ` Hoff Hoffman
2006-09-07 21:10 ` Bob Koehler
2006-09-08 11:07 ` Bob Willard
2006-09-08 19:45 ` Alan Adams
2006-09-08 21:41 ` Bob Koehler
2006-09-09 6:10 ` prep
2006-09-09 20:28 ` Don North
2006-09-12 13:34 ` Bob Koehler
2006-09-06 23:01 ` Peter "Firefly" Lund
2006-09-06 17:50 ` prep
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox