• Keine Ergebnisse gefunden

CONTROL ENGINEERING

N/A
N/A
Protected

Academic year: 2022

Aktie "CONTROL ENGINEERING"

Copied!
861
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)
(2)

DIGITAL COMPUTER AND CONTROL ENGINEERING

(3)

ENGINEERING SERIES

FREDERICK EMMONS TERMAN, Consulting Editor W. W. HARMAN AND J. G. TRUXAL,

Associate Consulting Editors AHRENDT AND SAVANT' Servomechanism Practice

ANGELO' Electronic Circuits

ASELTINE' Transform Method in Linear System Analysis ATWATER' Introduction to Microwave Theory

BAILEY AND GAULT· Alternating-current Machinery BERANEK' Acoustics

BRACEWELL' The Fourier Transform and Its Application BRENNER AND JAVID . Analysis of Electric Circuits BROWN' Analysis of Linear Time-invariant Systems

BRUNS AND SAUNDERS' Analysis of Feedback Control Systems CAGE' Theory and Application of Industrial Electronics CAUER . Synthesis of Linear Communication Networks CHEN . The Analysis of Linear Systems

CHEN' Linear Network Design and Synthesis CHIRLIAN . Analysis and Design 'of ElectroiiicCircuits CHIRLIAN AND ZEMANIAN . Electronics

CLEMENT AND JOHNSON' Electrical Engineering Science COTE AND OAKES' Linear Vacuum-tube and Transistor Circuits

CUCCIA' Harmonics, Sidebands, and Transients in Communication Engineering CUNNINGHAM' Introduction to Nonlinear Analysis

D'Azzo AND HOUPIS . Feedback Control System Analysis and Synthesis EASTMAN' Fundamentals of Vacuum Tubes'

FEINSTEIN' Foundations of Information Theory

FITZGERALD AND HIGGINBOTHAM' Basic Electrical Engineering FITZGERALD AND KINGSLEY . Electric Machinery

FRANK' Electrical Measurement Analysis

FRIEDLAND, WING, AND ASH' Principles of Linear Networks GHAUSI . Principles and Design of Linear Active Circuits GHOSE . Microwave Circuit Theory and Analysis

GREINER' Semiconductor Devices and Applications HAMMOND . Electrical Engineering

HANCOCK' An Introduction to the Principles of Communication Theory HAPPELL AND HESSELBERTH . Engineering Electronics

HARMAN . Fundamentals of Electronic Motion

HARMAN' Principles of the Statistical Theory of Communication HARMAN AND LYTLE' Electrical and Mechanical Networks HARRINGTON' Introduction to Electromagnetic Engineering HARRINGTON' Time-harmonic Electromagnetic Fields HAYASHI' Nonlinear Oscillations in Physical Systems HA YT . Engineering Electromagnetics

HAYT AND KEMMERLY . Engineering Circuit Analysis HILL . Electronics in Engineering

JAVID AND BRENNER' Analysis, Transmission, and Filtering of Signals JAVID AND BROWN' Field Analysis and Electromagnetics

JOHNSON' Transmission Lines and Networks

KOENIG AND BLACKWELL' Electromechanical System Theory KRAUS' Antennas

KRAUS' Electromagnetics

KUH AND PEDERSON . Principles of Circuit Synthesis

(4)

LEDLEY' Digital Computer and Control Engineering

LEPAGE' Complex Variables and the Laplace Transform for Engineering LEPAGE AND SEELY' General Network Analysis

LEY, LUTZ, AND REHBERG' Linear Circuit Analysis LINVILL AND GIBBONS' Transistors and Active Circuits LITTAUER . Pulse Electronics

LYNCH AND TRUXAL' Introductory System Analysis

LYNCH AND TRUXAL' Principles of Electronic Instrumentation LYNCH AND TRUXAL' Signals and Systems in Electrical Engineering MILLMAN' Vacuum-tube and Semiconductor Electronics

MILLMAN AND SEELY' Electronics

MILLMAN AND TAUB . Pulse and Digital Circuits

MILLMAN AND TAUB . Pulse, Digital, and Switching Waveforms MISHKIN AND BRAUN' Adaptive Control Systems

MOORE' Traveling-wave Engineering

NANAVATI . An Introduction to Semiconductor Electronics PETTIT' Electronic Switching, Timing, and Pulse Circuits PETTIT AND MCWHORTER' Electronic Amplifier Circuits PETTIT AND MCWHORTER' Concepts of Probability Theory PFEIFFER . Linear Systems Analysis

REZA . An Introduction to Information Theory REZA AND SEELY' Modern Network Analysis ROGERS' Introduction to Electric Fields RYDER . Engineering Electronics

SCHWARTZ' Information Transmission, Modulation, and Noise SCHWARZ AND FRIEDLAND' Linear Systems

SEELY' Electromechanical Energy Conversion SEELY' Electron-tube Circuits

SEELY' Electronic Engineering

SEELY' Introduction to Electromagnetic Fields SEELY . Radio Electronics

SEIFERT AND STEEG' Control Systems Engineering SISKIND' Direct-current Machinery

SKILLING' Electric Transmission Lines SKILLING' Transient Electric Currents

SPANGENBERG' Fundamentals of Electron Devices SPANGENBERG' Vacuum Tubes

STEVENSON' Elements of. Power System Analysis STEWART' Fundamentals of Signal Theory STORER' Passive Network Synthesis STRAUSS' Wave Generation and Shaping Su . Active Network Synthesis

TERMAN . Electronic and Radio Engineering TERMAN AND PETTIT' Electronic Measurements THALER' Elements of Servomechanism Theory

THALER AND BROWN' Analysis and Design of Feedback Control Systems

THALER AND PASTEL' Analysis and Design of Nonlinear Feedback Control Systems THOMPSON' Alternating-current and Transient Circuit Analysis

Tou· Digital and Sampled-data Control Systems Tou . Modern Control Theory

TRUXAL' Automatic Feedback Control System Synthesis VALDES . The Physical Theory of Transistors

VAN BLADEL . Electromagnetic Fields WEINBERG' Network Analysis and Synthesis

WILLIAMS AND YOUNG' Electrical Engineering Problems

(5)
(6)

