SlideShare a Scribd company logo
1 of 36
BASIC COMPUTER ORGANISATION God’s Organisation  Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
CPU TRIODE I/O MEMORY Buses : A Bus  (Address Bus) D Bus (Data Bus) C Bus (control Bus) System Buses  (Collection of A,B,C) Note : Primary Memory directly addressable by CPU            Secondary Memory not directly addressable by CPU Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Memory RAM ROM IOC I/P 1 V FLAG I N T E R F A C E I/P 2 . . . ALU I/P n GPR ACC O/P 1 O/P 2 . . . PC SP O/P m IR I/O TIMING &CONTROL Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com Bus Convention : A/B Bus C Bus Exchange of Information :  Unidirectional Note : I / O Control       : South Bridge Memory Control : North Bridge Note : Memory which can be change itself is known as register. Note : Every CPU is microprocessor, But every microprocessor is not CPU
Transformation mechanism that transforms the given input into a desired O/P is typically called a PROCESS Entity that perform these task (transformation) is  typically called PROCESSOR The method followed where processor is performing a process is  typically called PROCESSING (Process is being processed by processor is PROCESSING) Role of Flags :  2  flags are affected when we go for  A – B and they are Z (Zero) and 	           B (Borrow). 				Z	B	 				0	0	A>B 				0	1	A<B 				1	0	A=B 				1	1	  X 		           Z . B   +   Z . B   =  S1 		           Z . B  =  S2 Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
= x + z y Role of Register  : Pentium processor contains only 4 register 		(Register is nothing but a scratch pad memory) 	              		      x   =   y   +   z      According to programming language: 			MOV	R0   ,   y 			MOV	R1   ,   z 			ADD	R0   ,   R1 			MOV	x      ,   R0 L Value  R Value  Translated by  Compiler This is Parse Tree  Or Syntax Tree  Note : 	Accumulator  is represented by (  R0  /  A  ) 	(  Most General Purpose Register  ) Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Role of Special Purpose Register (SPR): Program Counter / Instruction Counter ( It holds address of next instruction to be executed ) 101 100 PC 101 Instruction Register Next Instruction’s address is in PC now, instruction at that address is read out and put it in Instruction Register. (Click any where to move) This all process is maintained by Operating System Stack Pointer  ( It can not contain address of any empty location and when it not point to any 	thing than it contain NULL ) Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Role of Instruction Register (IR): 100 100 . . . 1.	Fetching of Instruction 2.	Decoding of Instruction  	( What to do ? ) 3.	Fetching of Data ( if any ) 4.	Execution 5	Stores Result Machine Operations Machine Operation (M.O.) + (M.O.) + (M.O.) + (M.O.) + . . .    =    Macro Operation (Micro Operation) 				           ( 1 Instruction Execution ) Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Instruction and Addressing Mode : ADD	A , B Operand Operation Classification  Zero Addressing Instruction One Addressing Instruction Two Addressing Instruction Three Addressing Instruction Zero Register Processor (C.P.U)   		       OR 	Stack Oriented Computer 		       OR 	Zero Register Organised C.P.U Not a single GPR is available not even ACC Single Register Processor  Only one Register ACC General Register Organisation 	  More than one register  	  ( ACC + many other register )	 Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Given Equation : 	 	X  =  (  A  *  B  )  +  (  C  *  D  )  3 Address Instruction  MUL	R1   ,   A      B  MUL	R2   ,   C      D ADD 	X     ,    R1    R2 MUL	A      ,      B MUL	C      ,      D ADD	A      ,      C MOV	X      ,      A In this case we will loose  value of A and C therefore  not feasible 2 Address Instruction  MOV	R1      ,      A MOV	R1      ,      B MOV	R2      ,      C MOV	R2      ,      D MOV	R1      ,      R2 MOV	X        ,      R1 1 Address Instruction  LOAD	A	( R0 A ) MUL	B	( R0 R0 * B ) STORE	T1 LOAD	C MUL	D ADD	T1 STORE	X Note 	:	Implicit operand is ACC /  A  /  R0 Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
0 Address Instruction  PUSH	A PUSH	D D C A A  *  B PUSH	B MUL	 B C  *  D A A  *  B MUL	 ADD A  *  B (A*B) + (C*D) PUSH	C STORE X C (A*B) + (C*D) (Calculated) A  *  B X (in Memory) Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
TYPE OPERATOR DESTINATION / SOURCE 1 SOURCE 2 00   ADD / AND 01   SUB / OR 10   MUL / XOR 11   DIV / NOT Instruction Construction : 0	ADD 1	SUB 00	R0 01	R1 10	R2 11	M            OPERATOR             DESTINATION / SOURCE 1             SOURCE 2 1 2 2 5 bits 000	R0    001	R1 010	R2 .	. .	. .	. 111	R7 0  ARITHEMATIC 1  LOGICAL Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Register Operand Input Output Operand Memory Operand Addressing Mode : ( How you are getting data ) Instruction Operand OR Operator Direct Indirect Immediate Register-Register Indirect Register-Memory Indirect Memory-Memory Indirect Memory-Register Indirect Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
1.	ADD[6]	Direct Pointer 	(The address of operand is available in instruction (ORIGINAL WORKING)) 		At location 6 (0110) , we are having address 9 (1001) of  		operand (1001011101). 2.	Add 6		Immediate 	(Data is part of instruction , data is not in any register or memory) 		Here, data is available is Instruction, 6 (0110) is itself is data IADD[6]	Indirect 	(Pointer) 	At location 6 (0110) , we are having address 9 (1001), of memory 	location which is having address of operand (1001011101).It means it 	is concept of pointer to pointer 0110 1001 1001 1001011101 0110 1001 1001 1100 1100 1001011101 Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Implied Mode : 	 ( operand is at CPU’s register )  		CMA		Compliment ACC. 		STC		Set Carry Immediate Mode :	 ( data is part of Instruction )  		ADD 6	Add 6 to Accumulator Register Mode : 	 ( Operand is available in GPR ) 		ADD B		A  A + B 		ADD A , B		A  A + B  		ADD R1		R0  R0 + R1 Register Indirect Mode :  		IADD B		A  A + [M]B 				the content of Memory M 				whose address is given by register B 				must be Added to A Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Memory 4096 X 16 PC ( Program Counter ) 1 2 3 . . .                            . . .16 MAR 1 2 3 . . .         12 1          2          3 1 I OPR MBR 1 1 2 3 . . .                            . . .16 E AC 1 2 3 . . .                            . . .16 Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
ADIC BUS CPU CPU VIDEO BUS FSB DVD HOST PORT MAIN MEMORY NORTH  BRIDGE AGP PORT AGP POINT MONITOR LOCAL VIDEO  MEMORY PCI SLOT PCI BUS IDE SOUTH BRIDGE SCSI ETHERNET USB I R C HDD CD ROM INTERRUPT IO APIC ISA BUS SUPER I/O ISA SLOT FDD BIOS KB RPINTER SOUND CHIP MOUSE COM 1 COM 2 BUSES Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
1 I/O PROCESSOR MEMORY CONTROL 2 O/P PRIMITIVE BUS ARCHITECTURE The drawback of this technique is that a double side bus is needed Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
BACKPLANE BUS PROCESSOR I/O I/O I/O MEMORY SHARED BUS ARCHITECTURE Different i/o has different data transmission protocol and also having different speed (mismatch) for that,  and this is all burden taken care by one device Shared Bustypically called Backplane Bus Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Processor Memory Bus (PMB) Processor Memory Bus Adaptor Bus Adaptor Bus Adaptor I/O Bus I/O Bus I/O Bus The previously said bus system is also having disadvantage of CPU Overheads, to remove this we have two type of Level Architecture : 	1.	2 Leveled Architecture 	2.	3 Leveled Architecture   2 Leveled Architecture Note : Conflicts and Mismatch can be taken care by Bus Adaptor now this not burden for CPU Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Processor Memory Bus (PMB) Processor Memory MBA BA Backplane Bus BA 3 Leveled Architecture Note : PMB  is not directly connected to I/O, rather connected to MBA Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Transfer Video camera  To PC Proprietary and  rest all are Free Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
SU DU Valid Data Data Strobe t3 t4 t2 t1 BUS TRANSFER :  Strobe Method Handshake Method Strobe Method : (source initiated) Block Diagram Timing Diagram Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
SU DU Valid Data Data Strobe Strobe Method : (destination initiated) Block Diagram Timing Diagram Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
SU DU Data Bus DAV DAC 2.	   Handshaking Method : ( Source Initiated ) Block Diagram SU DU DAC DAV  0 1 0 1 Data Valid Data Accept Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com Click for Every Action
Place Data on BUS Enable DAV Accept Data Enable DAC Disable DAV Disable DAV Timing Diagram Valid Data Data DAV DAC Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
2.	   Handshaking Method : ( Destination Initiated ) Block Diagram SU DU Data Bus DAV RFD SU DU DAC DAV  0 0 1 1 Data Valid Data Accept Ready to Accept Data Click for Every Action Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Ready to accept Data Enable DAC Place Data on BUS Enable DAV Accept Data from  Enable DAC Disable DAV Timing Diagram Data Valid Data Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Bus Scheduling : Daisy Chaining  Polling Independent Daisy Chaining Bus Control Unit (BCU) U1 U2 Un Bus Grant . . . Bus Request Bus Busy BUS Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Case 1:	U1 is requesting for BUS Note:  (Sequential processing) Therefore Un have lowest priority and U1 have highest priority. If U1 leave then only other gets the chance. (as shown in diagram) Case 2:	U2 is requesting for BUS . . . Case 3:	Un is requesting for BUS U1 grab the Bus Bus Control Unit (BCU) U1 U2 Un Bus Grant . . . Bus Request Bus Busy BUS Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Polling 111 000 001 . . . U1 U2 Un Bus Control Unit (BCU) Poll count BR BB 8 devices   : 3 poll count 16 devices : 4 poll count Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Independent U1 U2 Un Bus Control Unit (BCU) . . . Poll count Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
START A=0, QN-1=0 M=MULTIPLECAND Q=MULTIPLIER COUNT =N =10 =01 Q0QN-1 =11 =00 A=A+M A=A-M Arithmetic Shift Right A Q QN-1  COUNT=N No COUNT =0 ? Yes STOP Booth Algorithm : (Using 2’s compliment) Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Multiplication Algorithm : (Using Signed Magnitude) START Bs MULTIPICAND B MULTIPLIER Q As = Qs + Bs Qs = Qs + Bs A = 0 , E = 0 SC = n - 1 As Qs E A Q QN =1 QN-1=? =0 EA=A+B SHR EA Q SC=SC-1 Not 0 SC=? =1 STOP Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
Division Algorithm : Basic Steps: “A trial division” is made by subtracting the y register from Accumulator after the subtraction one of the following is executed 	1.	if Result is – ve the divisor will not go so a ZERO is placed in 	rightmost bit of the B register and Accumulator is restored. The combined 	B register and Accumulator are shifted Left. 	2.	if Result of subtraction  is + ve or Zero, then the trail division is 	succeeded. The Accumulator and B register both are shifted left and then 	1 is placed in the right most bit of B.  Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
CBest of Luck Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com

