Programmable Logic Controllers
Programmable Logic Controllers
5th Edition
ISBN: 9780073373843
Author: Frank D. Petruzella
Publisher: McGraw-Hill Education
bartleby

Concept explainers

Expert Solution & Answer
Book Icon
Chapter 4, Problem 4P

Explanation of Solution

a.

Data stored in the destination address of AND operation:

  • In AND operation, the output is always HIGH when all the inputs are HIGH and the output is LOW when any of the inputs are LOW.
  • The AND operation of two inputs “Source A” and “Source B” is given below. Here, the result is stored in destination address.
  • If both the inputs “Source A” and “Source B” are 1, then the output 1 will be displayed on the destination.
  • Otherwise, if either of the inputs “Source A” or “Source B” is 0, then the output 0 will be displayed on the destination.

Source A:

00000000101010

Explanation of Solution

b.

Data stored in the destination address of OR operation:

  • In OR operation, the output is always HIGH when any of the inputs are HIGH and the output is LOW when all the inputs are LOW.
  • The OR operation of two inputs Source A and Source B is given below. Here, the result is stored in destination address.
  • If either of the inputs “Source A” or “Source B” are 1, then the output 1 will be displayed on the destination.
  • Otherwise, if both the inputs “Source A” and “Source B” are 0, then the output 0 will be displayed on the destination.

Source A:

00000000101010

Explanation of Solution

c.

Data stored in the destination address of XOR operation:

  • In Exclusive-OR (XOR) operation, the output is always HIGH when either of the inputs is HIGH and the output is LOW when all the inputs are either HIGH or LOW.
  • The XOR operation of two inputs Source A and Source B is given below. Here, the result is stored in destination address.
  • If either of the inputs “Source A” or “Source B” are 1, then the output 1 will be displayed on the destination.
  • Otherwise, if both the inputs “Source A” and “Source B” are 0 or 1, then the output 0 will be displayed on the destination.

Source A:

00000000101010

Blurred answer
Students have asked these similar questions
Section 3: The Control Unit For the Control Unit, you can simply use an 8-bit input switch or otherwise, which will act as the control wordinput to the data-path (we will not focus on using a control store nor selector). The control word input shouldbe based on the format shown in table 2. These values should be sent to the data-path to accomplish a giventask. In addition to the control word, you will need to implement a way of ensuring the correct register(s) areselected to either input (LOAD) or output (Open Enable) a value. Again, think about using a multiplexer orotherwise. For X0, you will not be using the value, but include it in the design.3X0 C0 C1 B0 B1 F2 F1 F0Table 2: Control Unit control word format
From the given code from step 1-step19 a- What are the memory location addresses that will be accessed in memory data segment in this program? b- What is the content of each memory location accessed in memory data segment in this program? c- What does the content of each memory location refer to?
Convert below expression into three address code    a := (c+d) * (c+b)
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Text book image
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Text book image
A+ Guide to Hardware (Standalone Book) (MindTap C...
Computer Science
ISBN:9781305266452
Author:Jean Andrews
Publisher:Cengage Learning