Lengkap

C program to work with hit or miss

To compare the benefits of various cache organizations while performing matrix transpose operations, where spatial locality is not ideal. You will use test the cache operations using the program given below:

Consider the following transpose routine:

typedef int array [16][16];

void transpose1 (array dst, array src) {

int i, j;

for(i=0; i<16; i++) {

for (j=0; j<16; j++ ) { dst[j][i] = src[i][j];

} }

}

Assume that this code runs on a machine with the following properties:

• sizeof(int) == 4

• The src array starts at address 0 and the dst array starts at address 1024 (0x400)

• There is a single L1 cache that is direct-mapped, write-through, write-allocate, with a block size

of 16 bytes.

• The cache has a total size of 64 data bytes and is initially empty.

• Accesses to the src and dst arrays are the only sources of read and write misses.

For each row and column, indicate whether the access to src[row][col] and dst[row][col] is a hit (h) or a miss(m). Reading src[0][0] is a miss and writing dst[0][0] is also a miss.

1. Generate a cache simulator program in c, to which addresses are passed, that determines whether an access of the address results in a cache hit or miss.

2. Your program must include a capability to vary the cache and block sizes. Your code will use bit operations to determine the set number and block offsets. Your cache implementation will need to store tag information and time of use information.

3. Your initial tests will use a cache size of 128 data bytes and a block size of 16 bytes.

4. You will test direct mapped, two-way set associative, and four-way set associative cache configurations using the matrix transpose operation. (You will use an LRU replacement strategy.)

5. Your cache will be write-through and write-allocate and the src and dst arrays are the only sources of read and write misses, respectively.

Kemahiran: Pengaturcaraan C++, Pengaturcaraan C, Pengaturcaraan C#, Kejuruteraan Perisian

Lihat lagi: battleship hit miss program, c program to show encryption and attacking, convert open source command-line c++ program to pure java, convert open source commandline c program to pure java, i need existing source code for a job portal to be delivered in 1-2 days, i need to hire 2 freelancer for data entry work, port opensource command-line c++ program to pure java, port opensource commandline c program to pure java, wordpress css work 1-2 hours, write a c program to accept 10 or more numbers then display the numbers in two columns one column with the numbers as they were , write a c++ program to accept 10 or more numbers then: display the numbers in two columns: one column with the numbers as they w, 1 2 day energetic disciplined independent telesales person needed to phone from home till jan 2016 brackenfell, data entry back office 1 2 years uae work, https scribie com freelance transcription rc 1 b 1 5 1 2 8 0 eb 5 0 e 8 0 0 1 d 3 8 fa 2 cd 6 bf 5 3 e 0 2 eb 1 2 0 c 8, c# programming from problem analysis to program design, c# programming from problem analysis to program design pdf, c program to find union of two sets, c program to implement binary search, parse error syntax error unexpected ouverte t_string in c program files easyphp devserver 14.1 vc9 data localweb dossier1 fichie, C program work

Tentang Majikan:
( 1 ulasan ) ALBUQUERQUE, United States

ID Projek: #22434600

Dianugerahkan kepada:

chomsengdev

Hi, How are you? I have read your project description and I am interested in the project. As you can see my profile, I am a full-time developer and have just completed many projects. Specially, I have wide experien Lagi

$30 USD dalam 2 hari
(8 Ulasan)
5.2

4 pekerja bebas membida secara purata $87 untuk pekerjaan ini

progcgstar

HI. As a c/c++ expert, I believe I can finish your project perfectly. Please let me know your deadline and budget. Thanks!

$150 USD dalam 7 hari
(75 Ulasan)
6.6
aeljack

Dear I read your project description and I am very interested in your project. ❤️Thanks for giving me the opportunity to bind on your project.❤️ Have a strong background on OS, Kernel, Shceduling, C++, Compiler, dat Lagi

$70 USD dalam sehari
(4 Ulasan)
3.5
bojanalmei

⭐⭐⭐C program to work⭐⭐⭐ I have rich experiences in C program to work. Please check this URL. [login to view URL] [login to view URL] Let's discuss more details. Thanks.

$99 USD dalam sehari
(0 Ulasan)
0.0