More Related Content

Viewers also liked

Computer Organisation (DFT1113)
Computer Organisation (DFT1113)Computer Organisation (DFT1113)
Computer Organisation (DFT1113)PSMZA
 
Top schools in ghaziabad
Top schools in ghaziabadTop schools in ghaziabad
Top schools in ghaziabadEdhole.com
 
Central Processing Unit User View
Central Processing Unit User ViewCentral Processing Unit User View
Central Processing Unit User ViewAnuj Modi
 
Memory Hierarchy (RAM and ROM)
Memory Hierarchy (RAM and ROM)Memory Hierarchy (RAM and ROM)
Memory Hierarchy (RAM and ROM)sumanth ch
 
Computer organisation
Computer organisationComputer organisation
Computer organisationASHIMA1993
 
Memory Organization
Memory OrganizationMemory Organization
Memory OrganizationAcad
 
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 controlRai University
 
Unit 1 basic structure of computers
Unit 1   basic structure of computersUnit 1   basic structure of computers
Unit 1 basic structure of computerschidabdu
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)Mahesh Kumar Attri
 

Viewers also liked (15)

Computer Organisation (DFT1113)
Computer Organisation (DFT1113)Computer Organisation (DFT1113)
Computer Organisation (DFT1113)
 
CPU= Central Processing Unit
CPU= Central Processing UnitCPU= Central Processing Unit
CPU= Central Processing Unit
 
