SlideShare a Scribd company logo
1 of 49
Download to read offline
Encoders
Bus and Memory transfer
❖ A typical digital computer has many registers, and paths must be provided to transfer information from one
register to another.
❖ The number of wires will be excessive if separate lines are used between each register and all other registers
in the system.
❖ A more efficient scheme for transferring information between registers in a multiple-register configuration is
a common bus system.
Discussions
• One way of constructing a common bus system is with multiplexers. The
multiplexers select the source register whose binary information is then placed
on the bus.
• The construction of a bus system for four registers is shown in figure.
• Each register has four bits, numbered 0 through 3. The bus consists of four 4 x
1 multiplexers each having four data inputs, 0 through 3, and two selection
inputs, S1 and S0.
• In order not to complicate the diagram with 16 lines crossing each other, we
use labels to show the connections from the outputs of the registers to the
inputs of the multiplexers.
Discussions
• For example, output 1 of register A is connected to input 0 of MUX 1 because
this input is labeled A1.
• The diagram shows that the bits in the same significant position in each
register are connected to the data inputs of one multiplexer to form one line of
the bus.
• Thus MUX 0 multiplexes the four 0 bits of the registers, MUX 1 multiplexes
the four 1 bits of the registers, and similarly for the other two bits.
Discussions
• The two selection lines S1 and S0 are connected to the selection inputs of all
four multiplexers.
• The selection lines choose the four bits of one register and transfer them into
the four-line common bus. When S1S0 = 00, the 0 data inputs of all four
multiplexers are selected and applied to the outputs that form the bus.
• This causes the bus lines to receive the content of register A since the outputs
of this register are connected to the 0 data inputs of the multiplexers.
• Similarly, register B is selected if S1S0 = 01, and so on. Table 4-2 shows the
register that is selected by the bus for each of the four possible binary value of
the selection lines.
Discussions
Bus and Memory transfer
Bus and Memory transfer
Discussions
• The transfer of information from a bus into one of many destination registers
can be accomplished by connecting the bus lines to the inputs of all destination
registers and activating the load control of the particular destination register
selected.
• The symbolic statement for a bus transfer may mention the bus or its presence
may be implied in the statement.
• When the bus is includes in the statement, the register transfer is symbolized as
follows:
Three-State Bus Buffers
• A bus system can be constructed with three-state gates.
• A three-state gate is a digital circuit that exhibits three states.
• Two of the states are signals equivalent to logic 1 and 0 as in a
conventional gate.
• The third state is a high-impedance state. The high-impedance state
behaves like an open circuit, which means that the output is
disconnected and does not have a logic significance.
Three-State Bus Buffers
• However, the one most commonly used in the design of a bus system is
the buffer gate.
Three-State Bus Buffers
• When the control input is equal to 1, the output is enabled and the gate
behaves like any conventional buffer, with the output equal to the
normal input.
• When the control input is 0, the output is disabled and the gate goes to
a high-impedance state, regardless of the value in the normal input.
Three-State Bus Buffers
Bus line with three state-buffers.
*When E=1 and S0 and S1=00
Then
0 output of decoder will be=1
*1st buffer will be active- due to
that A0 will be output.
*Similarly- S0 and S1=11 then
*4th buffer will be active-due to
that D0 will be output.
Three-State Bus Buffers
• One way to ensure that no more than one control input is active at any given
time is to use a decoder.
• When the enable input of the decoder is 0, all of its four outputs are 0, and the
bus line is in a high-impedance state because all four buffers are disabled.
• When the enable input is active, one of the three-state buffers will be active,
depending on the binary value in the select inputs of the decoder.
Three-State Bus Buffers
• One way to ensure that no more than one control input is active at any given
time is to use a decoder.
• When the enable input of the decoder is 0, all of its four outputs are 0, and the
bus line is in a high-impedance state because all four buffers are disabled.
• When the enable input is active, one of the three-state buffers will be active,
depending on the binary value in the select inputs of the decoder.
Memory Transfer
• The transfer of information from a memory word to the outside environment is called
a read operation.
• The transfer of new information to be stored into the memory is called a write
operation.
• A memory word will be symbolized by the letter M . The particular memory word
among the many available is selected by the memory address during the transfer.
• It is necessary to specify the address of M when writing memory transfer operations.
This will be done by enclosing the address in square brackets following the letter M .
• Memory stores binary information in groups of bits called as words.
Memory Transfer
Adder
A half adder is a type of adder, an
electronic circuit that performs the
addition of numbers.
The half adder is able to add two single
binary digits and provide the output plus
a carry value.
It has two inputs, called A and B, and
two outputs S (sum) and C (carry).
The common representation uses a XOR
logic gate and an AND logic gate.
Adder
Sum:- x(xor)y(xor)z
Adder
x y z
Subtractor
Subtractor
Subtractor
The content of R1 , after the execution of the microoperation, is equal to the bit-by-bit
exclusive-OR operation on pairs of bits in R2 and previous values of Rl .
Special symbols will be adopted for the logic microoperations OR, AND, and
complement, to distinguish them from the corresponding symbols used to express
Boolean functions. The symbol V will be used to denote an OR microoperation and the
symbol to denote an AND microoperation.
5. Encoder and Decoder-Bus and memory.pdf
5. Encoder and Decoder-Bus and memory.pdf
5. Encoder and Decoder-Bus and memory.pdf
5. Encoder and Decoder-Bus and memory.pdf

