Find Jobs
Hire Freelancers

CPU Caches

$30-250 USD

Abgeschlossen
Veröffentlicht vor mehr als 9 Jahren

$30-250 USD

Bezahlt bei Lieferung
In this part of the assignment, you should implement a direct mapped cache as a Java class: class DirectMappedCache { public DirectMappedCache(int totalSizeInKB, int bytesPerCacheLine) { 1 // your implementation here } public bool ApplyAddress(int address) { // your implementation here } } The ApplyAddress function should return true when a cache hit occurs, and false when a cache miss occurs. Using this class, write a program that reads a list of memory addresses (i.e., 32 bit integers) from a _le, and prints out whether the addresses result in a cache hit or cache miss. As part of your submission you should include a sample list of memory addresses, explaining why your program reported a cache hit or miss in each case. 4 Part II: A Fully Associative Cache In this part of the assignment you should implement a fully associative cache, that evicts cache lines based on an LRU policy. class FullyAssociativeCache { public FullyAssociativeCache(int totalSizeInKB, int bytesPerCacheLine) { // your implementation here } public bool ApplyAddress(int address) { // your implementation here } } The ApplyAddress function should return true when a cache hit occurs, and false when a cache miss occurs. Using this class, write a program that reads a list of memory addresses (i.e., 32 bit integers) from a _le, and prints out whether the addresses result in a cache hit or cache miss. As part of your submission you should include a sample list of memory addresses, explaining why your program reported a cache hit or miss in each case.
Projekt-ID: 6804511

Über das Projekt

2 Vorschläge
Remote Projekt
Aktiv vor 9 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
Hello, my name is Fernando and i have more than 5 years of java programming experience. I can do your assigment very well structured and commented. Thanks
$100 USD in 3 Tagen
5,0 (14 Bewertungen)
4,3
4,3
2 Freelancer bieten im Durchschnitt $100 USD für diesen Auftrag
Avatar des Nutzers
A proposal has not yet been provided
$100 USD in 3 Tagen
4,7 (11 Bewertungen)
3,7
3,7

Über den Kunden

Flagge von IRELAND
Dublin, Ireland
5,0
5
Zahlungsmethode verifiziert
Mitglied seit Nov. 14, 2014

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.