Computer Organization and Architecture: Shift Operations and Interrupts, Lecture notes of Computer Science

An in-depth exploration of shift operations and interrupts in computer organization and architecture. It covers the concept of shift microoperations, the significance of instruction codes, register-reference instructions, and memory-reference instructions. The document also delves into the instruction cycle, register transfer operations, and interrupt-initiated input/output. Students will find valuable information on the basic computer instruction format, the role of opcodes, and the impact of interrupts on program control.

Typology: Lecture notes

2017/2018

Uploaded on 09/04/2018

siva-vekkuluri
siva-vekkuluri 🇮🇳

1 document

1 / 261

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
1
Computer Organization Computer Architecture
V.Siva Krishna
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Partial preview of the text

Download Computer Organization and Architecture: Shift Operations and Interrupts and more Lecture notes Computer Science in PDF only on Docsity!

1

V.Siva Krishna

2 Chap. 1: Digital Logic Circuits

  • Logic Gates, • Boolean Algebra
  • Map Simplification, • Combinational Circuits
  • Filp-Flops, • Sequential Circuits Chap. 2: Digital Components
  • Integrated Circuits, • Decoders, • Multiplexers
  • Registers, • Shift Registers, • Binary Counters
  • Memory Unit Chap. 3: Data Representation
  • Data Types, • Complements
  • Fixed Point Representation
  • Floating Point Representation
  • Other Binary Codes, • Error Detection Codes

4 Chap. 6: Programming the Basic Computer

  • Machine Language, • Assembly Language
  • Assembler, • Program Loops
  • Programming Arithmetic and Logic Operations
  • Subroutines, • Input-Output Programming Chap. 7: Microprogrammed Control
  • Control Memory, • Sequencing Microinstructions
  • Microprogram Example, • Design of Control Unit
  • Microinstruction Format Chap. 8: Central Processing Unit
  • General Register Organization
  • Stack Organization, • Instruction Formats
  • Addressing Modes
  • Data Transfer and Manipulation
  • Program Control
  • Reduced Instruction Set Computer

5 Chap. 9: Pipeline and Vector Processing

  • Parallel Processing, • Pipelining
  • Arithmetic Pipeline, • Instruction Pipeline
  • RISC Pipeline, • Vector Processing Chap. 10: Computer Arithmetic
  • Arithmetic with Signed-2's Complement Numbers
  • Multiplication and Division Algorithms
  • Floating-Point Arithmetic Operations
  • Decimal Arithmetic Unit
  • Decimal Arithmetic Operations Chap. 11: Input-Output Organization
  • Peripheral Devices, • Input-Output Interface
  • Asynchronous Data Transfer, • Modes of Transfer
  • Priority Interrupt, • Direct Memory Access

7 SIMPLE DIGITAL SYSTEMS

  • (^) Combinational and sequential circuits (learned in Chapters 1 and 2) can be used to create simple digital systems.
  • (^) These are the low-level building blocks of a digital computer.
  • Simple digital systems are frequently characterized in terms of
    • (^) the registers they contain, and
    • (^) the operations that they perform.
  • (^) Typically,
    • (^) What operations are performed on the data in the registers
    • (^) What information is passed between registers Register Transfer &-operationsoperations

8 REGISTER TRANSFER AND MICROOPERATIONS

  • Register Transfer Language
  • Register Transfer
  • Bus and Memory Transfers
  • Arithmetic Microoperations
  • Logic Microoperations
  • Shift Microoperations
  • Arithmetic Logic Shift Unit Register Transfer &-operationsoperations

10 MICROOPERATION (2) An elementary operation performed (during one clock pulse), on the information stored in one or more registers R  f(R, R) f: shift, load, clear, increment, add, subtract, complement, and, or, xor, … ALU (f) Registers (R) 1 clock cycle Register Transfer &-operationsoperations Register Transfer Language

11 ORGANIZATION OF A DIGITAL SYSTEM

  • Set of registers and their functions
  • Microoperations set Set of allowable microoperations provided by the organization of the computer
  • Control signals that initiate the sequence of microoperations (to perform the functions)
  • (^) Definition of the (internal) organization of a computer Register Transfer &-operationsoperations Register Transfer Language

13 REGISTER TRANSFER LANGUAGE Register Transfer Language

  • (^) Rather than specifying a digital system in words, a specific notation is used, register transfer language
  • (^) For any function of the computer, the register transfer language can be used to describe the (sequence of) microoperations
  • (^) Register transfer language
    • A symbolic language
    • A convenient tool for describing the internal organization of digital computers
    • (^) Can also be used to facilitate the design process of digital systems. Register Transfer &-operationsoperations

14 DESIGNATION OF REGISTERS Register Transfer Language

  • (^) Registers are designated by capital letters, sometimes followed by numbers (e.g., A, R13, IR)
  • (^) Often the names indicate function:
    • MAR - memory address register
    • PC - program counter
    • (^) IR - instruction register
  • (^) Registers and their contents can be viewed and represented in various ways - A register can be viewed as a single entity: - (^) Registers may also be represented showing the bits of data they contain MAR Register Transfer &-operationsoperations

16 REGISTER TRANSFER Register Transfer

  • Copying the contents of one register to another is a register transfer
  • (^) A register transfer is indicated as R2  R
    • (^) In this case the contents of register R2 are copied (loaded) into register R
    • (^) A simultaneous transfer of all bits from the source R1 to the destination register R2, during one clock pulse
    • Note that this is a non-destructive; i.e. the contents of R1 are not altered by copying (loading) them to R Register Transfer &-operationsoperations

17 REGISTER TRANSFER Register Transfer

  • A register transfer such as R3  R Implies that the digital system has
    • (^) the data lines from the source register (R5) to the destination register (R3)
    • (^) Parallel load in the destination register (R3)
    • (^) Control lines to perform the action Register Transfer &-operationsoperations

19 HARDWARE IMPLEMENTATION OF CONTROLLED TRANSFERS Implementation of controlled transfer P: R2 R Block diagram Timing diagram Clock Register Transfer Transfer occurs here R R Control Circuit P^ Load n Clock Load t (^) t+

  • The same clock controls the circuits that generate the control function and the destination register
  • (^) Registers are assumed to use positive-operationsedge-operationstriggered flip-flops Register Transfer &-operationsoperations

20 SIMULTANEOUS OPERATIONS Register Transfer

  • (^) If two or more operations are to occur simultaneously, they are separated with commas P: R3  R5, MAR  IR
  • Here, if the control function P = 1, load the contents of R5 into R3, and at the same time (clock), load the contents of register IR into register MAR Register Transfer &-operationsoperations