question archive You have a PC with a 2 GHz processor, a system bus clocked at 400 MHz, and a 3 Mbps internal cable modem attached to the system bus
Subject:Computer SciencePrice:9.82 Bought3
You have a PC with a 2 GHz processor, a system bus clocked at 400 MHz, and a 3 Mbps internal cable modem attached to the system bus. No parity or other error-checking mechanisms are used. The modem has a 64-byte buffer. After it receives 64 bytes, it stops accepting data from the network and sends a data ready interrupt to the CPU. When this interrupt is received, the CPU and OS perform the following actions:
When the modem finishes the data transfer, it sends a transfer completed interrupt to the CPU and resumes accepting data from the network. In response to the interrupt, the CPU and OS perform the following actions:
Sending an interrupt requires one bus cycle. A push or pop operation consumes 30 CPU cycles. Incrementing the stack pointer and executing an unconditional branch instruction require one CPU cycle each. The supervisor consumes eight CPU cycles searching the interrupt table before calling an interrupt handler. The data ready interrupt handler consumes 50 CPU cycles before returning to the supervisor.
Incoming packets range in size from 64 bytes to 4096 bytes. The transfer complete interrupt handler consumes 30 CPU cycles before returning to the supervisor if it doesn't detect a complete packet in memory. If it does, it consumes 30 CPU cycles plus one cycle for each 8 bytes of the packet. (See also page 225)
Please show the answers and supporting computations in the provided charts.
Facts For the Project | ||||
Device | Clock rate (MHz) | Cycle time (ns) | Width (bytes) | Speed (bytes/sec) |
Bus | ||||
CPU | ||||
Modem buffer (question 1) | ||||
Modem buffer (question 2) | ||||
Modem speed | ||||
Operation | Cycles | |||
Push | ||||
Pop | ||||
Increment stack pointer | ||||
Branch | ||||
Supervisor lookup | ||||
Data ready interrupt handler | ||||
Transfer complete interrupt handler | ||||
Interrupt handler memory copy (8 bytes) |
Purchased 3 times