Professional Documents
Culture Documents
bus. The open drivers can be selected to be either a logical high, a logical low, or high
impedance which allows other buffers to drive the bus.
construct a single line common bus system using tri state buffer
Set-Associative
Direct-mapping Associative Mapping
Mapping
Set-Associative
Direct-mapping Associative Mapping
Mapping
Search time is less here because there Search time is more as the
Search time increases
is one possible location in the cache cache control logic examines
with number of blocks
organization for each block from main every block’s tag for a
per set.
memory. match.
The index is given by the number of The index is zero for The index is given by
blocks in cache. associative mapping. the number of sets in
Set-Associative
Direct-mapping Associative Mapping
Mapping
cache.
Advantages-
Advantages-
Simplest type of mapping
It gives better
Fast as only tag field matching is Advantages-
performance than
required while searching for a It is fast.
the direct and
word. Easy to implement
associative mapping
It is comparatively less expensive
techniques.
than associative mapping.
Disadvantages-
Disadvantages- Disadvantages-
It is most expensive
It gives low performance because Expensive because it
as with the increase
of the replacement for data-tag needs to store address
in set size cost also
value. along with the data.
increases.
Write Through:
In write-through, data is simultaneously updated to cache and memory. This process is
simpler and more reliable. This is used when there are no frequent writes to the cache(The
number of write operations is less).
It helps in data recovery (In case of a power outage or system failure). A data write will
experience latency (delay) as we have to write to two locations (both Memory and Cache). It
Solves the inconsistency problem. But it questions the advantage of having a cache in write
operation (As the whole point of using a cache was to avoid multiple access to the main
memory).
Write Back:
The data is updated only in the cache and updated into the memory at a later time. Data is
updated in the memory only when the cache line is ready to be replaced (cache line
replacement is done using Belady’s Anomaly, Least Recently Used Algorithm, FIFO, LIFO, and
others depending on the application).
Write Back is also known as Write Deferred.
Difference between Programmed and Interrupt Initiated I/O : (VVIMP)
CPU cannot do any work until the transfer is CPU can do any other work until it is
complete as it has to stay in the loop to interrupted by the command indicating
continuously monitor the peripheral device. the readiness of device for data transfer
The worst case occurrence of Booth’s algorithm occurs when the LSB of the register “Q” is a
one in every iteration. This means that the algorithm must perform the addition or subtraction
step in every iteration, which increases the overall number of steps required to complete the
algorithm.
What is the von Neumann bottleneck?
The von Neumann bottleneck is a limitation on throughput caused by the standard personal
computer architecture. The term is named for John von Neumann, who developed the theory
behind the architecture of modern computers. Earlier computers were fed programs and data
for processing while they were running.
The von Neumann bottleneck has often been considered a problem that can be overcome only
through significant changes to computer or processor architectures. Even so, there have been
numerous attempts to address the limitations of the existing structure:
Caching. A common method for addressing the bottleneck has been to add caches to the
CPU. In a typical cache configuration, the L1, L2 and L3 cache levels sit between the
processor core and the main memory to help speed up operations. The L1 cache is the
smallest, fastest and most expensive. The L3 cache, which is shared among multiple
processor cores, is the largest, slowest and least expensive. The L2 cache falls somewhere
between the two.
Diagram
illustrating how cache memory is a memory block separate from main memory accessed before
main memory. Caching is a common method used to overcome the von Neumann bottleneck.
Prefetching. Instructions and data that are expected to be used first are fetched into the
cache in advance so they're immediately available when needed.
New types of RAM. Current developments in RAM technologies promise to help address at
least part of the bottleneck issues by getting the data into the bus more quickly. Emerging
areas of development include resistive RAM, magnetic RAM, ferroelectric RAM and spin-
transfer torque RAM.
Near-data processing. With NDP, memory and storage are augmented with processing
capabilities that help improve performance, while reducing dependency on the system bus.
One type of NDP is processing in memory, which integrates a processor and memory in a
single microchip.
Hardware acceleration. Processing is shifted to other hardware devices to reduce the load on
the CPU and dependency on the system bus. Common types of hardware acceleration
include GPUs, application-specific integrated circuits and field-programmable gate arrays.
System-on-a-chip. A single chip contains processing, memory and other system resources,
eliminating much of the data transfer on the system bus. Mobile devices and embedded
systems use SoC technology extensively. However, the technology is now making its way into
the computer industry, with Apple silicon leading the way.
Hardwired control unit generates the control Microprogrammed control unit generates
signals needed for the processor using logic the control signals with the help of micro
circuits instructions stored in control memory
Difficult to modify as the control signals that Easy to modify as the modification need
need to be generated are hard wired to be done only at the instruction level
Only limited number of instructions are used due Control signals for many instructions can
to the hardware implementation be generated
Used in computer that makes use of Reduced Used in computer that makes use of
Instruction Set Computers(RISC) Complex Instruction Set Computers(CISC)