Cpu organisation
Cpu organisationCpu organisation
Cpu organisation
 
Top schools in ghaziabad
Top schools in ghaziabadTop schools in ghaziabad
Top schools in ghaziabad
 
Central Processing Unit User View
Central Processing Unit User ViewCentral Processing Unit User View
Central Processing Unit User View
 
Memory Hierarchy (RAM and ROM)
Memory Hierarchy (RAM and ROM)Memory Hierarchy (RAM and ROM)
Memory Hierarchy (RAM and ROM)
 
internal_memory
internal_memoryinternal_memory
internal_memory
 
Computer organisation
Computer organisationComputer organisation
Computer organisation
 
Lecture 40
Lecture 40Lecture 40
Lecture 40
 
Chapter16
Chapter16Chapter16
Chapter16
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
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
 
Unit 1 basic structure of computers
Unit 1   basic structure of computersUnit 1   basic structure of computers
Unit 1 basic structure of computers
 
05 Internal Memory
05  Internal  Memory05  Internal  Memory
05 Internal Memory
 
Addressing modes (detailed data path)
Addressing modes (detailed data path)Addressing modes (detailed data path)
Addressing modes (detailed data path)
 

Similar to Computer Organisation Part 4

Chp1 68000 microprocessor copy
Chp1 68000 microprocessor   copyChp1 68000 microprocessor   copy
Chp1 68000 microprocessor copymkazree
 
