Computer Architecture and Organization: L07: Control Sequence

Slides:



Advertisements
Similar presentations
BASIC COMPUTER ORGANIZATION AND DESIGN
Advertisements

PART 5: (2/2) Processor Internals CHAPTER 15: CONTROL UNIT OPERATION 1.
ARITHMETIC LOGIC SHIFT UNIT
Basic Computer Organization and Design
5 Computer Organization
Computer Organization and Architecture
Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
Review We introduced registers
Computer System Architecture ESGD2204
Chapter No 5 Basic Computer Organization And Design.
1 Basic Computer Organization & Design Computer Organization Computer Architectures Lab BASIC COMPUTER ORGANIZATION AND DESIGN Instruction Codes Computer.
Eng. Mohammed Timraz Electronics & Communication Engineer University of Palestine Faculty of Engineering and Urban planning Software Engineering Department.
Exam2 Review Dr. Bernard Chen Ph.D. University of Central Arkansas Spring 2009.
Chapter # 6 PROGRAMING THE BASIC COMPUTER.
1 Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can be specified with register transfer statements.
M. Mateen Yaqoob The University of Lahore Spring 2014.
Lec 5 Basic Computer Organization
5-6 Memory Ref. Instruction
M. Mateen Yaqoob The University of Lahore Spring 2014
1 Basic Computer Organization & Design Computer Organization Prof. H. Yoon BASIC COMPUTER ORGANIZATION AND DESIGN Instruction Codes Computer Registers.
Instruction.
Ch5. 기본 컴퓨터의 구조와 설계.
Basic architecture.
GROUP 2 CHAPTER 16 CONTROL UNIT Group Members ๏ Evelio L. Hernandez ๏ Ashwin Soerdien ๏ Andrew Keiper ๏ Hermes Andino.
8085 processor.
Chapter 10 Control Unit Operation “Controls the operation of the processor”
Basic Computer Organization - Part 2 Designing your first computer
1 BASIC COMPUTER ORGANIZATION AND DESIGN Instruction Codes Computer Registers Computer Instructions Timing and Control Instruction Cycle Memory Reference.
Chapter 5 Computer Organization TIT 304/TCS 303. Purpose of This Chapter In this chapter we introduce a basic computer and show how its operation can.
Types of Micro-operation  Transfer data between registers  Transfer data from register to external  Transfer data from external to register  Perform.
Functions of Processor Operation Addressing modes Registers i/o module interface Memory module interface Interrupts.
PROGRAMMING THE BASIC COMPUTER
UNIT 2 REGISTER TRANSFER AND MICROOPERATIONS
Basic Computer Organization and Design
PROGRAMMING THE BASIC COMPUTER
COMPUTER ARCHITECTURE
Symbol Hex Code Description I=0 I=1
PROGRAMMING THE BASIC COMPUTER
Micro-Operations A computer executes a program Fetch/execute cycle
William Stallings Computer Organization and Architecture
REGISTER TRANSFER LANGUAGE
ADVANCED PROCESSOR ARCHITECTURE
William Stallings Computer Organization and Architecture 7th Edition
Computer Organization and Design
BASIC COMPUTER ORGANIZATION AND DESIGN
Overview Instruction Codes Computer Registers Computer Instructions
Overview Instruction Codes Computer Registers Computer Instructions
Processor Organization and Architecture
Chapter 15 Control Unit Operation
BASIC COMPUTER ORGANIZATION AND DESIGN
BASIC COMPUTER ORGANIZATION AND DESIGN
By: A. H. Abdul Hafez CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU
سازمان و طراحي کامپيوتر پايه.
Assembler CASE Tool.
PROGRAMMING THE BASIC COMPUTER
Instruction and Control II
Control Unit Introduction Types Comparison Control Memory
Computer Architecture and Organization: L11: Design Control Lines
William Stallings Computer Organization and Architecture 7th Edition
Computer Architecture and Organization: L02: Logic design Review
By: A. H. Abdul Hafez CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU
Chapter 14 Control Unit Operation
William Stallings Computer Organization and Architecture 8th Edition
By: A. H. Abdul Hafez Computer Architecture and Organization: L06: Stored program and Instruction code.
PROGRAMMING THE BASIC COMPUTER
MANINDER KAUR Maninder Kaur 1
Computer Architecture
Presentation transcript:

Computer Architecture and Organization: L07: Control Sequence By: A. H. Abdul Hafez Abdul.hafez@hku.edu.tr, ah.abdulhafez@gmail.com CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU January 18, 2019

Outlines Review of instruction set. Timing and control Control unit Hardwired control Programmed control Control unit Instruction decoder Control sequencer Time diagram End CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU January 18, 2019

Memory Reference Instructions SYMBOL HEX CODE DESCRIPTION I=0 I=1 AND 0xxx 8xxx AND memory word to AC ADD 1xxx 9xxx Add memory word to AC LDA 2xxx Axxx Load memory word to AC STA 3xxx Bxxx Store Content of AC in Memory BUN 4xxx Cxxx Branch unconditionally BSA 5xxx Dxxx Branch and Save return address ISZ 6xxx Exxx Increment and Skip if zero Where xxx represents the memory address in hexa.

Register Reference Instructions SYMBOL HEX DESCRIPTION CLA 7800 Clear AC CLE 7400 Clear E CMA 7200 Complement AC CME 7100 Complement E CIR 7080 Circulate right AC and E CIL 7040 Circulate left AC and E INC 7020 Increment AC SPA 7010 Skip next instruction if AC positive SNA 7008 Skip next instruction if AC negative SZA 7004 Skip next instruction if AC zero SZE 7002 Skip nexyt instruction if E is 0 HLT 7001 Halt computer register reference instructions are performed in a single clock cycle.

I/O Instructions SYMBOL HEX DESCRIPTION INP F800 Input Character to AC OUT F400 Output Character from AC SKI F200 Skip on Input Flag SKO F100 Skip on Output Flag ION F080 Interrupt on IOF F040 Interrupt off I/O instructions are performed in a single clock cycle.

Timing and control The timing for all registers in the basic computer is controlled by a master clock generator The clock pulses do not change the state of a register unles the register is enabled by a control signal ( LD, INR or CLR) The control signals are generated in the control unit and provide control inputs for the: multiplexers in the common bus, control inputs in processor registers, and microoperations for the accumulator Control sequence is generated in hardwired control and programmed control. CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU January 18, 2019

Hardwired Control The control logic is implemented with gates, flip flops, decoders, and other digital circuits. It has the advantage that it can be optimized to produce a fast mode of operation. Requires changes in the wiring among the various components if the design has to be modified or changed CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU January 18, 2019

Microprogrammed Control The control information is stored in a control memory. The control memory is programmed to initiate the required sequence of microoperations. Any required changes or modifications can be done by updating the microprogram in control memory CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU January 18, 2019

Control Unit of “The Basic Computer” 15 14 13 12 11-0 3x8 decoder I Control logic gates 7 6 5 4 3 2 1 0 D0 D7 ... T15 4x6 15 14 .... 2 1 0 . . . 4-bit Sequence Counter (SC) Increment (INR) Clear (CLR) Clock T0 instruction register (IR) CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU January 18, 2019

Sequence Counter 4x6 decoder 15 14 .... 2 1 0 . . . 4-bit Sequence Counter (SC) Increment (INR) Clear (CLR) Clock T0 ... As an example, consider the case where SC is incremented to provide timing signals T0,T1,T2,T3 and T4 in sequence. At time T4, SC is cleared to 0 if decoder output D3 is active D3T4: SC  0 CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU January 18, 2019

Timing Diagram of Sequence Counter Example: T0, T1, T2, T3, T4, T0, T1, . . . Assume: At time T4, SC is cleared to 0 if decoder output D3 is active D3T4: SC  0 CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU January 18, 2019

Why use a sequence counter? Not all instructions are executed in one clock cycle! This means, one instruction (an opcode) may consist of several microoperations. Using timing steps and microoperations, we can describe the instruction fetch and execution operations. First to do is: T0 : AR  PC CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU January 18, 2019

The end of the Lecture Thanks for your time Questions are welcome CAO, by Dr. A.H. Abdul Hafez, CE Dept. HKU January 18, 2019