NOR flash is attractive for storing programs on embedded platforms because:
- NOR flash allows reading at the byte level, making individual instruction fetches very fast (on the order of 120ns). This fast random read speed is important for program execution.
- In contrast, NAND flash only allows reading in larger page sizes like 512 bytes, so each memory access would involve reading a whole page, slowing down instruction fetching.
- While NOR flash has slower write speeds compared to NAND flash (on the order of 520ms for a full erase vs 3.5ms for NAND), program code is typically read-only after being written initially. So the slower write speed of NOR is not as critical as its fast random read capability
This document provides information about computer organization and architecture. It discusses the motherboard as the central component that connects all other components like the CPU, RAM, expansion slots and ports. It describes how the chipset and its components like the northbridge and southbridge facilitate data exchange. It covers CPU components like the ALU and registers, and characteristics like clock speed and instruction sets. It also discusses the memory hierarchy including caches, RAM and disk storage. In summary, the document is an overview of key components and concepts in computer organization and architecture.
This document discusses embedded systems and the MSP430 microcontroller. It begins with an introduction to embedded systems that defines them, lists their applications, and describes their classification based on generation and complexity. Next, it covers the typical features and architecture considerations of embedded systems, including the CPU, memory, I/O, and common peripherals. The document then discusses the MSP430 microcontroller family, providing details on the MSP430F2013 model, its memory map, CPU architecture and instruction set. It concludes with an overview of the variants in the MSP430 family.
The document provides an overview of the key components inside a computer system unit, including the motherboard, processor, memory, ports, expansion slots, power supply, and bays. It describes the functions of the processor including its control unit, arithmetic logic unit, registers, machine cycle, and cooling technologies. It also discusses different types of memory such as RAM, ROM, cache, and flash memory. RAM is the primary memory that can be read from and written to by the CPU, while ROM stores permanent instructions. Cache memory helps improve processing speed. The document aims to explain the fundamental hardware components that make up a basic computer system.
This document provides an overview of processor and memory organization for embedded systems. It describes the main structural units in a processor like the control unit, arithmetic logic unit, registers, and caches. It also discusses different types of memory devices like ROM, RAM, and their selection for embedded applications. The document outlines how memory is allocated to program segments, blocks and memory mapping. It introduces direct memory access and interfacing of processors, memory and I/O devices.
Unit 2 processor&memory-organisationPavithra S
This document discusses processor and memory organization for embedded systems. It describes the structural units of a processor like the MAR, MDR, buses, BIU, IR, ID, CU, ALU, PC, and caches. It covers memory devices like ROM, RAM, SRAM, DRAM, and flash memory. It provides case studies on selecting a processor based on features like clock speed, performance needs, and power efficiency. The document aims to help with selecting appropriate processors and memory for different types of embedded systems.
I. Introduction to Microprocessor System.pptHAriesOa1
This document provides an introduction to microprocessors, including their components, classifications, and how they interface with memory and I/O devices. It discusses the components of a microprocessor including the ALU, register array, and control unit. It also describes different types of memory like ROM, RAM, SRAM and DRAM. Finally, it summarizes the two main methods for microprocessor I/O interfacing: direct I/O and memory-mapped I/O.
The document discusses recommendations for upgrading school computers used for media lessons. It suggests that computers should have at least 16GB of RAM and larger, brighter monitors in order to better handle graphics-heavy media projects. Upgrading to an Apple Mac would be ideal but costly. More affordable options include upgrading the RAM to 16GB, switching to an SSD hard drive, and using an Intel Core i5 or i7 processor. Future-proofing involves choosing components like the motherboard and processor that can support new software for a long time. The approximate cost to fully upgrade all computers in a school would be at least £1000 per computer.
The document discusses recommendations for upgrading school computers used for media lessons. It suggests that the computers should have at least 16GB of RAM as 8GB is not enough storage for media projects. Bigger monitors with higher brightness and resolution are also recommended. Upgrading to an Apple Mac 27" computer would be ideal but too expensive for an entire school. More affordable upgrades include increasing RAM to 16GB, switching to an SSD hard drive, and installing an Intel Core i5 or i7 processor. The document also reviews the components and functions of typical computer hardware such as the motherboard, CPU, RAM, hard drive, and battery.
The document provides an overview of microprocessors and microcontrollers. It discusses the basic architecture of microprocessors, including the Von Neumann and Harvard architectures. It compares RISC and CISC instruction sets. Microcontrollers are defined as single-chip computers containing a CPU, memory, and I/O ports. Common PIC microcontrollers are described along with their characteristics such as speed, memory types, and analog/digital capabilities. The document also outlines best practices for selecting a suitable microcontroller for a project, including identifying hardware interfaces, memory needs, programming tools, and cost/power constraints.
Computer Architecture | Computer Fundamental and OrganizationSmit Luvani
Agenda :
Structure of Instruction
Description of Processor
Interconnection Unit
Processor to memory communication
RISC and CISC
All about how the computer interacts with memory and processor. how they connected and work.which device how works.
The document discusses microprocessors and microcontrollers. It defines a microprocessor as the central processing unit (CPU) of a microcomputer that is contained on a single silicon chip. A microcontroller is similarly integrated but also includes memory and input/output ports, making it self-contained to control a specific system. The document provides details on the components and architecture of microprocessors, including registers, buses, memory, and I/O devices. It also summarizes the characteristics of the Intel 8085 microprocessor.
The document describes the components and architecture of the MARIE computer system, which was designed as a simple model to illustrate basic computer concepts. MARIE has 7 registers, 4K words of memory, and a basic 16-bit instruction set. It processes instructions using a fetch-decode-execute cycle and can handle interrupts. The document explains each MARIE component and how data moves between them when a sample program is run. Assemblers translate MARIE's mnemonic instructions into machine code. Additional instructions are introduced to expand the instruction set.
The document discusses RISC design philosophy and how it relates to ARM processors. It aims to deliver simple but powerful instructions that execute in a single cycle at a high clock rate with reduced complexity handled by hardware. This allows for greater flexibility and intelligence to be provided in software rather than hardware. RISC follows four major design rules - reduced number of instructions, single cycle execution, fixed length instructions, and separate load/store architecture.
This document provides an overview of basic computer architecture. It discusses the history of computers, components like the CPU, motherboard, and connections between parts. The document outlines CPU architecture including the fetch-decode-execute cycle and components like the ALU, control unit, and registers. It also describes memory, addressing, cache, and different memory types like RAM, ROM, and CMOS.
This document discusses embedded and real-time systems. It covers several topics:
- The CPU bus, which forms the backbone of computer hardware systems and allows communication between the CPU, memory, and I/O devices.
- Memory components like DRAM, SRAM, and flash memory that are used in embedded systems.
- Designing embedded computing platforms, including considerations like system architectures, evaluation boards, and the PC as an embedded platform.
- Platform-level performance analysis through measuring aspects like bandwidth of the memory, bus, and CPU fetches when transferring data in the system.
The document discusses the central processing unit (CPU) and its components. The CPU consists of a control unit and arithmetic logic unit that work together to execute instructions. It describes how the CPU fetches and decodes instructions from memory and controls the flow of data. It also discusses various types of memory like RAM, ROM, and cache that the CPU uses to store and access data and instructions. Finally, it covers factors that influence computer processing speed like microprocessor speed, bus width, and parallel processing.
The Central Processing Unit(CPU) for Chapter 4MKKhaing
The document discusses the central processing unit (CPU) and its components. The CPU consists of a control unit and arithmetic logic unit that work together to execute instructions. It describes how the CPU fetches and decodes instructions from memory and works with registers and the system clock to perform arithmetic and logical operations on data. It also summarizes different types of memory like RAM, ROM, and cache that the CPU uses to store and access instructions and data.
The document discusses the central processing unit (CPU) and its components. The CPU consists of a control unit and arithmetic logic unit that work together to execute instructions. It describes how the CPU fetches and decodes instructions from memory and controls the flow of data. It also discusses various types of memory like RAM, ROM, and cache that the CPU uses to store and access data and instructions. Finally, it covers factors that influence computer processing speed like microprocessor speed, bus width, and parallel processing.
The document discusses the central processing unit (CPU) and how it works. It describes the CPU's main components - the control unit and arithmetic logic unit - and how they execute instructions. It explains how programs are executed via a fetch-decode-execute cycle and how data is stored and accessed in memory and caches. It also covers various CPU technologies like microprocessors, memory types, bus speeds, and approaches to increasing a computer's processing speed.
This document discusses computer architecture and organization. It defines computer architecture as the attributes visible to the programmer and computer organization as the operational units and their interconnections. It then classifies computers based on size, cost, computational power, and application. The basic functional units of a computer are described as the input, output, memory, arithmetic logic unit, and control unit. Common computer components like the CPU, registers, and buses are also explained.
The document discusses recommendations for upgrading school computers used for media lessons. It suggests that computers should have at least 16GB of RAM and larger, brighter monitors in order to better handle graphics-heavy media projects. Upgrading to an Apple Mac would be ideal but costly. More affordable options include upgrading the RAM to 16GB, switching to an SSD hard drive, and using an Intel Core i5 or i7 processor. Future-proofing involves choosing components like the motherboard and processor that can support new software for a long time. The approximate cost to fully upgrade all computers in a school would be at least £1000 per computer.
The document discusses recommendations for upgrading school computers used for media lessons. It suggests that the computers should have at least 16GB of RAM as 8GB is not enough storage for media projects. Bigger monitors with higher brightness and resolution are also recommended. Upgrading to an Apple Mac 27" computer would be ideal but too expensive for an entire school. More affordable upgrades include increasing RAM to 16GB, switching to an SSD hard drive, and installing an Intel Core i5 or i7 processor. The document also reviews the components and functions of typical computer hardware such as the motherboard, CPU, RAM, hard drive, and battery.
The document provides an overview of microprocessors and microcontrollers. It discusses the basic architecture of microprocessors, including the Von Neumann and Harvard architectures. It compares RISC and CISC instruction sets. Microcontrollers are defined as single-chip computers containing a CPU, memory, and I/O ports. Common PIC microcontrollers are described along with their characteristics such as speed, memory types, and analog/digital capabilities. The document also outlines best practices for selecting a suitable microcontroller for a project, including identifying hardware interfaces, memory needs, programming tools, and cost/power constraints.
Computer Architecture | Computer Fundamental and OrganizationSmit Luvani
Agenda :
Structure of Instruction
Description of Processor
Interconnection Unit
Processor to memory communication
RISC and CISC
All about how the computer interacts with memory and processor. how they connected and work.which device how works.
The document discusses microprocessors and microcontrollers. It defines a microprocessor as the central processing unit (CPU) of a microcomputer that is contained on a single silicon chip. A microcontroller is similarly integrated but also includes memory and input/output ports, making it self-contained to control a specific system. The document provides details on the components and architecture of microprocessors, including registers, buses, memory, and I/O devices. It also summarizes the characteristics of the Intel 8085 microprocessor.
The document describes the components and architecture of the MARIE computer system, which was designed as a simple model to illustrate basic computer concepts. MARIE has 7 registers, 4K words of memory, and a basic 16-bit instruction set. It processes instructions using a fetch-decode-execute cycle and can handle interrupts. The document explains each MARIE component and how data moves between them when a sample program is run. Assemblers translate MARIE's mnemonic instructions into machine code. Additional instructions are introduced to expand the instruction set.
The document discusses RISC design philosophy and how it relates to ARM processors. It aims to deliver simple but powerful instructions that execute in a single cycle at a high clock rate with reduced complexity handled by hardware. This allows for greater flexibility and intelligence to be provided in software rather than hardware. RISC follows four major design rules - reduced number of instructions, single cycle execution, fixed length instructions, and separate load/store architecture.
This document provides an overview of basic computer architecture. It discusses the history of computers, components like the CPU, motherboard, and connections between parts. The document outlines CPU architecture including the fetch-decode-execute cycle and components like the ALU, control unit, and registers. It also describes memory, addressing, cache, and different memory types like RAM, ROM, and CMOS.
This document discusses embedded and real-time systems. It covers several topics:
- The CPU bus, which forms the backbone of computer hardware systems and allows communication between the CPU, memory, and I/O devices.
- Memory components like DRAM, SRAM, and flash memory that are used in embedded systems.
- Designing embedded computing platforms, including considerations like system architectures, evaluation boards, and the PC as an embedded platform.
- Platform-level performance analysis through measuring aspects like bandwidth of the memory, bus, and CPU fetches when transferring data in the system.
The document discusses the central processing unit (CPU) and its components. The CPU consists of a control unit and arithmetic logic unit that work together to execute instructions. It describes how the CPU fetches and decodes instructions from memory and controls the flow of data. It also discusses various types of memory like RAM, ROM, and cache that the CPU uses to store and access data and instructions. Finally, it covers factors that influence computer processing speed like microprocessor speed, bus width, and parallel processing.
The Central Processing Unit(CPU) for Chapter 4MKKhaing
The document discusses the central processing unit (CPU) and its components. The CPU consists of a control unit and arithmetic logic unit that work together to execute instructions. It describes how the CPU fetches and decodes instructions from memory and works with registers and the system clock to perform arithmetic and logical operations on data. It also summarizes different types of memory like RAM, ROM, and cache that the CPU uses to store and access instructions and data.
The document discusses the central processing unit (CPU) and its components. The CPU consists of a control unit and arithmetic logic unit that work together to execute instructions. It describes how the CPU fetches and decodes instructions from memory and controls the flow of data. It also discusses various types of memory like RAM, ROM, and cache that the CPU uses to store and access data and instructions. Finally, it covers factors that influence computer processing speed like microprocessor speed, bus width, and parallel processing.
The document discusses the central processing unit (CPU) and how it works. It describes the CPU's main components - the control unit and arithmetic logic unit - and how they execute instructions. It explains how programs are executed via a fetch-decode-execute cycle and how data is stored and accessed in memory and caches. It also covers various CPU technologies like microprocessors, memory types, bus speeds, and approaches to increasing a computer's processing speed.
This document discusses computer architecture and organization. It defines computer architecture as the attributes visible to the programmer and computer organization as the operational units and their interconnections. It then classifies computers based on size, cost, computational power, and application. The basic functional units of a computer are described as the input, output, memory, arithmetic logic unit, and control unit. Common computer components like the CPU, registers, and buses are also explained.
Sorting Order and Stability in Sorting.
Concept of Internal and External Sorting.
Bubble Sort,
Insertion Sort,
Selection Sort,
Quick Sort and
Merge Sort,
Radix Sort, and
Shell Sort,
External Sorting, Time complexity analysis of Sorting Algorithms.
International Journal of Distributed and Parallel systems (IJDPS)samueljackson3773
The growth of Internet and other web technologies requires the development of new
algorithms and architectures for parallel and distributed computing. International journal of
Distributed and parallel systems is a bimonthly open access peer-reviewed journal aims to
publish high quality scientific papers arising from original research and development from
the international community in the areas of parallel and distributed systems. IJDPS serves
as a platform for engineers and researchers to present new ideas and system technology,
with an interactive and friendly, but strongly professional atmosphere.
☁️ GDG Cloud Munich: Build With AI Workshop - Introduction to Vertex AI! ☁️
Join us for an exciting #BuildWithAi workshop on the 28th of April, 2025 at the Google Office in Munich!
Dive into the world of AI with our "Introduction to Vertex AI" session, presented by Google Cloud expert Randy Gupta.
Passenger car unit (PCU) of a vehicle type depends on vehicular characteristics, stream characteristics, roadway characteristics, environmental factors, climate conditions and control conditions. Keeping in view various factors affecting PCU, a model was developed taking a volume to capacity ratio and percentage share of particular vehicle type as independent parameters. A microscopic traffic simulation model VISSIM has been used in present study for generating traffic flow data which some time very difficult to obtain from field survey. A comparison study was carried out with the purpose of verifying when the adaptive neuro-fuzzy inference system (ANFIS), artificial neural network (ANN) and multiple linear regression (MLR) models are appropriate for prediction of PCUs of different vehicle types. From the results observed that ANFIS model estimates were closer to the corresponding simulated PCU values compared to MLR and ANN models. It is concluded that the ANFIS model showed greater potential in predicting PCUs from v/c ratio and proportional share for all type of vehicles whereas MLR and ANN models did not perform well.
Value Stream Mapping Worskshops for Intelligent Continuous SecurityMarc Hornbeek
This presentation provides detailed guidance and tools for conducting Current State and Future State Value Stream Mapping workshops for Intelligent Continuous Security.
Analysis of reinforced concrete deep beam is based on simplified approximate method due to the complexity of the exact analysis. The complexity is due to a number of parameters affecting its response. To evaluate some of this parameters, finite element study of the structural behavior of the reinforced self-compacting concrete deep beam was carried out using Abaqus finite element modeling tool. The model was validated against experimental data from the literature. The parametric effects of varied concrete compressive strength, vertical web reinforcement ratio and horizontal web reinforcement ratio on the beam were tested on eight (8) different specimens under four points loads. The results of the validation work showed good agreement with the experimental studies. The parametric study revealed that the concrete compressive strength most significantly influenced the specimens’ response with the average of 41.1% and 49 % increment in the diagonal cracking and ultimate load respectively due to doubling of concrete compressive strength. Although the increase in horizontal web reinforcement ratio from 0.31 % to 0.63 % lead to average of 6.24 % increment on the diagonal cracking load, it does not influence the ultimate strength and the load-deflection response of the beams. Similar variation in vertical web reinforcement ratio leads to an average of 2.4 % and 15 % increment in cracking and ultimate load respectively with no appreciable effect on the load-deflection response.
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxRishavKumar530754
LiDAR-Based System for Autonomous Cars
Autonomous Driving with LiDAR Tech
LiDAR Integration in Self-Driving Cars
Self-Driving Vehicles Using LiDAR
LiDAR Mapping for Driverless Cars
This paper proposes a shoulder inverse kinematics (IK) technique. Shoulder complex is comprised of the sternum, clavicle, ribs, scapula, humerus, and four joints.
Raish Khanji GTU 8th sem Internship Report.pdfRaishKhanji
This report details the practical experiences gained during an internship at Indo German Tool
Room, Ahmedabad. The internship provided hands-on training in various manufacturing technologies, encompassing both conventional and advanced techniques. Significant emphasis was placed on machining processes, including operation and fundamental
understanding of lathe and milling machines. Furthermore, the internship incorporated
modern welding technology, notably through the application of an Augmented Reality (AR)
simulator, offering a safe and effective environment for skill development. Exposure to
industrial automation was achieved through practical exercises in Programmable Logic Controllers (PLCs) using Siemens TIA software and direct operation of industrial robots
utilizing teach pendants. The principles and practical aspects of Computer Numerical Control
(CNC) technology were also explored. Complementing these manufacturing processes, the
internship included extensive application of SolidWorks software for design and modeling tasks. This comprehensive practical training has provided a foundational understanding of
key aspects of modern manufacturing and design, enhancing the technical proficiency and readiness for future engineering endeavors.
4. Memory mapping
1Kb=1024bits
No of lines =
1024/8=128 lines
1Kbit Memory
1Kbits = m X n
= 128 X 8
data lines
D0
D1
D2
D3
D4
D5
D6
D7
1Kbit Memory
W0
W127
}n data lines
W0 is first line address and
W127 is last line address
But do the microprocessor
has 128 address lines?
NO. 8085 Microprocessor
has 16 address lines A0-A15
in which A0 – A6 can be
used to select 128 address
lines because 27
=128
A0
A1
A2
A3
A4
A5
A6
A7
5. What is the use of and ?
are chip select signal to select the chip. When =1 and =0, this chip will get selected and the data
can be either read from or write into it by sending the proper signal to this SRAM chip.
How to generate Chip Select Signal?
If Microprocessor has address lines AD0 - AD15. AD0 – AD6 are used to select the address of
memory locations of SRAM chip and AD7 – AD15 are used to generate the Chip Select signal.
6. What is the use of RD and WR signal?
Since it is SRAM, the data can be read from and write into it by using
memory read and memory write signal of microprocessor.
9. Power on RESET
• Highest Priority
Interrupt
• It should be high
for 2 clock cycles
• After reset, 8051
starts at 0x0000H
RESET
10. Program Counter
• A register in a computer processor that contains the address (location) of
the instruction being executed at the current time.
• As each instruction gets fetched, the program counter increases its stored
value by 1.
• After each instruction is fetched, the program counter points to the next
instruction in the sequence.
• When the computer restarts or is reset, the program counter normally
reverts to 0.
11. Stack and Stack Pointer
• The stack is a LIFO (last in, first out) data structure implemented in
the RAM area.
• Used to store addresses and data when the microprocessor branches to a
subroutine.
• Then the return address used to get pushed on this stack.
• Also to swap values of two registers and register pairs we use the stack as
well.
• Two operations are performed on a stack .
• PUSH : The SP register gets decreased by 2 and new data item used to insert
on to the top of the stack.
POP : the data item will have to be deleted
from the top of the stack and the SP register
will get increased by the value of 2.
The contents of SP specify the top most
useful location in the stack.
12. Subroutine
• When the same function is required more than once
in a program, it is frequently written as a subroutine,
that is, a subprogram that can be used any number of
times by the main program.
• Subroutines are a powerful programming construct
that allow a program to break down a complex task
into smaller, more manageable pieces.
• A subroutine is a block of code that can be called from
anywhere in the program, and then returns control
back to the calling code when it is done.
14. Harvard Architecture
1. Separate Storage for Instruction and data.
2. Separate buses are used to fetch
instructions and data.
3. the CPU can fetch instruction and
read/write data simultaneously.
4. It is basically developed to overcome the
bottleneck of Von Neumann’s Architecture.
1. Instructions, and data both are
stored in the same memory.
2. Same buses are used to fetch
instructions and data.
3. The CPU cannot fetch instruction
and data simultaneously.
Von Neumann Architecture
Main Memory System
Central Processing Unit
Operational
Registers
Program
Counter
Arithmetic
and Logic
Unit
Control Unit
Input/Output System
Data
Instruction
Data Address
Instruction
Address
15. RISC : Reduced Instruction Set Architecture
1. Simpler instruction, hence
simple instruction
decoding.
2. Instruction comes
undersize of one word.
3. Instruction takes a single
clock cycle to get executed.
4. More general-purpose
registers.
5. Simple Addressing Modes.
6. Fewer Data types.
CISC : Complex Instruction Set Architecture
1. Complex instruction, hence
complex instruction decoding.
2. Instructions are larger than
one-word size.
3. Instruction may take more
than a single clock cycle to get
executed.
4. Less number of general-
purpose registers as
operations get performed in
memory itself.
5. Complex Addressing Modes.
6. More Data types.
16. RISC : Reduced Instruction Set
Architecture
Advantages
• Simpler instructions: RISC
processors use a smaller set of
simple instructions, which makes
them easier to decode and
execute quickly. This results in
faster processing times.
• Faster execution: Because RISC
processors have a simpler
instruction set, they can execute
instructions faster than CISC
processors.
• Lower power consumption: RISC
processors consume less power
than CISC processors, making
them ideal for portable devices.
CISC : Complex Instruction Set
Architecture
Advantages
• Reduced code size: CISC processors
use complex instructions that can
perform multiple operations,
reducing the amount of code
needed to perform a task.
• More memory efficient: Because
CISC instructions are more
complex, they require fewer
instructions to perform complex
tasks, which can result in more
memory-efficient code.
• Widely used: CISC processors have
been in use for a longer time than
RISC processors, so they have a
larger user base and more available
software.
17. RISC : Reduced Instruction Set
Architecture
Disadvantages
• More instructions
required: RISC processors
require more instructions to
perform complex tasks than
CISC processors.
• Increased memory usage: RISC
processors require more
memory to store the additional
instructions needed to
perform complex tasks.
• Higher cost: Developing and
manufacturing RISC processors
can be more expensive than
CISC processors.
CISC : Complex Instruction Set
Architecture
Disadvantages
• Slower execution: CISC
processors take longer to execute
instructions because they have
more complex instructions and
need more time to decode them.
• More complex design: CISC
processors have more complex
instruction sets, which makes
them more difficult to design and
manufacture.
• Higher power consumption: CISC
processors consume more power
than RISC processors because of
their more complex instruction
sets.
18. Primary Memory
• The primary memory of a
computer is the main memory
that is utilized to store data
temporarily.
• Primary memory is temporary.
• Primary memory is faster than
secondary memory because it
is directly accessible to the
CPU.
• Primary memory is directly
accessible by Processor/CPU.
• Nature of Parts of Primary
memory varies, RAM- volatile
in nature. ROM- Non-volatile.
Secondary memory
• Secondary memory defines to
additional storage devices that
are utilized to store data
permanently.
• Secondary memory is
permanent.
• Secondary memory is non-
volatile, which means it retains
data even when the power is
off.
• Secondary memory is not
directly accessible by the CPU.
• It’s always Non-volatile in
nature.
19. Primary Memory
• Primary memory devices
are more expensive than
secondary storage devices
• The memory devices used
for primary memory are
semiconductor memories.
• It can hold data/information
currently being used by the
processing unit.
• The capacity of primary
memory is usually within
the range of 16 to 32 GB.
Secondary memory
• Secondary memory devices are
less expensive when compared
to primary memory devices.
• The secondary memory
devices are magnetic and
optical memories.
• It can hold data/information
that are not currently being
used by the processing unit.
• It stores a considerable
amount of data and
information. The capacity of
secondary memory ranges
from 200 GB to some terabytes
20. Primary Memory
• Primary memory is also
known as Main memory or
Internal memory.
• It can be accessed by a data
bus.
• Examples: RAM, ROM,
Cache memory, PROM,
EPROM, Registers, etc.
Secondary memory
• Secondary memory is also
known as External memory
or Auxiliary memory.
• It can be accessed using I/O
channels.
• Examples: Hard Disk,
Floppy Disk, Magnetic Tapes
, etc
21. Cache Memory
• The most important use of cache memory is
that it is used to reduce the average time to
access data from the main memory.
• The concept of cache works because there
exists locality of reference (the same items or
nearby items are more likely to be accessed
next) in processes.
22. Characteristics of Cache Memory
• Extremely fast memory type that acts as a buffer
between RAM and the CPU.
• Holds frequently requested data and instructions,
ensuring that they are immediately available to
the CPU when needed.
• Costlier than main memory or disk memory but
more economical than CPU registers.
• Used to speed up processing and synchronize
with the high-speed CPU.
23. Cache Performance
• If the processor finds that the memory location
is in the cache, a Cache Hit has occurred and
data is read from the cache.
• If the processor does not find the memory
location in the cache, a cache miss has
occurred. For a cache miss, the cache allocates
a new entry and copies in data from the main
memory, then the request is fulfilled from the
contents of the cache.
24. Virtual memory with Memory Management
• Virtual memory is a memory management
technique used by operating systems to give
the appearance of a large, continuous block of
memory to applications, even if the physical
memory (RAM) is limited. It allows larger
applications to run on systems with less RAM.
25. Virtual memory with Memory Management
• The main objective of virtual memory is to support
multiprogramming, The main advantage that virtual
memory provides is, a running process does not need to
be entirely in memory.
• Programs can be larger than the available physical
memory. Virtual Memory provides an abstraction of main
memory, eliminating concerns about storage limitations.
• A memory hierarchy, consisting of a computer system’s
memory and a disk, enables a process to operate with only
some portions of its address space in RAM to allow more
processes to be in memory.
26. Types of virtual memory
• Paging
– Paging divides memory into small fixed-size blocks called pages. When
the computer runs out of RAM, pages that aren’t currently in use are
moved to the hard drive, into an area called a swap file. The swap file
acts as an extension of RAM. When a page is needed again, it is swapped
back into RAM, a process known as page swapping. This ensures that the
operating system (OS) and applications have enough memory to
• Segmentation
– Segmentation divides virtual memory into segments of different sizes.
Segments that aren’t currently needed can be moved to the hard drive.
The system uses a segment table to keep track of each segment’s status,
including whether it’s in memory, if it’s been modified, and its physical
address. Segments are mapped into a process’s address space only when
needed.run.
27. Feature Virtual Memory Physical Memory (RAM)
Definition
An abstraction that extends the
available memory by using disk
storage
The actual hardware (RAM) that stores
data and instructions currently being
used by the CPU
Location On the hard drive or SSD On the computer’s motherboard
Speed Slower (due to disk I/O operations) Faster (accessed directly by the CPU)
Capacity Larger, limited by disk space
Smaller, limited by the amount of RAM
installed
Cost
Lower (cost of additional disk
storage)
Higher (cost of RAM modules)
Data Access Indirect (via paging and swapping) Direct (CPU can access data directly)
Volatility Non-volatile (data persists on disk) Volatile (data is lost when power is off)