Uploaded by sarakhare424

DSCO Notes Computer Org Instruction sets and addressing

advertisement
DSCO Notes
“The statement means that logic (Boolean) instructions in a computer operate on individual
bits within a binary word (a sequence of 0s and 1s), treating them as discrete values
representing true (1) or false (0), rather than as numerical values. In other words, these
instructions manipulate data at the most fundamental level, considering each bit
independently.”
Considering some examples of binary words and how Boolean instructions operate on them:
Example 1: Binary Words
Binary words are sequences of 0s and 1s. Here are a few examples:
1. 101010: A binary word with six bits.
2. 1100: A binary word with four bits.
3. 11110000: An eight-bit binary word.
Example 2: Boolean Instructions
Boolean instructions operate on individual bits within these binary words, typically
performing operations like AND, OR, NOT, and XOR. Let's look at how these operations
work on binary words:
1. AND Operation:
o
o
o
o
101010
110011
-------100010
In the AND operation, each bit in the result is 1 if and only if both corresponding bits
in the input binary words are 1.
2. OR Operation:
o
o
o
o
101010
110011
-------111011
In the OR operation, each bit in the result is 1 if at least one of the corresponding bits
in the input binary words is 1.
3. NOT Operation (Unary Operation):
o
o
o
101010
-------010101
The NOT operation negates each bit in the input, turning 1s into 0s and vice versa.
4. XOR Operation:
o
o
o
101010
110011
--------
o
011001
In the XOR operation, each bit in the result is 1 if the corresponding bits in the input
binary words are different.
These are some basic examples of how Boolean instructions operate on binary words. They
manipulate data at the bit level, considering each bit independently and making decisions or
performing operations based on the true (1) or false (0) nature of those individual bits. These
operations are fundamental for tasks like data manipulation, logic, and control flow in
computer programs.
The ARM architecture, also known as Advanced RISC Machine or simply ARM, is a wellknown and widely used instruction set architecture (ISA). ARM is a type of Reduced
Instruction Set Computer (RISC) architecture known for its simplicity, power efficiency, and
scalability. It was originally developed by Acorn Computers in the 1980s and has since
become one of the most popular and pervasive CPU architectures, especially in the realm of
mobile and embedded devices.
Key features and characteristics of the ARM architecture include:
1. RISC Principles: ARM processors adhere to the RISC design philosophy, which
emphasizes a small and simple instruction set, fixed instruction length, and efficient
instruction execution.
2. Power Efficiency: ARM processors are known for their power efficiency, which
makes them ideal for battery-powered devices, such as smartphones, tablets, and IoT
devices.
3. Scalability: The ARM architecture is highly scalable, which means it can be used in a
wide range of devices, from microcontrollers to high-performance servers. ARM
processors come in various architectures, including ARMv7, ARMv8, and more.
4. Thumb Instruction Set: ARM introduced the Thumb instruction set, a 16-bit subset
of the full ARM instruction set, which is designed for code size efficiency. This is
particularly useful in resource-constrained environments.
5. ARM Cortex Processors: ARM offers a range of processor cores within the ARM
Cortex family, each tailored for specific applications and performance levels. These
cores include Cortex-A (application processors), Cortex-R (real-time processors), and
Cortex-M (microcontroller processors).
6. Support for SIMD: ARM architecture includes support for SIMD (Single
Instruction, Multiple Data) instructions, which are useful for multimedia and signal
processing tasks.
7. Multiple Operating Systems: ARM-based systems run a variety of operating
systems, including Android, iOS, Linux, and real-time operating systems (RTOS),
depending on the application.
8. Extensibility: ARM's architecture allows for the addition of custom instructions or
extensions, enabling flexibility in tailoring processors for specific tasks.
ARM-based processors are used in a wide range of devices, including smartphones, tablets,
smartwatches, IoT devices, embedded systems, networking equipment, and more. ARM's
design philosophy and flexibility have contributed to its widespread adoption and success in
various industries.
The performance of ARM-based processors in mobile phones relative to larger computers
with CISC (Complex Instruction Set Computer) processors like x86 has to do with various
factors, including architectural design, power efficiency, and the specific requirements of the
mobile computing environment. Here are some key reasons:
1. Power Efficiency: ARM processors are known for their power efficiency, which is
crucial in mobile devices where battery life is a primary concern. ARM's RISC
architecture is designed to minimize power consumption, enabling devices to run on
battery power for extended periods. CISC architectures tend to be more powerhungry.
2. Scalability: ARM processors are highly scalable. This means that ARM-based chips
are available in various configurations, from low-power, energy-efficient cores used
in mobile devices to high-performance cores used in servers and laptops. Mobile
processors are optimized for the specific power and performance requirements of
smartphones and tablets.
3. Specialized Hardware: Mobile devices often include specialized hardware
components for tasks like image and video processing, which offload specific
workloads from the main CPU. This specialization allows mobile devices to excel in
certain areas, such as photography and graphics processing.
4. Efficient Code Execution: ARM processors are optimized for efficient code
execution. While CISC processors can be more versatile, mobile applications are
typically designed with ARM's RISC architecture in mind, resulting in efficient code
that maximizes the capabilities of ARM cores.
5. Operating System and Software Optimization: Mobile operating systems (e.g.,
Android and iOS) and mobile apps are optimized for ARM architecture. This close
integration between hardware and software allows for efficient performance. In
contrast, larger computers running x86 processors may need to handle a wider range
of software, leading to more complex code and potentially less optimization.
6. Parallelism: Modern ARM-based processors in mobile devices often incorporate
multiple cores. This parallelism allows them to handle multiple tasks simultaneously
and improve overall performance.
7. Advanced Manufacturing Processes: Mobile processors are often manufactured
using advanced fabrication processes, which result in smaller transistors and lower
power consumption. This helps to further enhance their performance per watt.
It's important to note that the performance of mobile devices and larger computers is relative
to their specific use cases and design goals. While mobile devices can perform exceptionally
well in their intended roles, larger computers with more powerful processors and greater
resources are still necessary for demanding computational tasks, such as high-end gaming,
scientific simulations, and data center workloads.
In summary, the performance of ARM-based processors in mobile devices is a result of their
power efficiency, scalability, specialized hardware, and optimized software, which
collectively enable them to provide a responsive and capable computing experience in the
mobile context.
What popular phones used an ARM processor?
Popular smartphone models and brands that utilized ARM processors:
1. Apple iPhones: All iPhones, including the iPhone 12, iPhone 11, iPhone SE, and
earlier models, use Apple's custom-designed ARM-based processors, such as the A14
Bionic, A13 Bionic, and more.
2. Samsung Galaxy Series: Many Samsung Galaxy smartphones, like the Galaxy S21,
S20, and Note series, use various models of Samsung's Exynos processors and
Qualcomm Snapdragon processors, both of which are based on ARM architectures.
3. Google Pixel: Google's Pixel smartphones, such as the Pixel 6, Pixel 5, and earlier
models, have used Qualcomm Snapdragon processors based on ARM architecture.
4. OnePlus: OnePlus smartphones, like the OnePlus 8, OnePlus 9, and earlier models,
have used Qualcomm Snapdragon processors, again based on ARM architecture.
5. Xiaomi and Redmi: Xiaomi and its sub-brand Redmi use a variety of ARM-based
processors in their smartphones, including Qualcomm Snapdragon and MediaTek
processors.
6. Huawei and Honor: Many Huawei and Honor smartphones use HiSilicon Kirin
processors, which are based on ARM architecture.
7. Sony Xperia: Sony Xperia smartphones, such as the Xperia 1, Xperia 5, and earlier
models, have used Qualcomm Snapdragon processors.
8. LG: LG smartphones, including the LG G and LG V series, have used ARM-based
Qualcomm Snapdragon processors.
9. Motorola: Motorola's smartphones, like the Moto G and Moto E series, often use
Qualcomm Snapdragon processors based on ARM architecture.
10. Asus, Oppo, Vivo, and Others: Many other smartphone manufacturers, including
Asus, Oppo, Vivo, and more, use ARM-based processors from various manufacturers,
including Qualcomm and MediaTek.
The one-address instruction: For this to work, a second address must be implicit. This was common in
earlier machines, with the implied address (Implicit Addressing Mode) being a processor register
known as the accumulator (AC). The accumulator contains one of the operands and is used to store
the result. In our example, eight instructions are needed to accomplish the task.
Download