














Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!















In this lecture, we deviate somewhat from the textbook and discuss the history of microprogrammed control units. The main topics for this lecture are as follows:
The CPU has four main components:
In order to understand the DSI, we must place it within the context of a compiler for a higher–level language. Although most compilers do not emit assembly language, we shall find it easier to under the DSI if we pretend that they do. What does the compiler output? There are two options:
The binary form of the instruction is now in the IR (Instruction Register). The control unit decodes that instruction and generates the control signals necessary for the CPU to act as directed by the machine language instruction. The two major design categories here are hard–wired and microprogrammed. Hardwired: The control signals are generated as an output of a set of basic logic gates, the input of which derives from the binary bits in the Instruction Register. Microprogrammed: The control signals are generated by a microprogram that is stored in Control Read Only Memory. The microcontroller fetches a control word from the CROM and places it into the MBR , from which control signals are emitted. The microcontroller can almost be seen as a very simple computer within a more complex computer. This simplicity was part of the original motivation.
Maurice Wilkes worked in the Computing Laboratory at Cambridge University beginning in 1936, but mostly from 1945 as he served in WW 2. He read von Neumann’s preliminary report on the EDVAC in 1946. He immediately “recognized this as the real thing” and started on building a stored program computer. In August 1946 he attended a series of lectures “Theory and Techniques for Design of Electronic Digital Computers” given at the Moore School of Engineering at the University of Pennsylvania and met many of the designers of the ENIAC. On May 6, 1949 the EDSAC was first operational, computing the values of N 2 for 1 N 99. In 1951, Wilkes published The Preparation of Programs for Electronic Digital Computers, the first book on programming. I have a 1958 edition. Also in 1951, Wilkes published a paper “The Best Way to Design an Automatic Calculating Machine” that described a technique that he microprogramming. This technique is still in use today and still has the same name. In 1958, the EDSAC 2 became operational; it was the first microprogrammed computer. (page 618 of Warford, 2005)
“As soon as we started programming, we found to our surprise that it wasn’t as easy to get programs right as we had thought. … I can remember the exact instant when I realized that a large part of my life from then on was going to be spent in finding mistakes in my own programs.” After his visit to the United States, Wilkes started to worry about the complexity of the control unit of the EDVAC, then in design. Here is what he wrote later. “I found that it did indeed have a centralized control based on the use of a matrix of diodes. It was, however, only capable of producing a fixed sequence of eight pulses—a different sequence for each instruction, but nevertheless fixed as far as a particular instruction was concerned. It was not, I think, until I got back to Cambridge that I realized that the solution was to turn the control unit into a computer in miniature by adding a second matrix to determine the flow of control at the microlevel and by providing for conditional microinstructions.” In other words, have the control signals emitted by a smaller computer that is controlled by a microprogram. The advantage is that the control unit of this smaller computer is extremely simple to design, test, and understand.
It was with the introduction of the IBM System/360 that microprogramming was taken seriously as an option for designing control units. There were two reasons.
The primary intent of the IBM design team was to generate an entire family of computers with one ISA (Instruction Set Architecture) but many different organizations. Microprogramming allowed computers of a wide range of computing power (and cost) to implement the same instruction set and run the same assembly language software. Several of the IBM product line managers saw another use for microprogramming, one that their customer base thought to be extremely important: allowing assembly language programs from earlier models (IBM 1401, IBM 7040, IBM 7094) to run unchanged on any model of the System/360 series. As one later author put it, it was only the introduction of microprogramming and the emulation of earlier machines allowed by this feature that prevented “mass defections” of the IBM customer base to other companies, such as Honeywell, that were certainly looking for the business. This idea was proposed and named “emulation” by Stewart Tucker (quoted above).
Here I just quote our textbook. “In the 1960s and 1970s, microprogramming was one of the most important techniques used in implementing machines. Through most of that period, machines were implemented with discrete components or MSI (medium- scale integration—fewer than 1000 gates per chip), ….[Designers could choose between a hardwired control unit based on a finite–state–machine model or a microprogrammed control unit]. The reliance on standard parts of low- to medium-level integration made these two design styles radically different. Microprogrammed approaches were attractive because implementing the control with a large collection of low- density gates was extremely costly. Furthermore, the popularity of relatively complex instruction sets demanded a large control unit, making a ROM-based implementation much more efficient. The hardwired implementations were faster, but too costly for most machines. Furthermore, it was very difficult to get the control correct, and changing ROMs was easier than replacing a random logic control unit. Eventually, microprogrammed control was implemented in RAM, to allow changes late in the design cycle, and even in the field after a machine shipped.”
Here we make an assertion that is almost true on the face of it: the design and testing of a control unit is one of the more difficult parts of developing a new computer. In the late 1970’s, microprogramming had become popular. One of the reasons was the way in which it facilitated the process of designing the control unit. Microprogramming was quite similar to assembly language programming; many designers of the time were experts at this. Microprogram assemblers had been developed and were in wide use. The process of microprogram development was simple:
IBM was attempting to regain dominance in the desktop market. They noted that both the S/370 and the Motorola 68000 used sixteen 32–bit general purpose registers. In 1984 IBM announced the XT/370, a “370 on a desktop”, a pair of Motorola 68000s re– microprogrammed to emulate the S/370 instruction set. Two units were required because the control store on the Motorola was too small for the S/370. As a computer the project was successful. It failed because IBM wanted full S/370 prices for the software to run on the XT/370. Source: Page 189 from (Murdocca, 2007) Confirmed on the IBM Web Site (Kozuh, 1984)
It is a simple fact that the introduction of microprogramming allowed the development of Instruction Set Architectures of almost arbitrary complexity. The VAX series of computers, marketed by the Digital Equipment Corporation, is usually seen as the “high water mark” of microprogrammed designs. The later VAX designs supported an Instruction Set Architecture with more than 300 instructions and more than a dozen addressing modes. When examining the IA–32 Instruction Set Architecture, we may not a number of instructions of significant complexity. These were introduced to support high–level languages (remember the “semantic gap”). It was later discovered that these were rarely used by compilers, but the “legacy code” issue forced their retention. It is now the case that the existence of these instructions in the IA–32 ISA required that part of the control unit be microprogrammed; a hardwired control unit would be too complex. The ghost of the Intel 80286 still haunts us.
“The Mc2 [microprogramming control] level was the standard design for practically all commercial computers until load/store architectures became fashionable in the 1980s”. Events that lead to the reduced emphasis on microprogramming include:
In order to understand the IA–32 control unit, we must first comment on a fact of instruction execution in the MIPS. Every instruction in the MIPS can be executed in one pass through the data path. What is meant by that? In this chapter, we have studied two variants of the MIPS data path.