From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,2054e6477534636c X-Google-Attributes: gidf7344,public X-Google-Thread: f73f6,2054e6477534636c X-Google-Attributes: gidf73f6,public X-Google-Thread: 1164f8,2054e6477534636c X-Google-Attributes: gid1164f8,public From: mark@cita.toronto.edu (Mark Bartelt) Subject: fun and games with 11/40 microcode (was Re: pow() Alpha problem (from Risks Digest, InfoWorld)) Date: 1997/08/28 Message-ID: #1/1 X-Deja-AN: 268760142 Sender: nntp@utcc.utoronto.ca (News) References: <5tkqjn$a14@usenet.pa.dec.com> <3404E7D1.D6483F95@bcl-anon.co.nz> Reply-To: mark@cita.utoronto.ca X-Nntp-Posting-Host: rorqual.cita.utoronto.ca Organization: Canadian Institute for Theoretical Astrophysics Newsgroups: vmsnet.internals,comp.sys.dec,comp.os.vms [ Dave Green ] >> Hey, these things happen ... back in my techie days I worked on a >> PDP11/40 running RSX that would boot up perfectly OK but as soon as any >> command was typed in and pressed RSX came back with a command >> syntax error message. No commands could be entered. >> >> Running the trusty CPU diags revealed an error with the setting of the >> overflow (V) bit. >> >> I was able to setup a microcode trap using the ucode stepper card and >> step through the code that set the bit. Scoping out the relevant chip >> saw the correct inputs but incorrect output. >> >> Replacing the chip fixed the problem (you could do that on an 11/40). >> >> Best fix I ever did. Heh, that *does* bring back memories. One of the most amazing examples of hardware wizardry that I remember from those days involved an 11/40 which had been sitting around unused for a few years, until someone in the group I was working with at the time decided to resurrect it. However, it had a tendency to crash randomly. Not often, but enough to be annoying. And, seemingly, randomly. However, the person who intended to use this machine was astoundingly talented, so he got out the schematics (yes, remember when we got full schematics with every DEC machine we got?) and started poring over them. The schematics included not only the circuit diagrams, but also a complete listing of the microcode. (I no longer recall whether the microcode listings were in octal or binary, though. ;-) Anyway, to make a very long story short, he determined that these crashes would occur only when ... (1) A "negate" instruction was immediately followed by a "jump" instruction. (2) There was a DMA transfer in progress during the time that the "negate" and "jump" were executed. When this combination of conditions occurred, the "jump" would jump to the wrong address! Don't ask me how he managed to characterize the problem to this degree. As I said, he's a sharp guy. And from the microcode listings, he found the bug which was causing the misbehaviour. So he called somebody in DEC's central engineering world, and found out that DEC had discovered this bug themselves a few years previously, and had issued an ECO. But because this machine had just been sitting around unused, it hadn't been covered by a service contract, so the ECO never got installed on it. Mark Bartelt 416/978-5619 Canadian Institute for mark@cita.utoronto.ca Theoretical Astrophysics http://www.cita.utoronto.ca/~mark "Clothes not busy being worn are busy drying." -- Dylan, on laundry day [ singing "It's all right, ma (I'm only bleaching)" ]