• edited by
5,482 views
6 6 votes

Of the following, which best characterizes computers that use memory-mapped $\text{I/O}?$

  1. The computer provides special instructions for manipulating $\text{I/O}$ ports
  2. $\text{I/O}$ ports are placed at addresses on the bus and are accessed just like other memory locations
  3. To perform $\text{I/O}$ operations. it is sufficient to place the data in an address register and call channel to perform the operation
  4. $\text{I/O}$ can be performed only when memory management hardware is turned on

4 Answers

7 7 votes
In memory some of the address of the Memory are assigned to IO port. so whenever those address are placed we refer to the IO devices.

option B
2 2 votes
→ Memory-mapped I/O uses the same address space to address both memory and I/O devices.
→ The memory and registers of the I/O devices are mapped to (associated with) address values.
→ So when an address is accessed by the CPU, it may refer to a portion of physical RAM, or it can instead refer to the memory of the I/O device. Thus, the CPU instructions used to access the memory can also be used for accessing devices.
→ Each I/O device monitors the CPU's address bus and responds to any CPU access of an address assigned to that device, connecting the data bus to the desired device's hardware register.
→ To accommodate the I/O devices, areas of the addresses used by the CPU must be reserved for I/O and must not be available for normal physical memory.
→ The reservation may be permanent, or temporary (as achieved via bank switching).

Correct option - (b)
0 0 votes

Correct Answer: B I/O ports are placed at addresses on the bus and are accessed just like other memory locations.

A: That’s I/O-mapped I/O (isolated I/O) — not memory-mapped. → Uses special instructions like IN and OUT.

C is false for memory-mapped I/O because: Memory-mapped I/O does not involve a channel or calling a channel; it is directly handled by CPU read/write instructions.

D: Irrelevant — I/O does not depend on turning memory management hardware on.

0 0 votes

Option B  is correct  because i/o and main memory both use the same address space. so once an address is generated based on the location either the memory or i/o interface gets activated but not the both . 

My doubt was why option C is incorrect? 

I mean i have an explanation that as cpu is the one who is controlling the address space also ,so whatever the operations have to be done , just keep the address on address register and call channel to perform the operation . But i think "calling channel"  is not needed i think so and that's why option c is wrong. Correct if im wrong.   

Answer:
Position:
Show:

Related questions

4 4 votes
3 3 answers
4.8k
4.8k views
Arjun asked Apr 22, 2018
4,758 views
A data driven machine is one that executes an instruction if the needed data is available. The physical ordering of the code listing does not dictate the course of execut...
4 4 votes
5 5 answers
8.2k
8.2k views
Arjun asked Apr 22, 2018
8,220 views
A byte addressable computer has a memory capacity of $2$$^{m}$$KB$ ($k$ bytes) and can perform $2$$^{n}$ operations. An instruction involving $3$ operands and one operato...
5 5 votes
4 4 answers
3.9k
3.9k views
Arjun asked Apr 22, 2018
3,929 views
Micro program is:the name of a source program in micro computersset of microinstructions that defines the individual operations in response to a machine-language instruct...
7 7 votes
5 answers 5 answers
7.7k
7.7k views
Arjun asked Apr 22, 2018
7,670 views
A particular parallel program computation requires $100$ sec when executed on a single processor, if $40\%$ of this computation is inherently sequential (i.e. will not be...