Question: 3. For the heterogeneous memory below, the first table is the number of reads and writes for different data or variable in the program. The

3. For the heterogeneous memory below, the first table is the number of reads and writes for different data or variable in the program. The second table is the cost of different memory operations. There are 4 MRAM, 2 SRAM and 1 Main memory. All data are in the Main memory at the beginning. Please use dynamic programming to find the minimal memory cost while finish the program. (40 points). Also, please list the corresponding memory assignment for each data (10 points) Data reads writes A 101 B 8 2 C7 D5 E 3 5 F Operation SRAM MRAM Main Read 340 Write 1 40 SRAM 0 5 Move MRAM 4 0 Main 45 50 5 30 3. For the heterogeneous memory below, the first table is the number of reads and writes for different data or variable in the program. The second table is the cost of different memory operations. There are 4 MRAM, 2 SRAM and 1 Main memory. All data are in the Main memory at the beginning. Please use dynamic programming to find the minimal memory cost while finish the program. (40 points). Also, please list the corresponding memory assignment for each data (10 points) Data reads writes A 101 B 8 2 C7 D5 E 3 5 F Operation SRAM MRAM Main Read 340 Write 1 40 SRAM 0 5 Move MRAM 4 0 Main 45 50 5 30
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