DIGITAL COMPUTER AND CONTROL ENGINEERING

ROBERT STEVEN LEDLEY

ASSOCIATE PROFESSOR OF ELECTRICAL ENGINEERING THE GEORGE WASHINGTON UNIVERSITY

CONSULTANT MATHEMATICIAN TO THE NATIONAL BUREAU OF STANDARDS

WRITTEN WITH THE ASSISTANCE OF

LOUIS S. ROTOLO JAMES BRUCE WILSON Research Scientist Research Associate

The George Washington University

McGRAW-HILL BOOK COMPANY, INC.

New York Toronto London 1960

(7)

Copyright © 1960 by the McGraw-Hill Book Company, Inc. Printed in the United States of America. All rights reserved. This book, or parts thereof, may not be reproduced in any form without permission of the publishers. Library of Congress Catalog Card Number 59-15055

VII 36981

THE MAPLE PRESS COMPANY, YORK, PA.

(8)

TO MY SONS FREDDY AND GARY

(9)
(10)

FOREWORD

Until less than a century ago, men toiled manually to produce the very clothes they wore, shelters they lived in, and food they ate. The indus- trial revolution-derived from the invention of machines that auto- matically make commodities-was a revolution that vastly enlarged man's productive capabilities. The effect is observed upon comparing the daily life of a man of a century ago with that of a modern man, in his highly mechanized economic and interdependent social civilization. Now we are on the threshold of a new kind of revolution, a revolution that may in the future have even more far-reaching effects, vastly increasing man's

"thinking" capabilities of planning, analyzing, computing, controlling.

This new revolution derives from the availability of machines that auto- matically compute and control. We know its effects will be great, but we now can only speculate on the forms they will take. Not only will its influence be directly marked in the physical sciences and in technology, but, perhaps even more significantly, it will have a tremendous effect on the biological sciences and on the economic, political, and social aspects of our civilization. Its effects during the productive life span of the infant of 1960 will certainly be greater than those the industrial revolution has had during the life span of the infant of 1900. Pivotal in the growth and development of this newest of mankind's capabilities will be the digital- computer and -control engineer, whose primary occupation is the creation -the research, development, and production-of these new machines.

There is another quite remarkable aspect of digital-computer and con- trol engineering. Never before in the history of human endeavor has a new development of such scope and complexity emerged so rapidly.

Within a single decade this entirely new field, constructing and utilizing thousands of new computers, has already penetrated almost all phases of our modern society, from nuclear-energy production and missile design to the processing of bank checks, business invoices, and medical diagnoses.

And in the research stages there are already components that might make it feasible to build computers manyfold more complex than present-day computers.

Beyond the unique potential to mankind and the phenomenal growth of the field is yet a third relatively unique aspect of digital-computer and control engineering. It is fast becoming one of the broadest in scope and most demanding of all engineering fields, encompassing fundamental aspects of logic, mathematics, systems engineering, as well as solid-state

ix

(11)

physics and electrical engineering. Since an error of only a single bit in a program or the breakdown of a single gate or component of a digital computer or control can result in the failure of the entire system, high meticulousness is demanded of the engineer. Thus his training must not only cover a wide range of topics but must as well emphasize precise attention to detail.

This book is the first comprehensive elementary engineering text in the digital-computer- and digital-control-engineering field (although there are several excellent advanced books in more specialized aspects of the field).

The book seeks to present a new synthesis of educational material possessing a unity and breadth arising from the organization of the various aspects of digital-computer and -control engineering as a whole.

It provides the material of a basic field of study for all students of elec- trical engineering, regardless of their ultimate specialty. However, it is hoped that this book may help stimulate a number of young engineers to enter this dynamic and vitally young field.

Samuel N. Alexander

Chief, Data Processing System Division The National Bureau of Standards

(12)

PREFACE

General Information. The purpose of this book is to fill the need for a comprehensive elementary-engineering textbook in the large and still rapidly growing field of digital computers and controls. (The term control is used to emphasize that digital control and digital computers are based on the same principles.) The need for such a text is not confined to engineering schools; in industry as well, the graduate engineer with a few sporadic encounters with digital circuitry needs a sound introduction to the burgeoning literature on all phases of digital computers and controls.

Within the first five years after he earns his degree almost every elec- trical engineer will deal with some phase of digital circuitry. Therefore a course on digital computers is required for all candidates for the bachelor of electrical engineering degree at The George Washington University.

This is indicative of a trend in engineering schools throughout the country.

This text is based on experience I gained in teaching courses on digital computers at The George Washington University School of Engineering.

It is directed to senior undergraduate engineering students and first-year graduate students and is intended primarily for a year's course. Pre- requisites are college physics, calculus, and at least a first course in electronic circuits, although no great proficiency in these subjects is required. Since it is an elementary exposition of the principles of digital- computer and control engineering, the book covers topics in all three phases of the subject: the over-all design of digital systems (Parts 1 and 2); the logical design of digital circuitry (Parts 3 and 4); and the electronic design of digital circuits (Part 5).

An introductory exposition of a field as large and complex as this can never hope to treat all subjects exhaustively. Full treatment must be left to specialized source books, handbooks, and journal articles. Almost without exception, each chapter of this book could be used as the basis for an entire book in itself-this is in fact true of some sections as well. Each chapter is designed to introduce the student to certain fundamental con- cepts and techniques of development. The method of teaching is by example rather than by generalized exposition. It is felt that the student is more capable of grasping abstractions from specifics than of extracting concepts from discussions· based on generalizations alone. Hence I ha ve tried wherever it was possible to guide the student by means of specific, concrete examples. From experience I have found that this

xi

(13)

pedagogical method is particularly well suited to engineering students.

Since there has been no previous comprehensive text in the field, there is no precedent for the choice of topics. The subjects covered were chosen to present a continuous, natural development of the major aspects of the field in the limited time available to the engineering student. Of course in any field of this size there will exist differences of opinion as to which topics should and should not be included. I feel that I have chosen those topics of greatest importance and that this comprehensive treat- ment will satisfy the needs of the largest number of readers.

