Answer For Tutorial 2
Answer For Tutorial 2
Answer For Tutorial 2
Tag
Set
Offse
AB CD E
7F
t
4
5. What is the general relationship among access time, memory cost, and capacity?
Faster access time, greater cost per bit; greater capacity, smaller cost per bit; greater
capacity, slower access time.
6. What are the differences among sequential access, direct access and random access?
Sequential access: Memory is organized into units of data, called records. Access must
be made in a specific linear sequence. Direct access: Individual blocks or records
have a unique address based on physical location. Access is accomplished by direct
access to reach the general vicinity plus sequential searching, counting, or waiting to
reach the final location. Random access: Each addressable location in memory has a
unique, physically wired-in addressing mechanism. The time to access a given location
is independent of the sequence of prior accesses and is constant.
7. What is the different between DRAM and SRAM in term of characteristics such as
speed, size and cost?
SRAMs generally have faster access times than DRAMs. DRAMS are less expensive
and smaller than SRAMs.
8. Explain why one type of RAM is considered to be analog and other digital.
A DRAM cell is essentially an analog device using a capacitor; the capacitor can
store any charge value within a range; a threshold value determines whether the
charge is interpreted as 1 or 0. A SRAM cell is a digital device, in which binary values
are stored using traditional flip-flop logic-gate configurations.
9. What are differences among EPROM, EEPROM and flash memory?
EPROM is read and written electrically; before a write operation, all the storage cells
must be erased to the same initial state by exposure of the packaged chip to ultraviolet
radiation. Erasure is performed by shining an intense ultraviolet light through a
window that is designed into the memory chip. EEPROM is a read mostly memory
that can be written into at any time without erasing prior contents; only the byte or
bytes addressed are updated. Flash memory is intermediate between EPROM and
EEPROM in both cost and functionality. Like EEPROM, flash memory uses an
electrical erasing technology. An entire flash memory can be erased in one or a few
seconds, which is much faster than EPROM. In addition, it is possible to erase just
blocks of memory rather than an entire chip. However, flash memory does not provide
byte-level erasure. Like EPROM, flash memory uses only one transistor per bit, and so
achieves the high density (compared with EEPROM) of EPROM.
10. Design a 16-bit memory of total capacity 8192 bits using SRAM chips of size 64 x 1
bit. Give the array configuration of the chips on the memory board showing all
requirement input and output signals for assigning this memory to the lowest address
space. The design should allow for both byte and 16-bit word access.
8192/64 = 128 chips; arranged in 8 rows by 64 columns:
11. Consider a dynamic RAM that must be given a refresh cycle 64 times per mS. Each
refresh operation requires 150nS. What percentage of the memorys total operating
time must be given to refresh?
In 1 ms, the time devoted to refresh is 64 150 ns = 9600 ns. The fraction of time
devoted to memory refresh is (9.6 106 s)/103 s = 0.0096, which is approximately
1%.
17. A direct memory access module (DMA) module is transferring characters to memory
using cycle stealing, from a device transmitting at 9600 bps. The processor is fetching
instructions at the rate of 1 Million Instruction per Second (MIPS). Based on the
information given, determine how much will the processor be slowed down due to the
DMA activity.
64 KB
18. What is the different between memory-mapped I/O and isolated I/O?
With memory-mapped I/O, there is a single address space for memory locations and
I/O devices. The processor treats the status and data registers of I/O modules as
memory locations and uses the same machine instructions to access both memory and
I/O devices. With isolated I/O, a command specifies whether the address refers to a
memory location or an I/O device. The full range of addresses may be available for
both.
19. What is an Operating system?
The operating system (OS) is the software that controls the execution of programs on a
processor and that manages the processor's resources.
20. What are the major types of operating system (OS) scheduling?
i.
Long-term scheduling: The decision to add to the pool of processes to be executed.
ii.
Medium-term scheduling: The decision to add to the number of processes that are
partially or fully in main memory.
iii.
21. Consider a computer system with both segmentation and paging. When a segment is
in memory, some words are wasted on the last page. In addition, for a segment size s
and a page size p, there are s/p page table entries. The smaller the page size, the less
waste in the last page of the segment, but the larger the page table. What page size
minimizes the total overhead?
22. What is the purpose of a translation lookaside buffer?
The TLB is a cache that contains those page table entries that have been most recently
used. Its purpose is to avoid, most of the time, having to go to disk to retrieve a page
table entry.