SlideShare a Scribd company logo
Micro-Program Control vs Hardwired
Control units
Prof. Anish Goel
Courtesy : Richard R. Eckert, SUNY Binghamton
Basic Computer
 Traditional digital computers have two principal
functional parts:
 The data path section in which processing occurs
 The control section which is responsible for decoding
instructions and leaving the correct sequence of control
signals to make the processing happen in the data path.
 Basically there are two types of control units:
 Hard-wired controllers
 Micro-programmed controllers.
2 Prof. Anish Goel
A Simple Single-Bus Basic Computer.
3 Prof. Anish Goel
Details
 12-bit bus provides for exchange of information between
pairs of registers within the data path section.
 The registers and the 256 X 12 bit RAM memory are
controlled by 16 control signals.
 Most of the registers have Load (L) and Enabled (E)
signals.
 An active L signal to a register causes the contents of the
bus to be clocked into that register on the next rising
pulse from the system clock.
 An active E signal enables the tristate outputs of the
register, thereby making its contents available to the bus.
 Therefore, a register transfer from, for example, register
A to register B would require active EA and LB control
signals.4 Prof. Anish Goel
ALU
 Processing of data is done by the (ALU), a circuit that is
capable of adding or subtracting the 12-bit numbers
contained in its two input registers: the accumulator
(ACC) and register B.
 The operation performed by the ALU is selected by the
Add (A) or Subtract (S) control signals.
 The accumulator also contains a single flip-flop that is set
whenever its contents are negative (i.e., whenever the
leading bit is set--meaning a negative 2's complement
number).
 The value of this "negative flag" provides input to the
controller/sequencer and permits implementation of
conditional branching instructions.
5 Prof. Anish Goel
RAM
 The machine's RAM memory is accessed by first
placing the 8-bit address in the Memory Address
Register (MAR).
 An active Read (R) control signal to the RAM will
then cause the selected word from the RAM to
appear in the Memory Data Register (MDR).
 An active Write (W) signal, on the other hand, will
cause the word contained in the MDR to be stored in
the RAM at the address specified by the MAR.
6 Prof. Anish Goel
DPU
 The data path section also contains a Program
Counter (PC) whose function it is to point to the
address in RAM of the next instruction to be
executed.
 The Increment Program Counter (IP) control signal
causes the contents of the PC to increase by one.
 Since the instructions on this machine are one word
long, this provides a simple mechanism for
sequential instruction execution.
 In addition there is an Instruction Register (IR) which
holds the instruction that is about to be execute and
provides its opcode to the controller/sequencer.
7 Prof. Anish Goel
Instruction Set
 An instruction in this computer consists of one 12-bit
word.
 he leading four bits form the operation code
(opcode) which specifies the action to be taken, and
the remaining 8 bits, when used, indicate the
memory address of one of the instruction's
operands.
 For those instructions that have two operands, the
other operand is machine always contained within
the accumulator.
 Table gives eight instructions that form the
instruction set we have chosen for our machine.
8 Prof. Anish Goel
Instruction Set For The Basic Computer
9 Prof. Anish Goel
Instruction Set
10 Prof. Anish Goel
Instruction Set
11 Prof. Anish Goel
The Hard-Wired Control Unit
 Block diagram shows the internal organization of a
hard-wired control unit for our simple computer.
 Input to the controller consists of the 4-bit opcode of
the instruction currently contained in the Instruction
Register and the negative flag from the accumulator.
 The controller's output is a set of 16 control signals
that go out to the various registers and to the
memory of the computer, in addition to a HLT signal
that is activated whenever the leading bit of the op-
code is one.
 The controller is composed of the following
functional units: A ring counter, an instruction
decoder, and a control matrix.
12 Prof. Anish Goel
Block diagram
13 Prof. Anish Goel
Ring Counter
 The ring counter provides a sequence of six
consecutive active signals that cycle continuously.
 Synchronized by the system clock, the ring counter
first activates its T0 line, then its T1 line, and so
forth.
 After T5 is active, the sequence begins again with
T0. Figure shows how the ring counter might be
organized internally.
14 Prof. Anish Goel
Instruction Decoder
 The instruction decoder
takes its four-bit input from
the op-code field of the
instruction register and
activates one and only one
of its 8 output lines.
 Each line corresponds to
one of the instructions in
the computer's instruction
set.
 Figure shows the internal
organization of this
decoder.15 Prof. Anish Goel
Control
 The most important part of the hard-wired controller
is the control matrix.
 It receives input from the ring counter and the
instruction decoder and provides the proper
sequence of control signals.
16 Prof. Anish Goel
The Internal Organization of the Hard-
wired Control Matrix
17 Prof. Anish Goel
LM = T0 + T3.LDA + T3.STA
A Matrix of Times at which Each Control Signal Must Be
Active in Order to Execute the Hard-wired Basic Computer's
Instructions
Prof. Anish Goel18
A Micro-programmed Control Unit
 An alternative way of generating the control signals
is that of micro-programmed control.
 In order to understand this method it is convenient to
think of sets of control signals that cause specific
micro-operations to occur as being
"microinstructions" that could be stored in a
memory.
 Each bit of a microinstruction might correspond to
one control signal.
 If the bit is set it means that the control signal will be
active; if cleared the signal will be inactive.
19 Prof. Anish Goel
Micro-Instructions
 Sequences of microinstructions could be stored in an
internal "control" memory.
 Execution of a machine language instruction could then
be caused by fetching the proper sequence of
microinstructions from the control memory and sending
them out to the data path section of the computer.
 A sequence of microinstructions that implements an
instruction on the external computer is known as a micro-
routine.
 The instruction set of the computer is thus determined by
the set of micro-routines, the "microprogram," stored in
the controller's memory.
 The control unit of a microprogram-controlled computer is
essentially a computer within a computer.
20 Prof. Anish Goel
Micro-programmed control unit
21 Prof. Anish Goel
The Microprogrammed Basic Computer's
Address ROM
22 Prof. Anish Goel
Microprogram that Implements the Basic
Computer's Instruction Set
23 Prof. Anish Goel
24 Prof. Anish Goel

More Related Content

What's hot

Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unit
abdosaidgkv
 
MicroProgrammed Explained .
MicroProgrammed Explained .MicroProgrammed Explained .
MicroProgrammed Explained .
Muhammad Umar
 
Micro programmed control
Micro programmed  controlMicro programmed  control
Micro programmed control
Shashank Singh
 
Control unit design(1)
Control unit design(1)Control unit design(1)
Control unit design(1)
Nazir Ahmed
 
15 control-computer organization and archietecture-CO-COA
15 control-computer organization and archietecture-CO-COA15 control-computer organization and archietecture-CO-COA
15 control-computer organization and archietecture-CO-COA
Jay Patel
 
Timing and control circuit
Timing and control circuitTiming and control circuit
Timing and control circuit
Rajan Shah
 
Unit2 control unit
Unit2 control unitUnit2 control unit
Unit2 control unitAshim Saha
 
Computer architecture control unit
Computer architecture control unitComputer architecture control unit
Computer architecture control unit
Mazin Alwaaly
 
Timing and control unit
Timing and control unitTiming and control unit
Timing and control unit
Destro Destro
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
Syed Zaid Irshad
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
PreethiSureshkumar1
 
Ch7 official=computer organization and archietectur- CO-COA
Ch7 official=computer organization and archietectur- CO-COACh7 official=computer organization and archietectur- CO-COA
Ch7 official=computer organization and archietectur- CO-COA
Jay Patel
 
Timing and control
Timing and controlTiming and control
Timing and control
chauhankapil
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control Anuj Modi
 
basic computer programming and micro programmed control
basic computer programming and micro programmed controlbasic computer programming and micro programmed control
basic computer programming and micro programmed control
Rai University
 
Basic processing unit by aniket bhute
Basic processing unit by aniket bhuteBasic processing unit by aniket bhute
Basic processing unit by aniket bhute
Aniket Bhute
 