Much attention was paid to the exercises, of which more than 750 appear in the book. The exercises at the end of each section serve to illustrate the material of the section, to enable the student to gain compu- tational facility, and to extend the material to closely related topics not covered in the section. Almost every chapter ends with Additional Topics, a section designed' to introduce the reader to new material not covered in the chapter and to stimulate his further reading in the field.

The t~xt includes many new results of original research never previously compiled into book form, some of which here appear in publication for the first time (see Special Technical Features below).

Outlineo! the Text. Perhaps the most outstanding capability afforded by digital techniques is that of decision making, as exemplified by the programmed system. Thus Part 1, the first of two parts on digital systems, is concerned with the digital programmed system. Its first two chapters are introductory in nature: the first is intended to motivate the student by delineating the wide range of applications of digital systems and controls; the second is designed to orient the student with respect to the digital-computer-engineering field. The next three chapters are directly concerned with programming; their purpose is to expose the engineering student to a large variety of instruction and operation formats, as well as to the practice of coding. Sequencing of instructions in four-, three-, two-, and one-address-system instruction formats is con- sidered. The fundamental concepts of the loop, or iteration, and the subroutine are introduced, followed by a discussion of the various kinds of operat'ions that instructions min involve. At the end of Part 1 we con- sider the formulation of program-checking and computer-maintenance programs. Further automatic-programming techniques lay the ground- :work for a simplified presentation of the, international algebraic automatic program called ALGOL.

Part 2 is concerned with the functional approach to digital-systems design; here again the purpose is to expose the student to a variety of possible systems-design concepts. Numerical analysis is considered, as the basis of the systems design of the general-purpose digital computer.

Here the concept of the polynomial-approximation approach is stressed as a fundamental method for reducing most mathematical computation to additions, subtractions, multiplications, and divisions. Next are described computational methods other than those of classical numerical

(14)

PREFACE xiii analysis, methods which are, however, of fundamental importance in t>usiness and in other activities requiring data reduction. Besides tech- niques for searching and sorting, examples of methods for redundant and irredundant coding are considered. In order to demonstrate clearly the possibility of other than general-purpose computers, the digital differen- tial analyzer is considered, along with real-time control and other tech- niques. Also a general discussion is included of the concepts under- lying the "super" computers now in the research and developmental stages. Finally I introduce the Pedagac, a small general-purpose com- puter intended to provide the necessary thread of continuity to the study of digital-computer engineering (see below for further discussion of the Pedagac).

Probably the "newest" of the concepts confronting the uninitiated reader in digital-computer and -control engineering is that concerned with Boolean algebra as the basis for the logical design of digital circuits.

Thus Part 3, the first of two parts on the logical design of digital circuitry, is concerned with the mathematical foundations of Boolean algebra.

First Boolean algebra is introduced in terms of propositions, for it is advisable that the engineer understand the relation of Boolean algebra to other concepts as well as digital circuitry. Hence we take up the propositional-calculus representation and the class, or set, representation before the digital-circuit representation. The method,of using bases and associated designation numbers in the succeeding chapters (which was first fully developed by the author, although it appeared implicitly in some earlier writings) has been found admirably suited to the teaching of the logical design of digital circuits. On the basis of this method, several modern procedures for the simplification of Boolean functions are explained, leading into the design of digital circuits to compute elemen- tary synchronous recursive functions. In the final three chapters of this part, digital computational methods of importance in logical circuit design are considered. With few exceptions the methods presented are based on the author's original research. Elementary algorithms, including methods for solving Boolean equations and their application to circuit design, are given. Chapters 13 and 14 consider computations with Boolean matrices, the former being concerned with the theoretical development of the methods, the latter with applications of these results.

(Should it be desired to study the applications of the computational methods before delving into the details of the proofs, Chap. 13 has been written so that the applications of Chap. 14 may be considered directly after Sec. 13-3 with no loss of continuity.)

Part 4 is concerned with the logical design of specific computer com- ponents. First the serial arithmetic unit is considered, then parallel and rapid arithmetic operations. Since the philosophy of teaching general principles by specific example is used, a survey of methods of performing arithmetic operations is not given. Instead the discussions are centered round a few illustrations, carefully chosen for their suitability in demon-

(15)

strating clearly the concepts involved in circuits that perform arithmetic operations. Next the various problems are considered that arise in the computation of control functions, beginning with a general discussion of minimum decoding procedures. Finally the concept of packaging is introduced, and with the logical design of the Pedagac as an illustrative example, many of the important aspects of the final logical design of a complete digital system are elucidated.

The last part, Part 5, is concerned with what is probably the most active field in digital-computer and -control engineering, the electronic design of digital circuits. The goals of the electronic design of circuits for use in digital computers and controls are derived from considerations of the digital-systems design and the logical design already covered.

Here again the attempt is made to teach concepts through selected examples of circuits. Clearly, in these rapidly developing and dynamic fields, detailed discussions of many different specific circuits are not justified-many of them would certainly be obsolescent before publication of the book. Hence specific circuits are used only as concrete illustrations of the more general underlying principles. The experienced reader will observe that the topics covered in many of the individual sections can well afford entire books to themselves. The first chapter of this part is concerned with the two most important problems involved in the transi- tion from abstract systems and logical design to the electronic realization of digital circuits, namely, timing, or clock phasing, and reliability.

Then aspects of the use of semiconductor devices, diodes and transistors, in electronic-digital-circuit design are considered. Here the most impor- tant concept to be learned is a thorough understanding of the use of the devices; hence much space is devoted to discussion of the physical opera- tion and the equivalent circuit of transistors. Consideration of magnetic elements in digital-circuit design follows, encompassing magnetic-core and muItiaperture gating devices as well as magnetic amplifiers. The discus- sion ends with a section on two most promising modern circuit develop- ments, Cryotron and microwave circuits. The next chapter is concerned with the closely related memory methods and input-output techniques.

Only core and film high-speed memories are considered, since the use of other high-speed memory forms is rare; for the same reason only tape and drum low-speed memories are described. Many of the most important input-output methods depend on analog-to-digital and digital-to-analog conversion, and these are accordingly included in this chapter. In this context a full explanation of the important sampling theorem is given.

The final chapter illustrates some exceedingly important topics in the final design of a computer. through the electronics and wiring diagram of the Pedagac.

