Chat with us, powered by LiveChat the following table to determine how long it takes | Writedemy

the following table to determine how long it takes

the following table to determine how long it takes

Question

1. 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 buz. 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 the interrupt is received, the CPU and OS perform the following actions:

a. The supervisor is called
b. The supervisor calls the modem’s “data ready” interrupt handler.
c. The interrupt handler sends a command to the modem, instructing it to copy its buffer content to main memory,
d. The modem interrupt handler immediately returns control to the supervisor
e. The supervisor returns control to the process that was originally interrupted

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 are 64 bytes. The “transfer complete” interrupt 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.

Use the following table to determine how long it takes to move a 64-byte packet from its arrival at the modem until its receipt in the memory area of the target application program or service? State your answer in elapsed time (nanoseconds).

Facts For Problem 1
Device Clock rate (MHz) Cycle time (ns) Width (bytes) Speed (bytes/sec)
Bus 400 2.5 8
CPU 2000 0.5 8
Modem buffer 64
Modem speed 375000
Operation CPU Cycles
Push 30
Pop 30
Increment stack pointer 1
Branch 1
Supervisor lookup 8
Data ready interrupt handler 50
Transfer complete interrupt handler 30
Interrupt handler memory copy (8 bytes) 1

Now fill in CPU cycles and times

Processing steps Cycles Time (ns)
Send data ready interrupt to CPU 1 2.5
Call supervisor (PUSH+INCR+BRANCH)
Execute supervisor table lookup
Call interrupt handler (PUSH+INCR+BRANCH)
Execute data ready interrupt handler
Return to supervisor (POP)
Return to suspended program (POP)
Transfer buffer content (64 bytes) across bus Comment: This time is in parallel to the two returns to supervisor. In this case it is less and doesn’t count. (8) (20)
Send transfer completed interrupt to CPU 1 2.5
Call supervisor (PUSH+INCR+BRANCH)
Execute supervisor lookup
Call interrupt handler (PUSH+INCR+BRANCH)
Execute transfer complete interrupt handler
Interrupt handler memory copy (64 bytes)
Return to supervisor (POP)
Return to suspended program (POP)
Sum

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order