Micro operation control of processor
Micro operation control of processorMicro operation control of processor
Micro operation control of processorMuhammad Ishaq
 

What's hot (20)

Control Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unitControl Units : Microprogrammed and Hardwired:control unit
Control Units : Microprogrammed and Hardwired:control unit
 
MicroProgrammed Explained .
MicroProgrammed Explained .MicroProgrammed Explained .
MicroProgrammed Explained .
 
Micro programmed control
Micro programmed  controlMicro programmed  control
Micro programmed control
 
Control unit design(1)
Control unit design(1)Control unit design(1)
Control unit design(1)
 
15 control-computer organization and archietecture-CO-COA
15 control-computer organization and archietecture-CO-COA15 control-computer organization and archietecture-CO-COA
15 control-computer organization and archietecture-CO-COA
 
Timing and control circuit
Timing and control circuitTiming and control circuit
Timing and control circuit
 
Unit2 control unit
Unit2 control unitUnit2 control unit
Unit2 control unit
 
Computer architecture control unit
Computer architecture control unitComputer architecture control unit
Computer architecture control unit
 
Timing and control unit
Timing and control unitTiming and control unit
Timing and control unit
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
 
Microprogrammed Control Unit
Microprogrammed Control UnitMicroprogrammed Control Unit
Microprogrammed Control Unit
 
Lecture 21
Lecture 21Lecture 21
Lecture 21
 
Ch7 official=computer organization and archietectur- CO-COA
Ch7 official=computer organization and archietectur- CO-COACh7 official=computer organization and archietectur- CO-COA
Ch7 official=computer organization and archietectur- CO-COA
 
Ch7 official
Ch7 officialCh7 official
Ch7 official
 
Timing and control
Timing and controlTiming and control
Timing and control
 
Microprogram Control
Microprogram Control Microprogram Control
Microprogram Control
 
basic computer programming and micro programmed control
basic computer programming and micro programmed controlbasic computer programming and micro programmed control
basic computer programming and micro programmed control
 
Control unit
Control unitControl unit
Control unit
 
Basic processing unit by aniket bhute
Basic processing unit by aniket bhuteBasic processing unit by aniket bhute
Basic processing unit by aniket bhute
 
Micro operation control of processor
Micro operation control of processorMicro operation control of processor
Micro operation control of processor
 

Similar to Computer Organization

cse211 power point presentation for engineering
cse211 power point presentation for engineeringcse211 power point presentation for engineering
cse211 power point presentation for engineering
VishnuVinay6
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Designmekind
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
Anuja Gunale
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
Kamal Acharya
 
Chapter 3 computer organization and artpdf
Chapter 3 computer organization and artpdfChapter 3 computer organization and artpdf
Chapter 3 computer organization and artpdf
Mohammed472103
 
Embedded systems ppt i
Embedded systems ppt iEmbedded systems ppt i
Embedded systems ppt i
anishgoel
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessor
ankitnav1
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessor
ankitnav1
 
MICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSMICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSSabin Gautam
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
ShivamSood22
 
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptxPROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
SanjayV73
 
Microprocessors
MicroprocessorsMicroprocessors
Microprocessors
Navya Sethu
 
CSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptxCSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptx
sukhpreetsingh295239
 
Embeded system
Embeded systemEmbeded system
Embeded system
SUneel Gupta
 
MKLecture01eng.ppt
MKLecture01eng.pptMKLecture01eng.ppt
MKLecture01eng.ppt
ssuser7a33ea
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
OGAGA OTOBOR
 
Unit1 5-mpi-lecture-notes
Unit1 5-mpi-lecture-notesUnit1 5-mpi-lecture-notes
Unit1 5-mpi-lecture-notes
Prabhu Mali
 

Similar to Computer Organization (20)

2.computer org.
2.computer org.2.computer org.
2.computer org.
 
cse211 power point presentation for engineering
cse211 power point presentation for engineeringcse211 power point presentation for engineering
cse211 power point presentation for engineering
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
8085 microprocessor
8085 microprocessor8085 microprocessor
8085 microprocessor
 