Special Technical Features. In Part 1 of the text Sec. 5-9 is concerned with the International Algebraic Language (ALGOL). This general automatic algebraic programming language contains the primary features of other automatic programs, such as FORTRAN, IT, etc., and has the advantage of becoming widely accepted. Sponsored by the Association

(16)

PREFACE xv for Computing Machinery and several foreign societies, the universal acceptance of ALGOL would undoubtedly have a great beneficial effect on the national and international exchange of ideas and methods of programming.

Special features of Part 2 include J. H. Wegstein's general method for accelerating the convergence of iterative solutions to equations, in Sec.

6-3. The Tabledex method and the techniques of searching with relaxed conditions given in Secs. 7-3 and 7-4, as well as the new, more accurate formulas for evaluating superimposed coding given in Sec. 7-7, are the original work of the author. The specific method of Sec. 8-3 for coding the control computer was developed by the author, while the method for coding the logistics and business computer, appearing in Sec. 8-5, is based on the work of W. H. Marlow.

In Part 3 the computational methods for constraints, logical depend- ence and independence, solution to Boolean algebraic equations, and transformation to the absolute simplest form, given in Secs. 12-2 through 12-10, are the author's original developments. The method of ante- cedence and consequence solutions, the fundamental Boolean matrix formulas and their proofs, given in Secs. 14-1 through 14-6, are the result of the author's original research, as are also the extension of the use of designation numbers to three (or more) -valued logic and their appli- cation to the design of three-valued digital circuits (Sec. 12-11). The extension of the fundamental Boolean matrix formulas to multivalued logic, as given in Sec. 14-7, was developed by W. R. Smith and N. F. J.

Matthews; the general solution to the logical matrix equation given in that section was developed by W. R. Smith. R. D. Elbourn deserves credit for the direct method of finding prime implicants given in Sec. 11-7.

The discussions of the parallel adder and of rapid multiplication, in Secs. 16-2 and 16-4 of Part 4, are based on the work of A. Weinberger and J. L. Smith. The rapid-division method of Sec. 16-5 was developed by the author and J. B. Wilson. The treatment of minimum decoding methods is based on a development of C. H. Page. In Part 5 the proba- bilistic-logic approach to increasing circuit reliability (Sec. 19-4) is the author's adaptation of a development of W. S. McCulloch. The tran- sistor equivalent circuit, described in Sec. 20-4 for the most commonly used grounded-emitter voltage-drive configuration, is based on an original development of S. B. Geller. The magnetic amplifier of E. W. Hogue in Sec. 21-3 presents a new technique for magnetic amplification. Section 23-4 on minimum-wiring theory is based on the works of H. Loberman and A. Weinberger.

Special Pedagogical Feature: The Pedagac. It has been my experience that, although students might understand most of the various isolated aspects of computer engineering, they still might not visualize the com- plete process of designing and building a computer. In order to provide the necessary thread of continuity to the study of computer engineering, a simple computer, the Pedagac ("Pedagogic Automatic Computer") is designed from start to finish in the book (see Chaps. 9, 18, and 23). At

(17)

first glance the Pedagac may seem unduly specific. However, . this is far from true, for the Pedagac serves as a concrete example by means of which many exceedingly important points are illustrated. Many of these points would be completely meaningless to the student if they were not developed in the context of an entire system. The Pedagac was specially designed to illustrate pertinent subject matter most clearly from a pedagogical (rather than cost or production, etc.) point of view.

The arithmetic unit is serial, since a parallel arithmetic unit would have overwhelmed the student with primarily repetitive circuitry. The registers are static flip-flops, for these are the most easily understood in relation to arithmetic operations. The control is of a parallel nature, which is in general easier to comprehend. Eight clock phases are used to simplify the transition from logical to electronic design. The specially designed packages were made as simple in concept as possible.

Possible Course Structures. This text may be used for college courses in several different ways. For a two-term course the first term may cover Parts 1 and 2, and Part 3 through Chap. 12; the second term, the remain- der of the book. Or the book may be used for a two-term composite elementary-advanced course: the elementary course may include much of . the fundamentals of digital-computer engineering, and then those students who wish to pursue the subject in more detail may continue in the more advanced course. One suggested elementary course would consider Chaps. 1 to 4 of Part 1, Chaps. 6 and 7 of Part 2, Chaps. 10 and 11 of Part 3, Chaps. 15 and 16 of Part 4, and Chaps. 19 and 20 of Part 5;

the more advanced course that follows would complete the text. A more leisurely treatment of the subject may be given in a three-term course, with more attention being paid to the selected readings and other projects and subjects mentioned in the Additional Topics sections. Here Parts 1 and 2 may be covered the first term, Part 3 the second term, and Parts 4 and 5 the third term. Other, perhaps quite eclectic, arrangements will certainly occur to the experienced instructor.

Acknowledgments. It gives me the greatest pleasure to acknowledge the help and cooperation I have received from many persons during the preparation of this book. My sincerest thanks go to James B. Wilson, who carefully and tirelessly edited the entire manuscript, contributing many important and valuable improvements to the style and technical presentation; to Louis S. Rotolo, who assisted in the designing of the Pedagac and with the Pedagac chapters, was extremely helpful in the preparation of the manuscript, and contributed many valuable sugges- tions; and to William R. Smith, who critically read the entire manuscript, prepared most of the technical illustrations, and helped in numerous other ways. I would like also to express my gratitude to R. D. Elbourn for reviewing the manuscript, making many constructive criticisms.

The encouragement and support given by E. Frank and N. T. Grisamore have been greatly appreciated. Many colleagues helped by supplying advice and information on various technical points. Of these the author particularly wishes to mention A. Weinberger, J. A. Cunning-

(18)

PREFACE xvii ham, S. B. Geller, E. W. Hogue, J. H. Wegstcin, the late M. Abramo- witz, H. Loberman, S. Greenwald, E. R. Toense, W. W. Youden, J. L.

