Go to Post I found the best way to slice through pit crowds is to carry a clipboard and look like you know where you are going. People just seem to slide out of your way. :) - Ian Curtis [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 30-04-2008, 01:01
ddfan1234 ddfan1234 is offline
Registered User
no team
 
Join Date: Apr 2008
Location: goleta
Posts: 3
ddfan1234 is on a distinguished road
need help with cache homework~!

Hey people,

I am new to this forum and here for desperate need of help...

I have this assignment due very soon and I am having trouble understanding and approaching it...starting from Part 1 below...

Thanks in advance!

Part 1:

Create an address stream with good spatial locality but bad temporal locality called SpatialStream.txt. Then create a stream that has good temporal locality but bad spatial locality called TemporalStream.txt. Each stream must have at least 100 accesses in it.

// What do they mean by creating an address stream with 100 accesses in it???
I have somewhat an idea of what spatial and temporal locality is but don't know how to interpret it to an address stream.. please help!

Part 2:

1.

Begin by writing a simple cache simulator in cache.c. This direct-mapped cache receives the cache size and line size for initialization.
2.

Write a simulator for the cache in cachesim.c. The simulator runs by reading in from a file. This file contains the address stream the cache sees. Each address is an integer, written in ascii characters. Each address represents an access into the cache. The simulator reports the # of accesses and miss rate at the end of the simulation.
3.

Run the simulation on each address stream with the following cache configurations:

Cache Size Line Size
64 4
64 2
64 1
128 4

Deliverables:

1. TemporalStream.txt
2. SpatialStrem.txt
3. Make two graphs - one that graphs the different address streams with varying sizebut constant line size, and another that graphs the different address streams with varying line size but constant size. Graph the miss rates.
4. cache.c
5. cachesim.c

Thank you everyone! Any help will be greately appreciated!
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with autonomous caderader Programming 3 14-02-2005 18:25
Need help with beacons magical hands Programming 2 11-02-2004 21:48
hey need some help with writing a code please help me here magical hands Programming 9 01-01-2004 21:46
Need help with C++ Tton Programming 7 04-11-2003 19:15


All times are GMT -5. The time now is 20:22.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi