Skip to main content

CSE HELPLINE

LAB MANUAL for Data And Telecommunications

  Router Configuration Lab Report 1. Introduction Objective : The purpose of this lab is to configure a router with various settings and verify the communication between devices on different networks. Tools/Software Used : Cisco Packet Tracer, GNS3, Physical Router etc. Topology : Brief description of the network topology, including the routers, switches, and devices used.                                 যদি কারো ল্যাব রিপোর্ট লাগে কমেন্টে ইমেইল কমেন্ট করে দিন পাঠানো হবে। Lab Report PDF

Define memory ampped I/O and peripheral I/O

 Memory-mapped I/O and Peripheral I/O (or Port-mapped I/O) are two methods for interfacing input/output devices with a CPU. Both are used to manage data flow between the processor and peripheral devices, but they differ in how they address and control those devices. Here’s a comparison of the two:

1. Memory-Mapped I/O (MMIO)

  • Definition: In memory-mapped I/O, the same address space is shared by both memory and I/O devices. The CPU communicates with I/O devices using regular memory instructions (load/store), treating I/O device registers as if they are regular memory locations.
  • Addressing: The I/O devices are assigned specific addresses within the memory address space. The CPU uses these addresses to read from or write to the I/O devices.
  • Instructions: Standard memory access instructions (such as LOAD and STORE) are used to interact with the I/O devices.
  • Hardware Complexity: Simplifies hardware because no separate I/O space or specific I/O instructions are required. However, it can reduce the amount of memory available for normal use if the address space is shared.
  • Examples: Widely used in modern systems like microcontrollers, ARM-based systems, and some Intel architectures.

Advantages:

  • Same instructions can be used for memory and I/O, reducing complexity in software.
  • Supports faster and more flexible access to I/O devices since it uses the same instruction set for both.
  • Easier to implement in systems with a unified address space.

Disadvantages:

  • Takes up memory address space, limiting the total available memory.
  • Can cause performance overhead if there’s a lot of memory and I/O contention.

2. Peripheral I/O (Port-Mapped I/O or Isolated I/O)



  • Definition: Peripheral I/O uses a separate address space specifically for I/O devices. This means that I/O devices are accessed using special instructions distinct from those used to access memory.
  • Addressing: The I/O devices have their own dedicated address space, separate from the memory address space. The CPU uses specific I/O instructions to communicate with them.
  • Instructions: Special I/O instructions (such as IN and OUT) are used to read from and write to I/O ports. These instructions can only be used with peripheral I/O devices.
  • Hardware Complexity: Requires additional hardware to manage the separate I/O address space and specific I/O instructions.
  • Examples: Often used in older systems like the Intel x86 architecture, which still supports port-mapped I/O along with memory-mapped I/O.

Advantages:

  • Keeps I/O devices separate from memory, ensuring that the entire memory address space is available for programs and data.
  • Can be more efficient in systems where a clear distinction between memory and I/O devices is needed.

Disadvantages:

  • Requires special instructions for I/O operations, increasing software complexity.
  • Slower in some cases because of the separate I/O instructions and address space.

Summary Table:

FeatureMemory-Mapped I/O (MMIO)Peripheral I/O (Port-Mapped I/O)
AddressingI/O devices share memory address spaceI/O devices have a separate address space
Access InstructionsUses standard memory instructions (LOAD, STORE)Uses specific I/O instructions (IN, OUT)
Hardware ComplexitySimplifies hardwareRequires dedicated hardware for I/O ports
PerformanceGenerally faster, but shares memory bandwidthCan reduce memory contention but may be slower
Memory UsageReduces available memoryDoesn’t affect memory address space
Example UsageMicrocontrollers, ARM systems, modern architecturesOlder systems, legacy Intel architectures

In modern systems, memory-mapped I/O is more common because it allows the CPU to handle I/O devices using the same mechanisms as memory, simplifying design and improving performance. However, port-mapped I/O is still used in some legacy systems or specialized cases.

Comments

Popular Posts