Basic Computer Organization and Design
Basic Computer Organization and DesignBasic Computer Organization and Design
Basic Computer Organization and Design
 
Chapter 3 computer organization and artpdf
Chapter 3 computer organization and artpdfChapter 3 computer organization and artpdf
Chapter 3 computer organization and artpdf
 
Embedded systems ppt i
Embedded systems ppt iEmbedded systems ppt i
Embedded systems ppt i
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessor
 
Introduction to-microprocessor
Introduction to-microprocessorIntroduction to-microprocessor
Introduction to-microprocessor
 
MICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMSMICROPROCESSOR 8085 WITH PROGRAMS
MICROPROCESSOR 8085 WITH PROGRAMS
 
Architecture of 8085
Architecture of 8085Architecture of 8085
Architecture of 8085
 
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptxPROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
 
Lect11 organization
Lect11 organizationLect11 organization
Lect11 organization
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
Microprocessors
MicroprocessorsMicroprocessors
Microprocessors
 
CSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptxCSA PPT UNIT 1.pptx
CSA PPT UNIT 1.pptx
 
Embeded system
Embeded systemEmbeded system
Embeded system
 
MKLecture01eng.ppt
MKLecture01eng.pptMKLecture01eng.ppt
MKLecture01eng.ppt
 
Architecture of 8051
Architecture of 8051Architecture of 8051
Architecture of 8051
 
Unit1 5-mpi-lecture-notes
Unit1 5-mpi-lecture-notesUnit1 5-mpi-lecture-notes
Unit1 5-mpi-lecture-notes
 

Recently uploaded

basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
zwunae
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
zwunae
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
yokeleetan1
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
Kamal Acharya
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
symbo111
 

Recently uploaded (20)

basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单专业办理
 
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
一比一原版(UMich毕业证)密歇根大学|安娜堡分校毕业证成绩单专业办理
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 
Swimming pool mechanical components design.pptx
Swimming pool  mechanical components design.pptxSwimming pool  mechanical components design.pptx
Swimming pool mechanical components design.pptx
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
Water billing management system project report.pdf
Water billing management system project report.pdfWater billing management system project report.pdf
Water billing management system project report.pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Building Electrical System Design & Installation
Building Electrical System Design & InstallationBuilding Electrical System Design & Installation
Building Electrical System Design & Installation
 