Smith, D. R. Boyle, C. H. Page, W. H. Marlow, N. F. J. Matthews, and J. Rabinow. The author is indebted to G. U. Uyehara, N. T. Grisamore, and R. A. Toense for assisting in the design of the Pedagac package. The quality of the illustrations is in large part due to the skill and talent of J. E. Ozefovich, D. K. Anand, and A. Bucek, as well as W. R. Smith. The author wishes to thank Eva March Cuddy, Edna Crum, and Judith Holsberg for typing most of the manuscript. He gratefully acknowledges the partial support of the Mathematics Division of the Air Force Office of Scientific Research, Air Research and Development Command, and the Information Systems Branch of the Office of Naval Research, without which the preparation of the manuscript would have been impossible.

Robert Steven Ledley

(19)
(20)

CONTENTS

Foreword. ix

Preface . xi

PART 1. INTRODUCTION TO DIGITAL PROGRAMMED SYSTEMS Chapter 1. Applications of Digital Computers and Control

1-1. Introduction 1

1-2. Numerical Solution to Equations 2 1-3. Process Control 9

1-4. Simulations 13 1-5. Data Processing 18 1-6. Additional Topics 23

Chapter 2. Principles and Block Diagram of a Digital Computer 2-1. Introduction 25

2-2. Block Diagram of a Computer 26 2-3. Functional Description of a Computer 30 2-4. Words and Pulses 34

2-5. Logical Building Blocks 38

2-6. Input, Output, and Memory Systems 44 2-7. Digital-computer and -control Engineering 54 2-8. Additional Topics 55

Chapter 3. Coding and Programming a Digital Computer 3-1.

3-2.

3-3.

3-4.

3-5.

3-6.

3-7.

3-8.

3-9.

3-10.

3-11.

Introduction 60

Number Systems: Conversion 62 Number Systems: Arithmetic 69 Coding: Sequences of Instructions 71 Coding Decisions 76

Coding: Flow Charting and Symbolic Code Aids Three-address Instruction Systems 81 Two-address Instruction Systems 84 One-address Instruction Systems 86 Decimal Systems 90

Additional Topics 92

Chapter 4. Programming Fundamentals 4-1. Introduction 94

4-2. Recursion Codes and Instruction Modification 4-3. The Subroutine 104

xix

78

95

1

25

60

94

(21)

xx

4-4. Instruction Types 108 4-5. Instruction Types (Continued) 4-6. Special Coding Techniques 4-7. The Control Panel 124 4-8. Additional Topics 128

114 118

Chapter 6. Advanced Programming. 130

5-1. Introduction 130

5-2. Program Debugging Methods and Routines 131 5-3. Computer Maintenance Routines 135

5-4. Interpretive Routines: Mathematical 139 :-" 5-5.· Interpretive Routines: Simulational 142

, .. 5-6. Memory Space, Speed of Computation, and Automatic Programming 148

5-7. Compiling Routines: Translator; Address Assigner 150 5-8. Compiling Routines: Algebraic 155

5-9. The International Algebraic Language (ALGOL) 159 5-10. Additional Topics 171

PART 2. FUNCTIONAL APPROACH TO SYSTEMS DESIGN Chapter 6. Fundamentals of Numerical Analysis

6-1.

6-2.

6-3.

6-4.

6-5.

6-6.

6-7.

6-8.

6-9.

6-10.

6-11.

6-12.

Introduction 173

Simultaneous Linear Equations 174

Alge braic. and Transcendental Equations 178 Function Evaluation: Series and Continued Fractions Function Evaluation: Interpolation 186

Function Evaluation: Best-fit Polynomial Approximation Integration 193

Differentiation 196

Undetermined Coefficients 198 Differential Equations 200 Accuracy and Error 203 Additional Topics 211

Chapter 7. Searching, Sorting, Ordering, and Codifying.

7-1. Introduction 215

7-2. Methods of Searching 218 7-3. Manual Searching Methods 223 7-4. Searching with Relaxed Conditions 226 7-5. Sorting and Ordering 230

7-6. Ordering by Merging 236

7-7. Codifying: Error Correction and Superimposition 242 7-8. Additional Topics 253

183 190

.173

215

Chapter 8. Special-purpose Digital-computer Systems Design 256 8-1. Introduction 256

8-2. The Digital Differential Analyzer 257

8-3. Real-time Logical Systems Control: A Real-time Control Computer 262

8-4. Systems Design for Special-purpose Information-retrieval Computer 268

(22)

CONTENTS

8-5. Manipulations with Rectangular Arrays: A Business and Logistics Com- puter 271

8-6. The Large-scale Data Processor 281 8-7. Additional Topics 286

Chapter 9. Systems Design of the Pedagac

PAaT 3. FOUNDATIONS FOR THE LOGICAL DESIGN OF DIGITAL CIRCUITRY

xxi

288

Chapter 10. Introduction to Boolean Algebra and Digital-computer Circuits 295 10-1. Introduction ·295

10-2. Definition of Logic and Propositions 296 10-3. Definition of Propositional Operations 297 10-4. Implication, Equivalence, and Tautology 299 10-5. Truth Tables 300

10-6. Boolean Algebra 302

10-7. Boolean Algebra as the Algebra of Sets 304 10-8. Digital-computer Circuits 306

10-9. Boolean Algebra as the Algebra of Digital-computer Circuits 308 10-10. From Circuit Diagram to Boolean Function 309

10-11. From Boolean Function to Circuit Diagram 314 10-12. Additional Topics 315

Chapter 11. The Designation Numbers and the Design of Function Circuits. 320 11-1. Introduction 320

11-2. The Designation Numbers 321

11-3. The First and Second Canonical Forms 324

11-4. Included and Nonincluded Elementary Elements 326 11-5. Mongrel Forms 329

11-6. Simplest Sum-of-products Representation 331 11-7. Obtaining Essential Prime Implicants Directly 336 11-8. Simplification of Computer-circuit Design 344 11-9. The Design of Circuits That Compute Functions 346 11-10. Synchronous Recursive-function Circuits 351 11-11. The States of Circuits 356

11-12. Additional Topics 361

Chapter 12. Elementary Computational Methods in Circuit Design 368 12-1. Introduction 368

12-2. Constraints 368

12-3. Logical Dependence and Independence 374 12-4. Constraints in Circuit Design 376

12-5. Linear.Boolean Equations 379

12-6: The General Method for Solution to Any Number of Simultaneous Equations in Any Number of Unknowns 384

