Find Jobs
Hire Freelancers

cache simulator

$30-75 USD

En curso
Publicado hace alrededor de 22 años

$30-75 USD

Pagado a la entrega
CDA3101 - Spring 2002 Chapter 7 Programming Assignment Data Cache Simulator Due at the beginning of class April 10, 2002 Responsible TA: T. Thomas Your assignment is to write a program that simulates the behavior of a data cache. The program will read a trace of references from standard input and produce statistics about the trace to standard output. The grading process will include applying your simulator to multiple reference traces. The cache simulator should first determine the configuration of the data cache. This is accomplished by reading the configuration information on the first three lines of standard input. These lines specify the number of cache sets, the number of elements of each set (associativity level), and the size of a cache line in bytes. The format of the configuration is shown below (note that the values specified after the colon on each line are the portion that can change). You may assume that the number of sets does not exceed 8192 and the associativity level does not exceed 8. You may also assume that the format and numbers specified in these three lines are valid. Number of sets: 8 Set size: 1 Line size: 4 The trace of references follow the configuration information and has the following format: ::where can be the characters: R - indicates a read access W - indicates a write access is the size of the reference in bytes (1,2,4, or 8), and is the starting byte address of the reference expressed as a hexadecimal number. You may assume that lines in the trace file conform to the format, e.g., you do not have to check for lines that have an incorrect number of fields. The example trace of references below, contains the addresses that correspond to the example references described on page 547 and 548 of your text. Note the addresses here are hexadecimal byte addresses rather than the decimal word addresses used in the text. R:4:58 R:4:68 R:4:58 R:4:68 R:4:40 R:4:c R:4:40 R:4:48 A file containing the cache configuration information and the trace data is available at "[login to view URL]˜gallivan/[login to view URL]". -1- You can read the , , and into a character and two integers, respectively, using formatted I/O with the following type of scanf statement. scanf("%c:%d:%x", &accesstypevariable, &sizevariable, &hexaddressvariable); Your cache simulator should use an LRU replacement algorithm. For data writ ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. ## Platform C++ or Visual C++
ID del proyecto: 2845068

Información sobre el proyecto

4 propuestas
Proyecto remoto
Activo hace 22 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
See private message.
$24,65 USD en 14 días
5,0 (33 comentarios)
4,0
4,0
4 freelancers están ofertando un promedio de $40 USD por este trabajo
Avatar del usuario
See private message.
$42,50 USD en 14 días
4,5 (42 comentarios)
4,6
4,6
Avatar del usuario
See private message.
$51 USD en 14 días
4,5 (17 comentarios)
3,3
3,3
Avatar del usuario
See private message.
$42,50 USD en 14 días
0,0 (1 comentario)
0,0
0,0

Sobre este cliente

Bandera de UNITED STATES
United States
5,0
1
Miembro desde abr 4, 2002

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.