Computer & Telecommunications    
   
Table of contents
(Prev) Wolfdale (microprocessor)Word processing (Next)

Word (computer architecture)

Bit
14812161824313236486064128256512
Application
    16   32   64 
Floating point precision
       x1   x2x4
Floating point decimal precision
        32   64128

In computing, word is a term for the natural unit of data used by a particular processor design. A word is basically a fixed sized group of bits that are handled as a unit by the instruction set and/or hardware of the processor. The number of bits in a word (the word size, word width, or word length) is an important characteristic of a specific processor design or computer architecture.

The size of a word is reflected in many aspects of a computer's structure and operation; the majority of the registers in a processor are usually word sized and the largest piece of data that can be transferred to and from the working memory in a single operation is a word in many (not all) architectures. The largest possible address size, used to designate a location in memory, is typically a hardware word (here, "hardware word" means the full-sized natural word of the processor, as opposed to any other definition used).

Modern processors, including embedded systems, usually have a word size of 8, 16, 24, 32 or 64 bits, while modern general purpose computers usually use 32 or 64 bits. Special purpose digital processors, such as DSPs for instance, may use other sizes and many different sizes have been used historically, including 8, 9, 12, 18, 24, 36, 39, 40, 48 and 60 bits. The slab is an example of a system with an earlier word size. Several of the earliest computers (and a few modern as well) used BCD rather than plain binary, typically having a word size of 10 or 12 decimal digits, and some early decimal computers had no fixed word length at all.

The size of a word can sometimes differ from the expected due to backward compatibility with earlier computers. If multiple compatible variations or a family of processors share a common architecture and instruction set but differ in their word sizes, their documentation and software may become notationally complex to accommodate the difference (see Size families below).

Contents

Uses of words

Depending on how a computer is organized, units of the word size may be used for:

  • Integer numbers: Holders for integer numerical values may be available in one or in several different sizes, but one of the sizes available will almost always be the word. The other sizes, if any, are likely to be multiples or fractions of the word size. The smaller sizes are normally used only for efficient use of memory; when loaded into the processor, their values usually go into a larger, word sized holder.
  • Floating point numbers: Holders for floating point numerical values are typically either a word or a multiple of a word.
  • Addresses: Holders for memory addresses must be of a size capable of expressing the needed range of values but not be excessively large, so often the size used is the word though it can also be a multiple or fraction of the word size.
  • Registers: Processor registers are designed with a size appropriate for the type of data they hold, e.g. integers, floating point numbers or addresses. Many computer architectures use "general purpose" registers that can hold any of several types of data, these registers must be sized to hold the largest of the types, historically this is the word size of the architecture though increasingly special purpose, larger, registers have been added to deal with newer types.
  • Memory-processor transfer: When the processor reads from the memory subsystem into a register or writes a register's value to memory, the amount of data transferred is often a word. In simple memory subsystems, the word is transferred over the memory data bus, which typically has a width of a word or half-word. In memory subsystems that use caches, the word-sized transfer is the one between the processor and the first level of cache; at lower levels of the memory hierarchy larger transfers (which are a multiple of the word size) are normally used.
  • Unit of address resolution: In a given architecture, successive address values designate successive units of memory; this unit is the unit of address resolution. In most computers, the unit is either a character (e.g. a byte) or a word. (A few computers have used bit resolution.) If the unit is a word, then a larger amount of memory can be accessed using an address of a given size. On the other hand, if the unit is a byte, then individual characters can be addressed (i.e. selected during the memory operation).
  • Instructions: Machine instructions are normally fractions or multiples of the architecture's word size. This is a natural choice since instructions and data usually share the same memory subsystem. In Harvard architectures the word sizes of instructions and data need not be related.

Word size choice

When a computer architecture is designed, the choice of a word size is of substantial importance. There are design considerations which encourage particular bit-group sizes for particular uses (e.g. for addresses), and these considerations point to different sizes for different uses. However, considerations of economy in design strongly push for one size, or a very few sizes related by multiples or fractions (submultiples) to a primary size. That preferred size becomes the word size of the architecture.

Character size is one of the influences on a choice of word size. Before the mid-1960s, characters were most often stored in six bits; this allowed no more than 64 characters, so alphabetics were limited to upper case. Since it is efficient in time and space to have the word size be a multiple of the character size, word sizes in this period were usually multiples of 6 bits (in binary machines). A common choice then was the 36-bit word, which is also a good size for the numeric properties of a floating point format.

After the introduction of the IBM System/360 design which used eight-bit characters and supported lower-case letters, the standard size of a character (or more accurately, a byte) became eight bits. Word sizes thereafter were naturally multiples of eight bits, with 16, 32, and 64 bits being commonly used.

Variable word architectures

Early machine designs included some that used what is often termed a variable word length. In this type of organization, a numeric operand had no fixed length but rather its end was detected when a character with a special marking was encountered. Such machines often used binary coded decimal for numbers. This class of machines included the IBM 702, IBM 705, IBM 7080, IBM 7010, UNIVAC 1050, IBM 1401, and IBM 1620.

Most of these machines work on one unit of memory at a time and since each instruction or datum is several units long, each instruction takes several cycles just to access memory. These machines are often quite slow because of this. For example, instruction fetches on an IBM 1620 Model I take 8 cycles just to read the 12 digits of the instruction (the Model II reduced this to 6 cycles, or 4 cycles if the instruction did not need both address fields). Instruction execution took a completely variable number of cycles, depending on the size of the operands.

Word and byte addressing

The memory model of an architecture is strongly influenced by the word size. In particular, the resolution of a memory address, that is, the smallest unit that can be designated by an address, has often been chosen to be the word. In this approach, address values which differ by one designate adjacent memory words. This is natural in machines which deal almost always in word (or multiple-word) units, and has the advantage of allowing instructions to use minimally sized fields to contain addresses, which can permit a smaller instruction size or a larger variety of instructions.

When byte processing is to be a significant part of the workload, it is usually more advantageous to use the byte, rather than the word, as the unit of address resolution. This allows an arbitrary character within a character string to be addressed straightforwardly. A word can still be addressed, but the address to be used requires a few more bits than the word-resolution alternative. The word size needs to be an integral multiple of the character size in this organization. This addressing approach was used in the IBM 360, and has been the most common approach in machines designed since then.

The power of two

Different amounts of memory are used to store data values with different degrees of precision. The commonly used sizes are usually a power of two multiple of the unit of address resolution (byte or word). Converting the index of an item in an array into the address of the item then requires only a shift operation rather than a multiplication. In some cases this relationship can also avoid the use of division operations. As a result, most modern computer designs have word sizes (and other operand sizes) that are a power of two times the size of a byte.

Size families

As computer designs have grown more complex, the central importance of a single word size to an architecture has decreased. Although more capable hardware can use a wider variety of sizes of data, market forces exert pressure to maintain backward compatibility while extending processor capability. As a result, what might have been the central word size in a fresh design has to coexist as an alternative size to the original word size in a backward compatible design. The original word size remains available in future designs, forming the basis of a size family.

In the mid-1970s, DEC designed the VAX to be a successor of the PDP-11. They used word for a 16-bit quantity, while longword referred to a 32-bit quantity. This was in contrast to earlier machines, where the natural unit of addressing memory would be called a word, while a quantity that is one half a word would be called a halfword. In fitting with this scheme, a VAX quadword is 64 bits.

Another example is the x86 family, of which processors of three different word lengths (16-bit, later 32- and 64-bit) have been released. As software is routinely ported from one word-length to the next, some APIs and documentation define or refer to an older (and thus shorter) word-length than the full word length on the CPU that software may be compiled for. Also, similar to how bytes are used for small numbers in many programs, a shorter word (16 or 32 bits) may be used in contexts where the range of a wider word is not needed (especially where this can save considerable stack space or cache memory space). For example, Microsoft's Windows API maintains the programming language definition of WORD as 16 bits, despite the fact that the API may be used on a 32- or 64-bit x86 processor, where the standard word size would be 32 or 64 bits, respectively. Data structures containing such different sized words refer to them as WORD(16 bits/2 bytes), DWORD(32 bits/4 bytes) and QWORD(64 bits/8 bytes) respectively. A similar phenomenon has developed in Intel's x86 assembly language – because of the support for various sizes (and backward compatibility) in the instruction set, some instruction mnemonics carry "d" or "q" identifiers denoting "double-", "quad-" or "double-quad-", which are in terms of the architecture's original 16-bit word size.

Table of word sizes

key: b: bits, d: decimal digits, w: word size of architecture, n: variable size
YearComputer
Architecture
Word Size
w
Integer
Sizes
Floating Point
Sizes
Instruction
Sizes
Unit of Address
Resolution
Char
Size
1837Babbage
Analytical engine
50 dw5 different cards were used for different functions, exact size of cards not knownw
1941Zuse Z322 bw8 bw
1942ABC50 bw
1944Harvard Mark I23 dw24 b
1946
(1948)
{1953}
ENIAC
(w/ Panel #16[1])
{w/ Panel #26[2]}
10 dw, 2w
(w)
{w}

(2d, 4d, 6d, 8d)
{2d, 4d, 6d, 8d}


{w}
YearComputer
Architecture
Word Size
w
Integer
Sizes
Floating Point
Sizes
Instruction
Sizes
Unit of Address
Resolution
Char
Size
1951UNIVAC I12 dw½ww1 d
1952IAS machine40 bw½ww5 b
1952Fast Universal Digital Computer M-234 bw?w34 b = 4 b opcode plus 3�- 10b address10 b
1952IBM 70136 b½w, w½w½w, w6 b
1952UNIVAC 60n d1d, ... 10d2d, 3d
1953IBM 702n d0d, ... 511d5dd1 d
1953UNIVAC 120n d1d, ... 10d2d, 3d
1954
(1955)
IBM 650
(w/IBM 653)
10 dw
(w)
ww2 d
1954IBM 70436 bwwww6 b
1954IBM 705n d0d, ... 255d5dd1 d
1954IBM NORC16 dww, 2www
1956IBM 305n d1d, ... 100d10dd1 d
YearComputer
Architecture
Word Size
w
Integer
Sizes
Floating Point
Sizes
Instruction
Sizes
Unit of Address
Resolution
Char
Size
1957Autonetics Recomp I40 bw, 79 b, 8d, 15d½w½w, w5 b
1958UNIVAC II12 dw½ww1 d
1958SAGE32 b½www6 b
1958Autonetics Recomp II40 bw, 79 b, 8d, 15d2w½w½w, w5 b
1959IBM 1401n d1d, ...d, 2d, 4d, 5d, 7d, 8dd1 d
1959
(TBD)
IBM 1620n d2d, ...
(4d, ... 102d)
12dd2 d
1960LARC12 dw, 2ww, 2www2 d
1960CDC 160448 bww½ww6 b
1960IBM 1410n d1d, ...d, 2d, 6d, 7d, 11d, 12dd1 d
1960IBM 707010 dwwww, d2 d
1960PDP-118 bwww6 b
1961IBM 7030
(Stretch)
64 b1b, ... 64b,
1d, ... 16d
w½w, wb, ½w, w1 b, ... 8 b
1961IBM 7080n d0d, ... 255d5dd1 d
YearComputer
Architecture
Word Size
w
Integer
Sizes
Floating Point
Sizes
Instruction
Sizes
Unit of Address
Resolution
Char
Size
1962UNIVAC III25 b, 6 dw, 2w, 3w, 4www6 b
1962Autonetics D-17B
Minuteman I Guidance Computer
27 b11 b, 24 b24 bw
1962UNIVAC 110736 b1/6w, ⅓w, ½w, wwww6 b
1962IBM 7010n d1d, ...d, 2d, 6d, 7d, 11d, 12dd1 d
1962IBM 709436 bww, 2www6 b
1963Gemini Guidance Computer39 b26 b13 b13 b, 26 b
1963
(1966)
Apollo Guidance Computer15 bww, 2ww
1963Saturn Launch Vehicle Digital Computer26 bw13 bw
YearComputer
Architecture
Word Size
w
Integer
Sizes
Floating Point
Sizes
Instruction
Sizes
Unit of Address
Resolution
Char
Size
1964CDC 660060 bww¼w, ½ww6 b
1964Autonetics D-37C
Minuteman II Guidance Computer
27 b11 b, 24 b24 bw4 b, 5 b
1965IBM 36032 b½w, w,
1d, ... 16d
w, 2w½w, w, 1½w8 b8 b
1965UNIVAC 110836 b1/6w, ¼w, ⅓w, ½w, w, 2ww, 2www6 b, 9 b
1965PDP-812 bwww8 b
1970PDP-1116 bw2w, 4ww, 2w, 3w8 b8 b
1971Intel 40044 bw, d2w, 4ww
1972Intel 80088 bw, 2dw, 2w, 3ww8 b
1972Calcomp 9009 bww, 2ww8 b
1974Intel 80808 bw, 2w, 2dw, 2w, 3ww8 b
1975ILLIAC IV64 bww, ½www
1975Motorola 68008 bw, 2dw, 2w, 3ww8 b
1975MOS Tech. 6501
MOS Tech. 6502
8 bw, 2dw, 2w, 3ww8 b
1976Cray-164 b24 b, ww¼w, ½ww8 b
1976Zilog Z808 bw, 2w, 2dw, 2w, 3w, 4w, 5ww8 b
YearComputer
Architecture
Word Size
w
Integer
Sizes
Floating Point
Sizes
Instruction
Sizes
Unit of Address
Resolution
Char
Size
1978
(1980)
Intel 8086
(w/Intel 8087)
16 b½w, w, 2d
(w, 2w, 4w)

(2w, 4w, 5w, 17d)
½w, w, ... 7w8 b8 b
1978VAX-11/78032 b¼w, ½w, w, 1d, ... 31d, 1b, ... 32bw, 2w¼w, ... 14¼w8 b8 b
1979Motorola 6800032 b¼w, ½w, w, 2d½w, w, ... 7½w8 b8 b
1982
(1983)
Motorola 68020
(w/Motorola 68881)
32 b¼w, ½w, w, 2d
(w, 2w, 2½w)
½w, w, ... 7½w8 b8 b
1985Intel 8038632 b½w, w, 2d
w, 2w, 4w
2w, 4w, 5w, 17d½w, w, ... 7w8 b8 b
1985ARM132 bww8 b8 b
1985MIPS32 b¼w, ½w, ww, 2ww8 b8 b
1989Motorola 6804032 b¼w, ½w, w, 2dw, 2w, 2½w½w, w, ... 7½w8 b8 b
1991Alpha64 b¼w, ½w, ww, 2w½w8 b8 b
1991Cray C9064 b32 b, ww¼w, ½w, 48bw8 b
1991PowerPC32–64 b¼w, ½w, ww, 2ww8 b8 b
2000IA-6464 b8 b, ¼w, ½w, w½w, w41 b8 b8 b
2002XScale32 bww, 2w½w, w8 b8 b
YearComputer
Architecture
Word Size
w
Integer
Sizes
Floating Point
Sizes
Instruction
Sizes
Unit of Address
Resolution
Char
Size
key: b: bits, d: decimal digits, w: word size of architecture, n: variable size

[3][4]

See also

References

  1. ^ Computer History, Eniac coding, US: ARL, http://ftp.arl.mil/~mike/comphist/48e niac-coding/
  2. ^ "8", Computer History, Eniac coding, US: ARL, http://ftp.arl.mil/~mike/comphist/48e niac-coding/sec8.html
  3. ^ Gerrit A. Blaauw & Frederick P. Brooks (1997). Computer Architecture: Concepts and Evolution. Addison-Wesley. ISBN 0-201-10557-8.
  4. ^ Anthony Ralston & Edwin D. Reilly (1993). Encyclopedia of Computer Science Third Edition. Van Nostrand Reinhold. ISBN 0-442-27679-6.
(Prev) Wolfdale (microprocessor)Word processing (Next)