HW4_Solution
.pdf
keyboard_arrow_up
School
California State University, Long Beach *
*We aren’t endorsed by this school
Course
301
Subject
Computer Science
Date
Feb 20, 2024
Type
Pages
2
Uploaded by HighnessOxideMouse18
HW
#4 - Solution CECS 301 - Spring 2022 © Amin Rezaei Question 2:
When the bus master is busy to carry out its own internal tasks, the bus protocol requires the bus master to hold the address, control, and data values as long as it is busy. The following figure illustrates an example where the bus master becomes busy in clock cycles 2, 9 and 10 while writing data into a slave. Draw corresponding Address and Write Data (WData) rows. At which clock cycle each WData is written? WD1, WD2, WD3, and WD4 are written at the clock cycles 5, 6, 7, and 9 respectively. The diagram does not tell us about the written time of WD5 and WD6. Question 3:
Draw bus arbitration table and state machine of an arbiter with three bus masters where bus master 1 has the highest priority followed by bus masters 2 and 3.
HW
#4 - Solution CECS 301 - Spring 2022 © Amin Rezaei Question 4:
Considering the following information, complete the given topology comparison table. Reliability:
Interconnection networks should be able to send messages through alternative paths when some faults are detected. Reliability of a topology can be seen as high, medium, and low based on the number of faults that it can tolerate. Planarity:
If a topology can be implemented in two-dimensional plane, we call it planar; otherwise, it is not planar. Star Topology:
In a star topology, all the nodes are connected to a single management node called hub. Star Topology Topology Cost Speed Contention Reliability Planarity Bus Lowest Low Highest Low Planar P2P Highest Highest Lowest Highest Not Planar Ring Low Low Medium Low Planar Mesh Low Medium Low High Planar Torus Low Medium to High Low High Not Planar H-Tree Low Medium to High Low Medium Planar Star Medium High Medium Low Planar Note: In star topology, hub is costly for large systems. Also, hub is the hot-spot and may become saturated. In addition, hub is a single point of failure. Question 5:
A suggested DOR algorithm for mesh topology restricts all turns to the west direction. This means west direction should be taken first if needed in the proposed route. (a) For the given topology, highlight the path that a message takes from source node 7 to destination node 13. (b) Can the given deadlock situation happen in this system? No. Since there should not be any turn to the west, message 3 cannot be waited for message 4 to proceed.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
In a certain computer, the virtual addresses are
32 bits long and the physical addresses are 48
bits long. The memory is word addressable. The
page size is 16 kB and the word size is 2 bytes.
The Translation Look-aside Buffer (TLB) in the
address translation path has 64 valid entries. Hit
ratio of TLB is 100% then maximum number of
distinct virtual addresses that can be translated
is
K.
arrow_forward
The VAX SBI bus uses a distributed, synchronous arbitration scheme. Each SBIN device (i.e., processor, memory, I/O module) has a unique priority and is assigned a unique transfer request (TR) line. The SBI has 16 such lines (TR0, TR1, . . ., TR15), with TR0 having the highest priority. When a device wants to use the bus, it places
a reservation for a future time slot by asserting its TR line during the current time slot. At the end of the current time slot, each device with a pending reservation examines the TR lines; the highest-priority device with a reservation uses the next time slot.
A maximum of 17 devices can be attached to the bus. The device with priority 16 has no TR line. Why not?
arrow_forward
Suppose we have a byte-addressable computer using 2-way set associative mapping with 16-bit main memory addresses and 32
bits, the
blocks of cache. Suppose also that each block contains 8 bytes. The size of the block offset field is
bits, and the size of the tag field is
bits.
size of the set field is
arrow_forward
6- In 8086Mp bus cycles, the signal (ALE) becomes '1' during
clock cycle.
7- The type of the buffer used for buffering data lines is
while the type of
the buffer used for buffering address lines is
8- During transferring a data of 8-bits from 8086Mp to memory address (1F871H),
give the logic value of the following signals:
M/IO=
RD=
=
WR=
BHE=
9- The benefit of multiplexing operation is
1. CC
arrow_forward
(a) Explain the use of TLBs to improve paging efficiency.
(b) Consider a paging system with the page table stored in memory. If a memory reference takes 200 nano seconds, how long does a paged memory reference take? If we add a TLB, and 75% of all page references are found in the TLB, what is the effective memory reference time? (Assume that it takes zero time to find an entry in the TLB if it is already present).
(In operating system)
arrow_forward
We pointed out that I/O buses do not need separate address lines. Construct a timing diagram similar to Figure 7.11 that describes the handshake between an I/O controller and a disk controller for a write operation. (Hint: You will need to add a control signal.)
arrow_forward
Suppose a computer system uses 16-bit addresses for both its virtual and physical addresses. In addition, assume each page (and frame) has size 256 bytes.
How many bits are used for the page number? How many bits are used for the offset?
With this system, what’s the maximum number of pages that a process can have?
Suppose that each entry in the page table comprises 4 bytes (including the frame number, the valid bit, and miscellaneous “bookkeeping bits”). An OS uses an array to store the page table. What is the size of the page table?
Furthermore, suppose the first 6 pages of a process map to frames 222 to 227 (as decimal numbers), and the last 5 pages of the process map to frames 1 to 5 (also decimal numbers). All other pages are invalid. Draw the page table, including the valid bit and the frame number.
arrow_forward
A cache is set up with a block size of 32 words. There are 16 blocks in cache and set up to be direct map. You have byte address 0x8923. Show the word address, block address, tag, and index.
Show each access being filled in with a note of hit or miss.
You are given word address and the access are: 0xff, 0x08, 0x22, 0x00, 0x39, 0xF3, 0x07, 0xc0
arrow_forward
If logical address is (0001100001011) binary
find
page number p:
displacement d:
suppose the page addressed above is stored at frame 7. the physical address for the word addressed above is
physical address:
please show and explain all steps
arrow_forward
Write an ALP to exchange block of data word by word (8 words) betweentwo memory locations. Assume memory1 address is 6000h and memory2address is 7000h
arrow_forward
On a simple paging system with 224 bytes of physical memory, 256 pages of logical address space, and a page size of 210 bytes.
1. How many bits are needed to store an entry in the page table (how wide is the page table)? Assume a valid/invalid 1-bit is included in each entry.
2. If the page table is stored in the main memory with 250nsec access time, how long does a paged memory reference take?
3. If the page table is implemented using associative registers that takes 95nsec. and main memory that takes 200nsec, what is the total access time if 75% of all memory references find their entries in the associative registers?
arrow_forward
A processor uses 2-level page tables for virtal to
physical address translation. Page tables for hoth
levels are stored in the main memory, Virtual and
physical addreses are both 12 bits wide.
The memory is byte adressable. For virtual to
physical address translation, the 10 most
significant bits for the virmal address are used as
index into the first level poge table while the next
10 bits are used as index into the second level
page table. The 12 least significant bits of the
virtual address are used as offset within the page.
Assume that the page table entries in both levels
of page tables are 4 bytes wide. Further, the
processor has a translation look-aside a buffer
(TLB), with a hit a rate of 96% The TLB caches
recently used virtual page numbers and the
corresponding physical page numbers
The processor also has a physically addressed
cache with a hit rate of 90%. Main memory
access time is 10 ns, cache access time is 1 ns,
and TLB access time is also 10 ns.
26. Assuming that no…
arrow_forward
Question 8:
A CPU generates 32-bit virtual addresses. The page size is 4 KB. The processor has a translation
look-aside buffer (TLB) which can hold a total of 128 page table entries and is 4-way set
associative. The minimum size of the TLB tag is:
01
02
0 3
04
1. 11 bits
2. 13 bits
3. 15 bits
4. 20 bits
arrow_forward
Consider a system in which bus cycles takes 500 ns. Transfer of bus control in either
direction, from processor to I/O device or vice versa, takes 250 ns. One of the I/O de-
vices has a data transfer rate of 50 KB/s and employs DMA. Data are transferred one
byte at a time.
a. Suppose we employ DMA in a burst mode. That is, the DMA interface gains bus
mastership prior to the start of a block transfer and maintains control of the bus
until the whole block is transferred. For how long would the device tie up the bus
when transferring a block of 128 bytes?
b. Repeat the calculation for cycle-stealing mode.
arrow_forward
(b) Consider a paging system with the page table stored in memory. If a memory referencetakes 200 nano seconds, how long does a paged memory reference take? If we add a TLB,and 75% of all page references are found in the TLB, what is the effective memory referencetime? (Assume that it takes zero time to find an entry in the TLB if it is already present).
arrow_forward
All of the information is below
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning
Related Questions
- In a certain computer, the virtual addresses are 32 bits long and the physical addresses are 48 bits long. The memory is word addressable. The page size is 16 kB and the word size is 2 bytes. The Translation Look-aside Buffer (TLB) in the address translation path has 64 valid entries. Hit ratio of TLB is 100% then maximum number of distinct virtual addresses that can be translated is K.arrow_forwardThe VAX SBI bus uses a distributed, synchronous arbitration scheme. Each SBIN device (i.e., processor, memory, I/O module) has a unique priority and is assigned a unique transfer request (TR) line. The SBI has 16 such lines (TR0, TR1, . . ., TR15), with TR0 having the highest priority. When a device wants to use the bus, it places a reservation for a future time slot by asserting its TR line during the current time slot. At the end of the current time slot, each device with a pending reservation examines the TR lines; the highest-priority device with a reservation uses the next time slot. A maximum of 17 devices can be attached to the bus. The device with priority 16 has no TR line. Why not?arrow_forwardSuppose we have a byte-addressable computer using 2-way set associative mapping with 16-bit main memory addresses and 32 bits, the blocks of cache. Suppose also that each block contains 8 bytes. The size of the block offset field is bits, and the size of the tag field is bits. size of the set field isarrow_forward
- 6- In 8086Mp bus cycles, the signal (ALE) becomes '1' during clock cycle. 7- The type of the buffer used for buffering data lines is while the type of the buffer used for buffering address lines is 8- During transferring a data of 8-bits from 8086Mp to memory address (1F871H), give the logic value of the following signals: M/IO= RD= = WR= BHE= 9- The benefit of multiplexing operation is 1. CCarrow_forward(a) Explain the use of TLBs to improve paging efficiency. (b) Consider a paging system with the page table stored in memory. If a memory reference takes 200 nano seconds, how long does a paged memory reference take? If we add a TLB, and 75% of all page references are found in the TLB, what is the effective memory reference time? (Assume that it takes zero time to find an entry in the TLB if it is already present). (In operating system)arrow_forwardWe pointed out that I/O buses do not need separate address lines. Construct a timing diagram similar to Figure 7.11 that describes the handshake between an I/O controller and a disk controller for a write operation. (Hint: You will need to add a control signal.)arrow_forward
- Suppose a computer system uses 16-bit addresses for both its virtual and physical addresses. In addition, assume each page (and frame) has size 256 bytes. How many bits are used for the page number? How many bits are used for the offset? With this system, what’s the maximum number of pages that a process can have? Suppose that each entry in the page table comprises 4 bytes (including the frame number, the valid bit, and miscellaneous “bookkeeping bits”). An OS uses an array to store the page table. What is the size of the page table? Furthermore, suppose the first 6 pages of a process map to frames 222 to 227 (as decimal numbers), and the last 5 pages of the process map to frames 1 to 5 (also decimal numbers). All other pages are invalid. Draw the page table, including the valid bit and the frame number.arrow_forwardA cache is set up with a block size of 32 words. There are 16 blocks in cache and set up to be direct map. You have byte address 0x8923. Show the word address, block address, tag, and index. Show each access being filled in with a note of hit or miss. You are given word address and the access are: 0xff, 0x08, 0x22, 0x00, 0x39, 0xF3, 0x07, 0xc0arrow_forwardIf logical address is (0001100001011) binary find page number p: displacement d: suppose the page addressed above is stored at frame 7. the physical address for the word addressed above is physical address: please show and explain all stepsarrow_forward
- Write an ALP to exchange block of data word by word (8 words) betweentwo memory locations. Assume memory1 address is 6000h and memory2address is 7000harrow_forwardOn a simple paging system with 224 bytes of physical memory, 256 pages of logical address space, and a page size of 210 bytes. 1. How many bits are needed to store an entry in the page table (how wide is the page table)? Assume a valid/invalid 1-bit is included in each entry. 2. If the page table is stored in the main memory with 250nsec access time, how long does a paged memory reference take? 3. If the page table is implemented using associative registers that takes 95nsec. and main memory that takes 200nsec, what is the total access time if 75% of all memory references find their entries in the associative registers?arrow_forwardA processor uses 2-level page tables for virtal to physical address translation. Page tables for hoth levels are stored in the main memory, Virtual and physical addreses are both 12 bits wide. The memory is byte adressable. For virtual to physical address translation, the 10 most significant bits for the virmal address are used as index into the first level poge table while the next 10 bits are used as index into the second level page table. The 12 least significant bits of the virtual address are used as offset within the page. Assume that the page table entries in both levels of page tables are 4 bytes wide. Further, the processor has a translation look-aside a buffer (TLB), with a hit a rate of 96% The TLB caches recently used virtual page numbers and the corresponding physical page numbers The processor also has a physically addressed cache with a hit rate of 90%. Main memory access time is 10 ns, cache access time is 1 ns, and TLB access time is also 10 ns. 26. Assuming that no…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning