#include <dcache.h>
Public Member Functions | |
| Data_Cache () | |
| ~Data_Cache () | |
| Data_Cache (int c, int b, int s, int mhsr, int num_of_msp, int msp_latency) | |
| void | simulate (char rw, unsigned int address, unsigned int current_cycle, unsigned int &future_cycle, int &miss_or_hit) |
| int | find_free_mhsr (unsigned int current_cycle) |
| int | find_this_address (unsigned int address) |
| void | show_cache (FILE *f) |
| void | report (FILE *f) |
| Data_Cache () | |
| ~Data_Cache () | |
| Data_Cache (int c, int b, int s, int mhsr, int num_of_msp, int msp_latency) | |
| void | simulate (char rw, unsigned int address, unsigned int current_cycle, unsigned int &future_cycle, int &miss_or_hit) |
| int | find_free_mhsr (unsigned int current_cycle) |
| int | find_this_address (unsigned int address) |
| void | show_cache (FILE *f) |
| void | report (FILE *f) |
Private Attributes | |
| MHSR * | _mhsr |
| int | _num_of_mhsr |
| int | _num_of_msp |
| int | _msp_latency |
| int | _c |
| int | _b |
| int | _s |
| int | _bytes_in_cache |
| int | _sets_in_cache |
| int | _blocks_in_set |
| int | _bytes_in_block |
| unsigned int * | _tag_array |
| unsigned int * | _time_array |
| char * | _valid_array |
| char * | _dirty_array |
| int * | _mhsr_index_array |
| unsigned int | _reads |
| unsigned int | _writes |
| unsigned int | _reads_in_miss |
| unsigned int | _writes_in_miss |
| unsigned int | _writebacks |
| MHSR * | _mhsr |
| unsigned int * | _tag_array |
| unsigned int * | _time_array |
| char * | _valid_array |
| char * | _dirty_array |
| int * | _mhsr_index_array |
|
|
Definition at line 58 of file include/dcache.h. References _mhsr, and _num_of_mhsr. |
|
|
Definition at line 59 of file include/dcache.h. References _dirty_array, _mhsr, _tag_array, _time_array, and _valid_array. |
|
||||||||||||||||||||||||||||
|
Definition at line 69 of file include/dcache.h. References _b, _blocks_in_set, _bytes_in_block, _bytes_in_cache, _c, _dirty_array, _mhsr, _mhsr_index_array, _msp_latency, _num_of_mhsr, _num_of_msp, _reads, _reads_in_miss, _s, _sets_in_cache, _tag_array, _time_array, _valid_array, _writebacks, _writes, _writes_in_miss, c, exit(), fprintf(), and i. |
|
|
Definition at line 58 of file src/dcache.h. References _mhsr, and _num_of_mhsr. |
|
|
Definition at line 59 of file src/dcache.h. References _dirty_array, _mhsr, _tag_array, _time_array, and _valid_array. |
|
||||||||||||||||||||||||||||
|
Definition at line 69 of file src/dcache.h. References _b, _blocks_in_set, _bytes_in_block, _bytes_in_cache, _c, _dirty_array, _mhsr, _mhsr_index_array, _msp_latency, _num_of_mhsr, _num_of_msp, _reads, _reads_in_miss, _s, _sets_in_cache, _tag_array, _time_array, _valid_array, _writebacks, _writes, _writes_in_miss, c, exit(), fprintf(), and i. |
|
|
|
|
|
Definition at line 254 of file dcache.cpp. References _mhsr, _mhsr_index_array, _num_of_mhsr, MHSR::address(), find_this_address(), i, index(), MHSR::reset(), and MHSR::resolved_cycle(). Referenced by simulate(). |
|
|
|
|
|
Definition at line 293 of file dcache.cpp. References _b, _blocks_in_set, _c, _s, _tag_array, _valid_array, i, and index(). Referenced by find_free_mhsr(). |
|
|
|
|
|
Definition at line 319 of file dcache.cpp. References _reads, _reads_in_miss, _writebacks, _writes, _writes_in_miss, and fprintf(). Referenced by VLIW::output(). |
|
|
|
|
|
Definition at line 312 of file dcache.cpp. References _blocks_in_set, _bytes_in_block, _bytes_in_cache, and fprintf(). Referenced by VLIW::output(). |
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
Definition at line 33 of file dcache.cpp. References _b, _blocks_in_set, _c, _dirty_array, _mhsr, _mhsr_index_array, _reads, _reads_in_miss, _s, _tag_array, _time_array, _valid_array, _writebacks, _writes, _writes_in_miss, D_CACHE_HIT_LATENCY, D_CACHE_MISS_LATENCY, find_free_mhsr(), i, index(), MHSR::resolved_cycle(), MHSR::set_address(), and MHSR::set_resolved_cycle(). Referenced by VLIW::process_pipeline(). |
|
|
Definition at line 127 of file src/dcache.h. Referenced by Data_Cache(), find_this_address(), and simulate(). |
|
|
Definition at line 132 of file src/dcache.h. Referenced by Data_Cache(), find_this_address(), show_cache(), and simulate(). |
|
|
Definition at line 133 of file src/dcache.h. Referenced by Data_Cache(), and show_cache(). |
|
|
Definition at line 130 of file src/dcache.h. Referenced by Data_Cache(), and show_cache(). |
|
|
Definition at line 126 of file src/dcache.h. Referenced by Data_Cache(), find_this_address(), and simulate(). |
|
|
Definition at line 138 of file src/dcache.h. |
|
|
Definition at line 138 of file include/dcache.h. Referenced by Data_Cache(), simulate(), and ~Data_Cache(). |
|
|
Definition at line 121 of file src/dcache.h. |
|
|
Definition at line 121 of file include/dcache.h. Referenced by Data_Cache(), find_free_mhsr(), simulate(), and ~Data_Cache(). |
|
|
Definition at line 139 of file src/dcache.h. |
|
|
Definition at line 139 of file include/dcache.h. Referenced by Data_Cache(), find_free_mhsr(), and simulate(). |
|
|
Definition at line 124 of file src/dcache.h. Referenced by Data_Cache(). |
|
|
Definition at line 122 of file src/dcache.h. Referenced by Data_Cache(), and find_free_mhsr(). |
|
|
Definition at line 123 of file src/dcache.h. Referenced by Data_Cache(). |
|
|
Definition at line 141 of file src/dcache.h. Referenced by Data_Cache(), report(), and simulate(). |
|
|
Definition at line 143 of file src/dcache.h. Referenced by Data_Cache(), report(), and simulate(). |
|
|
Definition at line 128 of file src/dcache.h. Referenced by Data_Cache(), find_this_address(), and simulate(). |
|
|
Definition at line 131 of file src/dcache.h. Referenced by Data_Cache(). |
|
|
Definition at line 135 of file src/dcache.h. |
|
|
Definition at line 135 of file include/dcache.h. Referenced by Data_Cache(), find_this_address(), simulate(), and ~Data_Cache(). |
|
|
Definition at line 136 of file src/dcache.h. |
|
|
Definition at line 136 of file include/dcache.h. Referenced by Data_Cache(), simulate(), and ~Data_Cache(). |
|
|
Definition at line 137 of file src/dcache.h. |
|
|
Definition at line 137 of file include/dcache.h. Referenced by Data_Cache(), find_this_address(), simulate(), and ~Data_Cache(). |
|
|
Definition at line 145 of file src/dcache.h. Referenced by Data_Cache(), report(), and simulate(). |
|
|
Definition at line 142 of file src/dcache.h. Referenced by Data_Cache(), report(), and simulate(). |
|
|
Definition at line 144 of file src/dcache.h. Referenced by Data_Cache(), report(), and simulate(). |
1.3.2