From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,9a2ad83fe3431aa3 X-Google-Attributes: gid1164f8,public From: hoffman@xdelta.enet.dec.com (Stephen Hoffman) Subject: Re: QBus Question: C/D slots Date: 1995/08/17 Message-ID: <41077c$99p@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 108351523 distribution: world references: <40qmoi$l1q@explorer.csc.com> <40thqr$i1d@nntpd.lkg.dec.com> <40u0ad$iql@topaz.sensor.com> organization: Digital Equipment Corp reply-to: hoffman@xdelta.enet.dec.com (Stephen Hoffman) newsgroups: comp.sys.dec In article <40u0ad$iql@topaz.sensor.com>, ron@topaz.sensor.com (Ron Natalie) writes: :Stephen Hoffman (hoffman@xdelta.enet.dec.com) wrote: : :: The Q22 is commonly used as an I/O bus, and the CD interconnect has :: various uses but is most commonly used as part of a CPU-to-memory :: interconnection. As any owner of the MicroVAX I may directly or :: indirectly realize, the Q22 bus does have memory space in addition :: to I/O space, but the memory space is limited to a 4MB address space. :: The CD interconnect (with the over-the-top ribbon cables) allows :: access to rather more memory -- it's part of the memory subsystem :: on some MicroVAX and VAX 4000 processors. : :The Q-Bus, Unibus, and the entire PDP-11 and VAX architectures for that :matter don't distiguish at all between I/O and memory, as far as the :architecture is concerned, it's all memory. Oh how I wish this were true. :-) The VAX Architecture does make an effort to avoid implementation details, but all memory is not created equal, and the architecture does make various differentiations -- even the 1981 Architecture Handbook points out differences. As one works at the device driver level, one will find that not all memory reacts in quite the same fashion -- one will find various differences. (Most (all?) are even documented. :-) In the specific MicroVAX Q-bus case I was referencing, there exist three regions: Q-bus I/O space, Q-bus memory space, and VAX memory space. Q-bus memory space is not typically mapped into system physical or system virtual address space as most folks do not have Q-bus memory installed, but it can be done. (The MicroVAX I was limited to the use of Q-bus memory space. The MicroVAX II moved the main memory off the Q-bus.) And depending on the widget(s) involved, one may need to do a little work with the CSR and with the page tables. Obviously, one finds mostly CSRs in I/O space. Qbus space and VAX memory spaces are treated differently for certain driver-visible operations, though they are all mapped (or can all be mapped, depending on the particular Q-bus widgets involved) into the processor's system physical or virtual address space. One salient example of the differences between memory and I/O: not all VAX instructions can be safely used in I/O space -- one can safely use only a subset of the available VAX instructions. One can find the read and write order processing and the interlocks constrained, depending on the particular reference and/or the particular widget and/or the alignment of the reference. And one can also find a few (weird) I/O widgets where one issues a read instruction to activate or otherwise alter the contents of the CSR. (One does not find this read-to-write behaviour in memory space.) And I'll completely ignore the I/O widgets that can (and do) reference the host page tables. ------------------------------ Opinionative ------------------------------- Stephen Hoffman OpenVMS Engineering hoffman@xdelta.enet.dec.com ---------------------------------------------------------------------------