More Related Content

Similar to 5. Encoder and Decoder-Bus and memory.pdf

Similar to 5. Encoder and Decoder-Bus and memory.pdf (20)

Registers.pptx
Registers.pptxRegisters.pptx
Registers.pptx
 
Serial transmission
Serial transmissionSerial transmission
Serial transmission
 
SESSION 2.ppt
SESSION 2.pptSESSION 2.ppt
SESSION 2.ppt
 
Co ppt
Co pptCo ppt
Co ppt
 
Lect 1 unit 2.pdf
Lect 1 unit 2.pdfLect 1 unit 2.pdf
Lect 1 unit 2.pdf
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
coa
coacoa
coa
 
Combinational Circuits.pptx
Combinational Circuits.pptxCombinational Circuits.pptx
Combinational Circuits.pptx
 
Bss Interface
Bss InterfaceBss Interface
Bss Interface
 
Computer Organization & Architecture.ppt
Computer Organization & Architecture.pptComputer Organization & Architecture.ppt
Computer Organization & Architecture.ppt
 
student important knowledge on computer data .pptx
student important knowledge on computer data .pptxstudent important knowledge on computer data .pptx
student important knowledge on computer data .pptx
 
Instruction FormatMachine instruction has an opcode and zero or m.pdf
Instruction FormatMachine instruction has an opcode and zero or m.pdfInstruction FormatMachine instruction has an opcode and zero or m.pdf
Instruction FormatMachine instruction has an opcode and zero or m.pdf
 
Bus system
Bus systemBus system
Bus system
 
Synchronous optical networking (SONET)
Synchronous optical networking (SONET) Synchronous optical networking (SONET)
Synchronous optical networking (SONET)
 
Tsn lecture vol 3
Tsn lecture vol 3Tsn lecture vol 3
Tsn lecture vol 3
 
10 system bus.pdf
10 system bus.pdf10 system bus.pdf
10 system bus.pdf
 
UNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptxUNIVERSAL PROPERTY.pptx
UNIVERSAL PROPERTY.pptx
 
Computer system bus
Computer system busComputer system bus
Computer system bus
 
8251 USART
8251 USART8251 USART
8251 USART
 
8251 USART.pptx
8251 USART.pptx8251 USART.pptx
8251 USART.pptx
 

Recently uploaded

9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room servicediscovermytutordmt
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajanpragatimahajan3
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfchloefrazer622
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 

Recently uploaded (20)

9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 

5. Encoder and Decoder-Bus and memory.pdf

  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15. Bus and Memory transfer ❖ A typical digital computer has many registers, and paths must be provided to transfer information from one register to another. ❖ The number of wires will be excessive if separate lines are used between each register and all other registers in the system. ❖ A more efficient scheme for transferring information between registers in a multiple-register configuration is a common bus system.
  • 16.
  • 17. Discussions • One way of constructing a common bus system is with multiplexers. The multiplexers select the source register whose binary information is then placed on the bus. • The construction of a bus system for four registers is shown in figure. • Each register has four bits, numbered 0 through 3. The bus consists of four 4 x 1 multiplexers each having four data inputs, 0 through 3, and two selection inputs, S1 and S0. • In order not to complicate the diagram with 16 lines crossing each other, we use labels to show the connections from the outputs of the registers to the inputs of the multiplexers.
  • 18. Discussions • For example, output 1 of register A is connected to input 0 of MUX 1 because this input is labeled A1. • The diagram shows that the bits in the same significant position in each register are connected to the data inputs of one multiplexer to form one line of the bus. • Thus MUX 0 multiplexes the four 0 bits of the registers, MUX 1 multiplexes the four 1 bits of the registers, and similarly for the other two bits.
  • 19. Discussions • The two selection lines S1 and S0 are connected to the selection inputs of all four multiplexers. • The selection lines choose the four bits of one register and transfer them into the four-line common bus. When S1S0 = 00, the 0 data inputs of all four multiplexers are selected and applied to the outputs that form the bus. • This causes the bus lines to receive the content of register A since the outputs of this register are connected to the 0 data inputs of the multiplexers. • Similarly, register B is selected if S1S0 = 01, and so on. Table 4-2 shows the register that is selected by the bus for each of the four possible binary value of the selection lines.
  • 21. Bus and Memory transfer
  • 22. Bus and Memory transfer
  • 23.
  • 24. Discussions • The transfer of information from a bus into one of many destination registers can be accomplished by connecting the bus lines to the inputs of all destination registers and activating the load control of the particular destination register selected. • The symbolic statement for a bus transfer may mention the bus or its presence may be implied in the statement. • When the bus is includes in the statement, the register transfer is symbolized as follows:
  • 25.
  • 26. Three-State Bus Buffers • A bus system can be constructed with three-state gates. • A three-state gate is a digital circuit that exhibits three states. • Two of the states are signals equivalent to logic 1 and 0 as in a conventional gate. • The third state is a high-impedance state. The high-impedance state behaves like an open circuit, which means that the output is disconnected and does not have a logic significance.
  • 27. Three-State Bus Buffers • However, the one most commonly used in the design of a bus system is the buffer gate.
  • 28. Three-State Bus Buffers • When the control input is equal to 1, the output is enabled and the gate behaves like any conventional buffer, with the output equal to the normal input. • When the control input is 0, the output is disabled and the gate goes to a high-impedance state, regardless of the value in the normal input.
  • 30. Bus line with three state-buffers. *When E=1 and S0 and S1=00 Then 0 output of decoder will be=1 *1st buffer will be active- due to that A0 will be output. *Similarly- S0 and S1=11 then *4th buffer will be active-due to that D0 will be output.
  • 31. Three-State Bus Buffers • One way to ensure that no more than one control input is active at any given time is to use a decoder. • When the enable input of the decoder is 0, all of its four outputs are 0, and the bus line is in a high-impedance state because all four buffers are disabled. • When the enable input is active, one of the three-state buffers will be active, depending on the binary value in the select inputs of the decoder.
  • 32. Three-State Bus Buffers • One way to ensure that no more than one control input is active at any given time is to use a decoder. • When the enable input of the decoder is 0, all of its four outputs are 0, and the bus line is in a high-impedance state because all four buffers are disabled. • When the enable input is active, one of the three-state buffers will be active, depending on the binary value in the select inputs of the decoder.
  • 33. Memory Transfer • The transfer of information from a memory word to the outside environment is called a read operation. • The transfer of new information to be stored into the memory is called a write operation. • A memory word will be symbolized by the letter M . The particular memory word among the many available is selected by the memory address during the transfer. • It is necessary to specify the address of M when writing memory transfer operations. This will be done by enclosing the address in square brackets following the letter M . • Memory stores binary information in groups of bits called as words.
  • 35.
  • 36.
  • 37. Adder A half adder is a type of adder, an electronic circuit that performs the addition of numbers. The half adder is able to add two single binary digits and provide the output plus a carry value. It has two inputs, called A and B, and two outputs S (sum) and C (carry). The common representation uses a XOR logic gate and an AND logic gate.
  • 43.
  • 44. The content of R1 , after the execution of the microoperation, is equal to the bit-by-bit exclusive-OR operation on pairs of bits in R2 and previous values of Rl .
  • 45. Special symbols will be adopted for the logic microoperations OR, AND, and complement, to distinguish them from the corresponding symbols used to express Boolean functions. The symbol V will be used to denote an OR microoperation and the symbol to denote an AND microoperation.