12-7. Solution to Equatioml in Circuit Design· 389

12-8. The Absolute Simplest Form and Change of Variables 393 12-9. Transformation to the Absolute Simplest Form 396 12-10. The Absolute Simplest Form in Circuit Design 400 12-11. Additional Topics 402

(23)

Chapter 13. Boolean Matrix Equations and the Fundamental Formulas 414 13-1.

13-2.

13-3.

13-4.

13-5.

13-6.

13-7.

Introduction and Statement of the Problem 414 Designation Numbers and Boolean Matrices 419

Antecedences and Consequences, and the Fundamental Formulas 424 Solution to the General Boolean Matrix Equation 428

Solution to the Unitary Matrix Equation 434

Derivation of the Fundamental Matrix Equation and the Fundamental Formulas 439

Additional Topics 441

Chapter 14. Applications of Matrix Equations in Circuit Design 14-1.

14-2.

14-3.

14-4.

14-5.

14-6.

14-7.

Type 1 Problems in Circuitry Type 2 Problems in Circuitry Type 3 Problems in Circuitry Constraints in the Problems Ordinary Equations 465

448 450 453 462 More General Circuit-design Problems Additional Topics 476

470

448

PART 4. LOGICAL DESIGN OF DIGITAL-COMPUTER CIRCUITRY Chapter 16. Serial Arithmetic Operations

,. 15-1.

15-2.

15-3.

15-4.

15-5.

15-6.

15-7.

Introduction 485

Common Computer Components 487

Common Computer Components (Continued) 491 Preliminaries to Synchronous Operation 498 Serial Arithmetic Unit: Addition and Subtraction Serial Arithmetic Unit: Multiplication and Division Additional Topics 517

Chapter 16. Parallel and Rapid Arithmetic Operations 16-1.

16-2.

16-3.

16-4.

16-5.

16-6.

16-7.

Introduction 519

The Parallel Adder: Logical Design Parallel Arithmetic Units 525 Rapid Multiplication 528 Rapid Division 533 Floating Operations Additional Topics

538 540 Chapter 17. Control

17-1. Introduction 543

17-2. The Decoding Circuit 547

519

502 511

17-3. Arithmetic Control: Instruction Decoder and Operations Signal Gener- ator' 553

17-4. Arithmetic Control: Internally Generated Signals and Register Con- trol 557

17-5. Control of Memory Address Selection and Instruction Sequencing 559 17-6. Memory Selection 562

17-7. Control of Instruction Execution 568 17-8. Timing and Counters 571

485

519

543

(24)

CONTENTS xxiii Chapter 18. Packaging and the Logical Design of the Pedagac 575

18-1. Introduction 575 18-2. Packaging 576

18-3. Phases and Block Diagram of the Pedagac 580 18-4. Operations Signal Generator 586

18-5. Arithmetic Unit: Vertical Description 590 18-6. Arithmetic Unit: Horizontal Description 595

18-7. Instruction Register, Current-address Register, Instruction Decoder, Memory-selection Unit, and Counters 606

18-8. Phase Generator, Buffer, and Push Buttons 615 18-9. Additional Topics 621

PART 5. ELECTRONIC DESIGN OF DIGITAL CIRCUITS Chapter 19. Problems and Limitations in Electronic Realization 623

19-1. Introduction 623

19-2. Types of Digital Gating Systems 624 19-3. Clock Phases and Synchronization 631 19-4. Methods for Increasing Circuit Reliability 634 19-5. Additional Topics 643

Chapter 20. Semiconductor Elements in Digital-circuit Design. 645 20-1. In trod uction 645

20-2. Solid-state Semiconductor Devices 645 20-3. Transistors 650

20-4. Transistor Equivalent Circuit 658 20-5. Diode-gated Circuits 667

20-6. Transistor Gating and Flip-Flops 672 20-7. The Tunnel Diode 679

20-8. Additional Topics 684

Chapter 21. Magnetic Elements in Digital-circuit Design 689 21-1. Introduction 689

21-2. Magnetic Properties and Materials for Digital Circuits 693 21-3. Diode-gated Magnetic-amplifier Circuits 698

21-4. Magnetic Gating 704

21-5. Modern Computer Techniques 711 21-6. Additional Topics 719

Chapter 22. Memory and Input-Output Methods 724

22-1. Introduction 724

22-2. Magnetic-core Memories 724 22-3. Magnetic-film Memories 728 22-4. Magnetic Tapes and Drums 732

22-5. Conversion from Analog to Digital and from Digital to Analog 739 22-6. Input-Output Methods 747

22-7. Additional Topics 757

Chapter 23. The Electronic Design of the Pedagac 764 23-1. Introduction 764

23-2. Problems in the Electronic Design of the Pedagac 765

(25)

xxiv.

CONTENTS

·23-3. Problems in Assigning. Clock.Phases 769 23-4. Minimum-wiring Theory 773

23-5. Wiring Table for the Pedagac 782 23-6. Additional Topics 786

Appendix . 787

Name Index. 807

Subject Index 815

(26)

PART 1

INTRODUCTION TO DIGITAL PROGRAMMED SYSTEMS

CHAPTER 1

APPLICATIONS OF DIGITAL COMPUTERS AND CONTROL

1-1. Introduction

The purpose of this chapter is to stimulate the reader to want to know what is in the rest of the book. By illustrating how computers can be applied, we hope to interest the reader in how he might help design and use these remarkable machines. The wide range of potential applica- tions of digital computers and control in all phases of science, industry, and government is truly amazing. In the sciences applications range from mathematics and physics to biology and medicine. The early applications were in engineering and physics, but perhaps the greatest scientific use of computers yet to come is in the biological, medical, and social sciences. In business and industry applications range from auto- matic banking, inventory control, and process control to the precise control of milling machines to produce parts requiring complicated high- tolerance machining and to missile-testing processes. In government applications range from automatic patent searching and post-office sort- ing to large-scale control of defense weapon systems. Present applications are already too numerous to list in a single volume, but they are infini- tesimal compared with the potential future applications. We hope, however, that by presenting brief descriptions of just a few applications we may impart to the reader a better insight into how digital computers and controls are used.

