Find Jobs
Hire Freelancers

CPU Caches

$30-250 USD

Terminado
Publicado hace más de 9 años

$30-250 USD

Pagado a la entrega
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.
ID del proyecto: 6804511

Información sobre el proyecto

2 propuestas
Proyecto remoto
Activo hace 9 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos
Adjudicado a:
Avatar del usuario
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 en 3 días
5,0 (14 comentarios)
4,3
4,3
2 freelancers están ofertando un promedio de $100 USD por este trabajo
Avatar del usuario
A proposal has not yet been provided
$100 USD en 3 días
4,7 (11 comentarios)
3,7
3,7

Sobre este cliente

Bandera de IRELAND
Dublin, Ireland
5,0
5
Forma de pago verificada
Miembro desde nov 14, 2014

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.