Micro Processor And Micro controller
Micro Processor And Micro controller Micro Processor And Micro controller
Micro Processor And Micro controller Raja pirian
 
Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorDarling Jemima
 
pdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.pptpdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.pptSaurabhPorwal14
 
Computer Organization and Architecture 10th - William Stallings, Ch01.pdf
Computer Organization and Architecture 10th - William Stallings, Ch01.pdfComputer Organization and Architecture 10th - William Stallings, Ch01.pdf
Computer Organization and Architecture 10th - William Stallings, Ch01.pdfShahdAbdElsamea2
 
Reading php terminal-gameboy-emulator
Reading php terminal-gameboy-emulatorReading php terminal-gameboy-emulator
Reading php terminal-gameboy-emulatorTomoki Hasegawa
 
other-architectures.ppt
other-architectures.pptother-architectures.ppt
other-architectures.pptJaya Chavan
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copymkazree
 

Similar to Computer Organisation Part 4 (20)

Unit iii mca 1st year
Unit iii mca 1st yearUnit iii mca 1st year
Unit iii mca 1st year
 
amba.ppt
amba.pptamba.ppt
amba.ppt
 
amba.ppt
amba.pptamba.ppt
amba.ppt
 
amba (1).ppt
amba (1).pptamba (1).ppt
amba (1).ppt
 
amba.ppt
amba.pptamba.ppt
amba.ppt
 
Chp1 68000 microprocessor copy
Chp1 68000 microprocessor   copyChp1 68000 microprocessor   copy
Chp1 68000 microprocessor copy
 
Cpu unit
Cpu unitCpu unit
Cpu unit
 
Micro Processor And Micro controller
Micro Processor And Micro controller Micro Processor And Micro controller
Micro Processor And Micro controller
 
Introduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM ProcessorIntroduction to Processor Design and ARM Processor
Introduction to Processor Design and ARM Processor
 
8086 architecture
8086 architecture8086 architecture
8086 architecture
 
CAAL_CCSU_U1.pdf
CAAL_CCSU_U1.pdfCAAL_CCSU_U1.pdf
CAAL_CCSU_U1.pdf
 
pdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.pptpdfslide.net_morris-mano-ppt.ppt
pdfslide.net_morris-mano-ppt.ppt
 
Computer Organization and Architecture 10th - William Stallings, Ch01.pdf
Computer Organization and Architecture 10th - William Stallings, Ch01.pdfComputer Organization and Architecture 10th - William Stallings, Ch01.pdf
Computer Organization and Architecture 10th - William Stallings, Ch01.pdf
 
Central processor organization
Central processor organizationCentral processor organization
Central processor organization
 
Lecture 39
Lecture 39Lecture 39
Lecture 39
 
Reading php terminal-gameboy-emulator
Reading php terminal-gameboy-emulatorReading php terminal-gameboy-emulator
Reading php terminal-gameboy-emulator
 
other-architectures.ppt
other-architectures.pptother-architectures.ppt
other-architectures.ppt
 
Lecture 21
Lecture 21Lecture 21
Lecture 21
 
COA_mod2.ppt
COA_mod2.pptCOA_mod2.ppt
COA_mod2.ppt
 
Chp3 designing bus system, memory & io copy
Chp3 designing bus system, memory & io   copyChp3 designing bus system, memory & io   copy
Chp3 designing bus system, memory & io copy
 

More from Krishna Kumar Bohra

More from Krishna Kumar Bohra (6)

Hacking and Watermarking
Hacking and WatermarkingHacking and Watermarking
Hacking and Watermarking
 
Computer Organisation Part 3
Computer Organisation Part 3Computer Organisation Part 3
Computer Organisation Part 3
 
Computer Organisation Part 2
Computer Organisation Part 2Computer Organisation Part 2
Computer Organisation Part 2
 
Tips And Tips Computer Organisation
Tips And  Tips Computer OrganisationTips And  Tips Computer Organisation
Tips And Tips Computer Organisation
 
Holographic Environment Amazing Augmented Reality
Holographic Environment Amazing Augmented RealityHolographic Environment Amazing Augmented Reality
Holographic Environment Amazing Augmented Reality
 
ISO OSI Model
ISO OSI ModelISO OSI Model
ISO OSI Model
 

Recently uploaded

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Manik S Magar
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 

Recently uploaded (20)

Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!Anypoint Exchange: It’s Not Just a Repo!
Anypoint Exchange: It’s Not Just a Repo!
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 

Computer Organisation Part 4

  • 1. BASIC COMPUTER ORGANISATION God’s Organisation Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 2. CPU TRIODE I/O MEMORY Buses : A Bus (Address Bus) D Bus (Data Bus) C Bus (control Bus) System Buses (Collection of A,B,C) Note : Primary Memory directly addressable by CPU Secondary Memory not directly addressable by CPU Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 3. Memory RAM ROM IOC I/P 1 V FLAG I N T E R F A C E I/P 2 . . . ALU I/P n GPR ACC O/P 1 O/P 2 . . . PC SP O/P m IR I/O TIMING &CONTROL Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 4. Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com Bus Convention : A/B Bus C Bus Exchange of Information : Unidirectional Note : I / O Control : South Bridge Memory Control : North Bridge Note : Memory which can be change itself is known as register. Note : Every CPU is microprocessor, But every microprocessor is not CPU
  • 5. Transformation mechanism that transforms the given input into a desired O/P is typically called a PROCESS Entity that perform these task (transformation) is typically called PROCESSOR The method followed where processor is performing a process is typically called PROCESSING (Process is being processed by processor is PROCESSING) Role of Flags : 2 flags are affected when we go for A – B and they are Z (Zero) and B (Borrow). Z B 0 0 A>B 0 1 A<B 1 0 A=B 1 1 X Z . B + Z . B = S1 Z . B = S2 Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 6. = x + z y Role of Register : Pentium processor contains only 4 register (Register is nothing but a scratch pad memory) x = y + z According to programming language: MOV R0 , y MOV R1 , z ADD R0 , R1 MOV x , R0 L Value R Value Translated by Compiler This is Parse Tree Or Syntax Tree Note : Accumulator is represented by ( R0 / A ) ( Most General Purpose Register ) Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 7. Role of Special Purpose Register (SPR): Program Counter / Instruction Counter ( It holds address of next instruction to be executed ) 101 100 PC 101 Instruction Register Next Instruction’s address is in PC now, instruction at that address is read out and put it in Instruction Register. (Click any where to move) This all process is maintained by Operating System Stack Pointer ( It can not contain address of any empty location and when it not point to any thing than it contain NULL ) Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 8. Role of Instruction Register (IR): 100 100 . . . 1. Fetching of Instruction 2. Decoding of Instruction ( What to do ? ) 3. Fetching of Data ( if any ) 4. Execution 5 Stores Result Machine Operations Machine Operation (M.O.) + (M.O.) + (M.O.) + (M.O.) + . . . = Macro Operation (Micro Operation) ( 1 Instruction Execution ) Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 9. Instruction and Addressing Mode : ADD A , B Operand Operation Classification Zero Addressing Instruction One Addressing Instruction Two Addressing Instruction Three Addressing Instruction Zero Register Processor (C.P.U) OR Stack Oriented Computer OR Zero Register Organised C.P.U Not a single GPR is available not even ACC Single Register Processor Only one Register ACC General Register Organisation More than one register ( ACC + many other register ) Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 10. Given Equation : X = ( A * B ) + ( C * D ) 3 Address Instruction MUL R1 , A B MUL R2 , C D ADD X , R1 R2 MUL A , B MUL C , D ADD A , C MOV X , A In this case we will loose value of A and C therefore not feasible 2 Address Instruction MOV R1 , A MOV R1 , B MOV R2 , C MOV R2 , D MOV R1 , R2 MOV X , R1 1 Address Instruction LOAD A ( R0 A ) MUL B ( R0 R0 * B ) STORE T1 LOAD C MUL D ADD T1 STORE X Note : Implicit operand is ACC / A / R0 Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 11. 0 Address Instruction PUSH A PUSH D D C A A * B PUSH B MUL B C * D A A * B MUL ADD A * B (A*B) + (C*D) PUSH C STORE X C (A*B) + (C*D) (Calculated) A * B X (in Memory) Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 12. TYPE OPERATOR DESTINATION / SOURCE 1 SOURCE 2 00 ADD / AND 01 SUB / OR 10 MUL / XOR 11 DIV / NOT Instruction Construction : 0 ADD 1 SUB 00 R0 01 R1 10 R2 11 M OPERATOR DESTINATION / SOURCE 1 SOURCE 2 1 2 2 5 bits 000 R0 001 R1 010 R2 . . . . . . 111 R7 0 ARITHEMATIC 1 LOGICAL Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 13. Register Operand Input Output Operand Memory Operand Addressing Mode : ( How you are getting data ) Instruction Operand OR Operator Direct Indirect Immediate Register-Register Indirect Register-Memory Indirect Memory-Memory Indirect Memory-Register Indirect Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 14. 1. ADD[6] Direct Pointer (The address of operand is available in instruction (ORIGINAL WORKING)) At location 6 (0110) , we are having address 9 (1001) of operand (1001011101). 2. Add 6 Immediate (Data is part of instruction , data is not in any register or memory) Here, data is available is Instruction, 6 (0110) is itself is data IADD[6] Indirect (Pointer) At location 6 (0110) , we are having address 9 (1001), of memory location which is having address of operand (1001011101).It means it is concept of pointer to pointer 0110 1001 1001 1001011101 0110 1001 1001 1100 1100 1001011101 Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 15. Implied Mode : ( operand is at CPU’s register ) CMA Compliment ACC. STC Set Carry Immediate Mode : ( data is part of Instruction ) ADD 6 Add 6 to Accumulator Register Mode : ( Operand is available in GPR ) ADD B A  A + B ADD A , B A  A + B ADD R1 R0  R0 + R1 Register Indirect Mode : IADD B A  A + [M]B the content of Memory M whose address is given by register B must be Added to A Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 16. Memory 4096 X 16 PC ( Program Counter ) 1 2 3 . . . . . .16 MAR 1 2 3 . . . 12 1 2 3 1 I OPR MBR 1 1 2 3 . . . . . .16 E AC 1 2 3 . . . . . .16 Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 17. ADIC BUS CPU CPU VIDEO BUS FSB DVD HOST PORT MAIN MEMORY NORTH BRIDGE AGP PORT AGP POINT MONITOR LOCAL VIDEO MEMORY PCI SLOT PCI BUS IDE SOUTH BRIDGE SCSI ETHERNET USB I R C HDD CD ROM INTERRUPT IO APIC ISA BUS SUPER I/O ISA SLOT FDD BIOS KB RPINTER SOUND CHIP MOUSE COM 1 COM 2 BUSES Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 18. 1 I/O PROCESSOR MEMORY CONTROL 2 O/P PRIMITIVE BUS ARCHITECTURE The drawback of this technique is that a double side bus is needed Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 19. BACKPLANE BUS PROCESSOR I/O I/O I/O MEMORY SHARED BUS ARCHITECTURE Different i/o has different data transmission protocol and also having different speed (mismatch) for that, and this is all burden taken care by one device Shared Bustypically called Backplane Bus Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 20. Processor Memory Bus (PMB) Processor Memory Bus Adaptor Bus Adaptor Bus Adaptor I/O Bus I/O Bus I/O Bus The previously said bus system is also having disadvantage of CPU Overheads, to remove this we have two type of Level Architecture : 1. 2 Leveled Architecture 2. 3 Leveled Architecture 2 Leveled Architecture Note : Conflicts and Mismatch can be taken care by Bus Adaptor now this not burden for CPU Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 21. Processor Memory Bus (PMB) Processor Memory MBA BA Backplane Bus BA 3 Leveled Architecture Note : PMB is not directly connected to I/O, rather connected to MBA Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 22. Transfer Video camera To PC Proprietary and rest all are Free Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 23. SU DU Valid Data Data Strobe t3 t4 t2 t1 BUS TRANSFER : Strobe Method Handshake Method Strobe Method : (source initiated) Block Diagram Timing Diagram Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 24. SU DU Valid Data Data Strobe Strobe Method : (destination initiated) Block Diagram Timing Diagram Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 25. SU DU Data Bus DAV DAC 2. Handshaking Method : ( Source Initiated ) Block Diagram SU DU DAC DAV 0 1 0 1 Data Valid Data Accept Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com Click for Every Action
  • 26. Place Data on BUS Enable DAV Accept Data Enable DAC Disable DAV Disable DAV Timing Diagram Valid Data Data DAV DAC Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 27. 2. Handshaking Method : ( Destination Initiated ) Block Diagram SU DU Data Bus DAV RFD SU DU DAC DAV 0 0 1 1 Data Valid Data Accept Ready to Accept Data Click for Every Action Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 28. Ready to accept Data Enable DAC Place Data on BUS Enable DAV Accept Data from Enable DAC Disable DAV Timing Diagram Data Valid Data Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 29. Bus Scheduling : Daisy Chaining Polling Independent Daisy Chaining Bus Control Unit (BCU) U1 U2 Un Bus Grant . . . Bus Request Bus Busy BUS Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 30. Case 1: U1 is requesting for BUS Note: (Sequential processing) Therefore Un have lowest priority and U1 have highest priority. If U1 leave then only other gets the chance. (as shown in diagram) Case 2: U2 is requesting for BUS . . . Case 3: Un is requesting for BUS U1 grab the Bus Bus Control Unit (BCU) U1 U2 Un Bus Grant . . . Bus Request Bus Busy BUS Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 31. Polling 111 000 001 . . . U1 U2 Un Bus Control Unit (BCU) Poll count BR BB 8 devices : 3 poll count 16 devices : 4 poll count Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 32. Independent U1 U2 Un Bus Control Unit (BCU) . . . Poll count Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 33. START A=0, QN-1=0 M=MULTIPLECAND Q=MULTIPLIER COUNT =N =10 =01 Q0QN-1 =11 =00 A=A+M A=A-M Arithmetic Shift Right A Q QN-1 COUNT=N No COUNT =0 ? Yes STOP Booth Algorithm : (Using 2’s compliment) Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 34. Multiplication Algorithm : (Using Signed Magnitude) START Bs MULTIPICAND B MULTIPLIER Q As = Qs + Bs Qs = Qs + Bs A = 0 , E = 0 SC = n - 1 As Qs E A Q QN =1 QN-1=? =0 EA=A+B SHR EA Q SC=SC-1 Not 0 SC=? =1 STOP Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 35. Division Algorithm : Basic Steps: “A trial division” is made by subtracting the y register from Accumulator after the subtraction one of the following is executed 1. if Result is – ve the divisor will not go so a ZERO is placed in rightmost bit of the B register and Accumulator is restored. The combined B register and Accumulator are shifted Left. 2. if Result of subtraction is + ve or Zero, then the trail division is succeeded. The Accumulator and B register both are shifted left and then 1 is placed in the right most bit of B. Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com
  • 36. CBest of Luck Krishna Kumar Bohra (KKB), MCA LMCST www.selectall.wordpress.com