In general a computer can be conceived as a numerical-transformation machine. N umbers are the inputs to it, and the computer transforms these numbers into new numbers, which appear as the outputs:

Input numbers

-> I

computer

1->

output numbers

For instance, the input numbers may be the initial conditions of a differential equation; the output numbers will be a table of the functional solutions. Or the input numbers may be readings from an engineering drawing, and the output numbers will be coded instructions to direct a special milling machine. Or the input numbers may be codes that

1

(27)

2

represent a patient's symptoms; the output numbers may be codes that represent possible alternative disease diagnoses.

There are two main kinds of electronic computers: digital and analog.

In digital computers the numbers (digits) themselves are handled explic- itly by the computer; an analog computer instead deals with a representa- tion of the numbers, for instance, by voltages, lengths, etc. In this book we are concerned with digital computers only. These can be classified as general-purpose or special-purpose computers. In the first part of this book we shall describe the general-purpose computer; in Part 2 we shall consider some of the special-purpose computers. Special- purpose digital computers are sometimes referred to as digital controls.

The same engineering principles are involved in the design of either general-purpose computers or special-purpose digital-control computers.

Therefore we have used the two terms in the title of the book.

For the purposes of this chapter we have arbitrarily classified computer applications into four categories; many applications can fall into more than one of our categories. First we shall consider numerical solutions to equations. This represents an important class of applications, and undoubtedly it is these applications which makers of the first computers had in mind. The first of these applications described is based on prin- ciples familiar to every electrical engineer, the motion of charged particles in a vacuum. However, the context of the application discussed here has far greater significance. Problems involving the solution to equations are not limited to the physical sciences; equations can be written to describe many biological phenomena as well. The second category is process control: Here the need for digital computers with specialized capabilities becomes apparent. It is probably not an exaggeration to say that the third category came into being because of the great capabili- ties of the computers: this is simulation. Before the advent of computers, simulations (except perhaps laboriously calculated military war games) were rarely even discussed because they were clearly not feasible to perform. However, with the advent of high-speed computers simula- tions have become practical, and great new fields of scientific research have been opened. Most of the present-day computer applications can probably be classed in the fourth category, data processing: Business accounting, statistical reductions, information retrieval, and many other important but routine procedures can be handled by computers.

1-2. Numerical Solution to Equations

Motion of Charged Particles in the Earth's Magnetic Field. Project Argus was a major scientific and military experiment conducted by the United States (Fig. 1-1). Rockets carried a small atomic bomb more than 300 miles above the earth, at this altitude the bomb was exploded, and a resulting thin layer of radiation spread quickly round the globe.

Nuclear and atomic particles were propelled by the exploding bomb and streaked through the vacuum of the universe under forces almost entirely due to the earth's magnetic. field. Some particles moved. toward. t4e

(28)

SEC. 1-2] APPLICATIONS OF DIGITAL COMPUTERS AND CONTROL 3.

earth's poles and caused artificial auroras (northern and southern lights).

In order to measure the characteristics of this radiation layer, an earth satellite and other rockets were launched with paths passing through the layer (see Fig. 1-2). Instruments in the satellite and rockets transmitted measurements back to earth. Scientifically the shots rank among man- kind's foremost experiments. They showed that radiation introduced

LATE CITY EDITION

u ... -..rt I . . . . . .

r.I, ... ...,..te4ar.Jae ...

d ... 04", ... rnw.

T ... ..-11. v ... , I JI.6-U.I;

NEW YORK, THURSDAY, MARCH 19, 1959. FlVB CBNTI

JARDBARS

U. S. ATOM BLASTS 300 MILES UP

?

RESERVES .

LE pI TA

')\T.

ILPBUDGET

MARRADAR,SNAGMISSI

LI 1',

CALLED 'GREATEST EXPERIMENT'

FIG. 1-1. Announcement of Argus shots.

into space by man can have significant effects over those of natural radiation. Militarily the Argus shots indicated that the additional radia- tion added to the natural radiation interfered with man's electronic communications. The grave consequence is that such interference can be caused at will.

The Argus project tested theoretical calculations of what would take place when the small atomic bomb was exploded above the earth's atmosphere. Where would the electrons and other particles gO? This was a problem in the study of the motion of charged particles in a mag- netic field (the earth's) and is in principle, except for the shape of the field, the same as the problems encountered in magnetically directing an electron beam in a television tube, or accelerating particles in a betatron, or circulating particles in a cyclotron, etc. If the earth's

(29)

~a'g~etic field is represented as that of a magnetic dipole, and if x, y, and z are cartesian coordinates with the z axis directed along the earth's mag- netic axis ·from south to north, then from electromagnetic field theory

FIG. 1-2. Earth satellite measuring characteristics of radiation layer.

it can be shown that the trajectories of the charged particles are given by the solutions to the following differential equations (where the super- script dots denote differentiation with respect to time):

x

=

M q { _ (x2

+

y2

+

z2)-H[ (2Z2 - x 2 - y2)y - 3yzz]}

me

ii =

M q { - (x 2

+

y2

+

Z2)-%[ (x 2

+

y2 - 2Z2)X

+

3xzz]}

me

Z = M q {+3z[k(x2

+

y2

+

Z2)-%

+

(X2

+

y2) (x2

+

y2

+

Z2)-4]}

me

where 'k = (xy - yx) - (x 2

+

y2) (X2

+

y2

+

Z2)-~

M = earth's magnetic dipole strength m = relativistic mass of particle

q = charge of particle c = speed of light

The initial conditions are the initial coordinates (xo,Yo,zo) of the particle and the components (xo,Yo,zo) of its velocity just after the explosion.

(30)

SEC. 1-2] APPLICATIONS OF DIGITAL COMPUTERS AND CONTROL 5 These equations can be used to plot the paths of the charged particles given their initial velocities and directions. The distribution of the initial velocities and directions can be calculated from nuclear physics;

the trajectories of different kinds of particles can then be computed for many different initial conditions in the distribution. The complexity of these computations requires the use of a digital computer. The basic importance of such a calculation preliminary to the actual experiment is evident: by predicting the motion of the particles, proper and adequate plans can be made concerning the instrumentations of the satellite and the measurements to be made, the best geographical location of the experi- ment, the optimum altitude for exploding the bomb, and so forth.