Computer Organization

  • 1. Micro-Program Control vs Hardwired Control units Prof. Anish Goel Courtesy : Richard R. Eckert, SUNY Binghamton
  • 2. Basic Computer  Traditional digital computers have two principal functional parts:  The data path section in which processing occurs  The control section which is responsible for decoding instructions and leaving the correct sequence of control signals to make the processing happen in the data path.  Basically there are two types of control units:  Hard-wired controllers  Micro-programmed controllers. 2 Prof. Anish Goel
  • 3. A Simple Single-Bus Basic Computer. 3 Prof. Anish Goel
  • 4. Details  12-bit bus provides for exchange of information between pairs of registers within the data path section.  The registers and the 256 X 12 bit RAM memory are controlled by 16 control signals.  Most of the registers have Load (L) and Enabled (E) signals.  An active L signal to a register causes the contents of the bus to be clocked into that register on the next rising pulse from the system clock.  An active E signal enables the tristate outputs of the register, thereby making its contents available to the bus.  Therefore, a register transfer from, for example, register A to register B would require active EA and LB control signals.4 Prof. Anish Goel
  • 5. ALU  Processing of data is done by the (ALU), a circuit that is capable of adding or subtracting the 12-bit numbers contained in its two input registers: the accumulator (ACC) and register B.  The operation performed by the ALU is selected by the Add (A) or Subtract (S) control signals.  The accumulator also contains a single flip-flop that is set whenever its contents are negative (i.e., whenever the leading bit is set--meaning a negative 2's complement number).  The value of this "negative flag" provides input to the controller/sequencer and permits implementation of conditional branching instructions. 5 Prof. Anish Goel
  • 6. RAM  The machine's RAM memory is accessed by first placing the 8-bit address in the Memory Address Register (MAR).  An active Read (R) control signal to the RAM will then cause the selected word from the RAM to appear in the Memory Data Register (MDR).  An active Write (W) signal, on the other hand, will cause the word contained in the MDR to be stored in the RAM at the address specified by the MAR. 6 Prof. Anish Goel
  • 7. DPU  The data path section also contains a Program Counter (PC) whose function it is to point to the address in RAM of the next instruction to be executed.  The Increment Program Counter (IP) control signal causes the contents of the PC to increase by one.  Since the instructions on this machine are one word long, this provides a simple mechanism for sequential instruction execution.  In addition there is an Instruction Register (IR) which holds the instruction that is about to be execute and provides its opcode to the controller/sequencer. 7 Prof. Anish Goel
  • 8. Instruction Set  An instruction in this computer consists of one 12-bit word.  he leading four bits form the operation code (opcode) which specifies the action to be taken, and the remaining 8 bits, when used, indicate the memory address of one of the instruction's operands.  For those instructions that have two operands, the other operand is machine always contained within the accumulator.  Table gives eight instructions that form the instruction set we have chosen for our machine. 8 Prof. Anish Goel
  • 9. Instruction Set For The Basic Computer 9 Prof. Anish Goel
  • 12. The Hard-Wired Control Unit  Block diagram shows the internal organization of a hard-wired control unit for our simple computer.  Input to the controller consists of the 4-bit opcode of the instruction currently contained in the Instruction Register and the negative flag from the accumulator.  The controller's output is a set of 16 control signals that go out to the various registers and to the memory of the computer, in addition to a HLT signal that is activated whenever the leading bit of the op- code is one.  The controller is composed of the following functional units: A ring counter, an instruction decoder, and a control matrix. 12 Prof. Anish Goel
  • 14. Ring Counter  The ring counter provides a sequence of six consecutive active signals that cycle continuously.  Synchronized by the system clock, the ring counter first activates its T0 line, then its T1 line, and so forth.  After T5 is active, the sequence begins again with T0. Figure shows how the ring counter might be organized internally. 14 Prof. Anish Goel
  • 15. Instruction Decoder  The instruction decoder takes its four-bit input from the op-code field of the instruction register and activates one and only one of its 8 output lines.  Each line corresponds to one of the instructions in the computer's instruction set.  Figure shows the internal organization of this decoder.15 Prof. Anish Goel
  • 16. Control  The most important part of the hard-wired controller is the control matrix.  It receives input from the ring counter and the instruction decoder and provides the proper sequence of control signals. 16 Prof. Anish Goel
  • 17. The Internal Organization of the Hard- wired Control Matrix 17 Prof. Anish Goel LM = T0 + T3.LDA + T3.STA
  • 18. A Matrix of Times at which Each Control Signal Must Be Active in Order to Execute the Hard-wired Basic Computer's Instructions Prof. Anish Goel18
  • 19. A Micro-programmed Control Unit  An alternative way of generating the control signals is that of micro-programmed control.  In order to understand this method it is convenient to think of sets of control signals that cause specific micro-operations to occur as being "microinstructions" that could be stored in a memory.  Each bit of a microinstruction might correspond to one control signal.  If the bit is set it means that the control signal will be active; if cleared the signal will be inactive. 19 Prof. Anish Goel
  • 20. Micro-Instructions  Sequences of microinstructions could be stored in an internal "control" memory.  Execution of a machine language instruction could then be caused by fetching the proper sequence of microinstructions from the control memory and sending them out to the data path section of the computer.  A sequence of microinstructions that implements an instruction on the external computer is known as a micro- routine.  The instruction set of the computer is thus determined by the set of micro-routines, the "microprogram," stored in the controller's memory.  The control unit of a microprogram-controlled computer is essentially a computer within a computer. 20 Prof. Anish Goel
  • 22. The Microprogrammed Basic Computer's Address ROM 22 Prof. Anish Goel
  • 23. Microprogram that Implements the Basic Computer's Instruction Set 23 Prof. Anish Goel