Hydrodynamics of Blood Flow. The partial differential equations that describe biological phenomena more often than not defy analytical solu- tion. Attempts are usually made either to introduce simplifying assump- tions or to isolate special aspects of the problem for investigation. Both these alternatives involve certain compromises on the part of a researcher.

Such compromises can often be avoided, however, by using an electronic computer to solve the original partial differential equations numerically.

Consider the problem of blood flow through a large artery-an instance of pulsed viscous fluid flow in an elastic tube. The first step in an investigation of this problem is the formulation of hypotheses about the hydrodynamic principles involved and the derivation of the corresponding partial differential equations. The second step is to devise an experiment from which boundary conditions for the equations may be determined.

The third step is to solve the equations on a computer, comparing the solutions with the data obtained experimentally. Probably adjustments will be required in the hypotheses and the equations, and further experi- ments and computations will have to be devised. In this way the phe- nomenon can be studied in its entirety.

For example, the following equations can be derived, assuming laminar viscous flow and an exponential functional form for the elasticity of the blood vessel:

where P = pressure

7rA4dP F = - - -

8p. dx dP = CAm dA

F = average flow through a cross section V = average blood velocity over a cross section

f.L = coefficient of blood viscosity A = radius of aorta

x = distance along aorta t = time

C, m

=

constants

The experiment was to measure the pressure, as a function oi time, at

(31)

6 1 equally spaced intervals along the aorta of an anesthetized dog·· (see Fig. 1-3). The intercostal arteries (between the ribs) were th~d, so that there was no significant outflow from the aorta, and a flowmeter was placed at one end of the aorta. The boundary conditions chosen were the flow and the pressure at one end of the aorta; the equations were used to predict the pressure at the other points along. the aorta. The accuracy of the predictions with respect to the experimental results would indicate the degree of validity of the original hypotheses upon which the equations were based. Such experiments can have important applications to the prevention and cure of heart diseases in man.

Flowmeter

Fl =F(XI,t)

PI"" P~xl,t)

Pressure gauges

FIG. 1-3. Hydrodynamics of blood flow.

The Design of a Lens System. The need for accurate high-altitude photography has gained importance with the suggestion that aerial inspections be used as a means of averting atomic wars. For this work lenses of very high resolving power must be designed for aerial cameras.

Figure 1-4 shows the detail that can be obtained from high-altitude photographs using modern lens systems. The scientific design of lens systems has become feasible only through the use of electronic computers.

The problem of designing a lens system consists in tracing the paths of many rays, emanating from a single obiectpoint, through the lens system to the final image plane (see Fig. 1-5). The extent of deviations in the image plane of these rays is a measure of the resolving power of the sys- tem. The computer computes the path of each ray as it would be refracted on passing through each spherical lens surface of the system.

The initial direction of each ray is taken from the object point under consideration, and the position of impingement of this rayon the first lens surface is computed. Then the new direction of the ray as it leaves this first surface is calculated, and from this its position on the second lens surface is computed. In this way the ray is traced through the entire lens system, and its position onthefinal image plane is determined

(32)

SEC. 1-2] APPLICATIONS OF DIGITAL COMPUTERS AND CONTROL 7

FIG. 1-4. Aerial photography (25,000 ft), with enlargement of circled portion of photo- graph. [Photographs courtesy U.S. Air Force Air Photographic and Charting Service (MATS).]

(33)

TABLE 1-1,. FLOW DIAGRAM OF COMPUTATIONS FOR TRACING A RAY THROUGH A LENS SYSTEMt

Read into the computer three constants for the lens surface presently under consideration:

Cl = curvature of spherical lens surface

t = distance between this and previous lens surface

J.l.l = J:l = ratio of indices of refractions of lens surface to left and right, respec- tively

t

Read i'nto the computer six constants for the ray being traced, namely:

T = (x,y,z) = three coordinates of rayon previous lens surface

Q = (X, Y,Z) = three components of unit direction vector of ray leaving previous surface

t

Compute Tl = (Xl,Yl,Zl), the coordinates of the point where the ray strikes this lens surface, by means of the following incidence equations:

Xl = X +LX - t Yl = Y +LY

Zl = Z

+

LZ

where L =

+

C1M2 - 2M.,

e X

+

~

and ~ = [X2 - Cl(C lM2 - 2M.,)1~2

M2 = X2

+

y2

+

Z2 - e2

+

t2 - 2tx M:x; = X

+

ex - t

e = tx - (xX

+

Y Y

+

zZ)

t

Compute Ql = (Xl,Yl,Zl), the components of the unit direction vector of the refracted ray leaving this surface, by means of the following refraction equations:

Xl = J.l.IX-gCIXl

+

g

Y l = J.l.1Y - gCIYI Zl = J.l.IZ - gCIZ 1

where g =

e -

J.l.1~

and

e

= [1 - J.l.1 2(1· - ~2)1~

and ~ was found in the previous box.

Print out Tl = (Xl,YI,Zl) and Ql = (X1,Y1,Zl)'

.J..

Repeat the computation for each lens surface of the system in sequence from left to right until the ray position on the final image plane has been determined.

t The subscripted variables refer to the lens surface under consideration; the non- subscripted variables refer to the previous surface.

Referenzen

ÄHNLICHE DOKUMENTE

This leads to the (usual from a mathematical point of view) definition of algebraic numbers as RootOf expressions that are symbolic expressions with a certain algebraic rewriting

Time: 20 minutes Text: 120–150 words Use paragraphs. In your text, try not to use language from the

Time: 20 minutes Text: 120–150 words Use paragraphs. In your text, try not to use language from the

Your teacher there has asked all kids there to write an exciting story for the camp magazine.. The beginning of the story is the same

Write a letter to your American/English friend in which you tell him/her about your new situation.. Inform

Time: 25 minutes Text: 120–180 words Use paragraphs. In your text, try not to use language from the

YouthNet, an online magazine, wants your ideas about how to spend the money.. Write an article for

We developed a new approach to prove memory safety and termination of C (resp. LLVM) programs with explicit pointer arithmetic and memory access.. It re- lies on a representation