CohereSim: A Bus-based Cache Simulator  v3.3
A tool for education in computing - learn about coherence protocols, replacement policies, and SMP vs DSM
Enumerations
interactive_mode_replacer.cc File Reference

Implementation of the InteractiveModeReplacer class. More...

#include "replacement_policy.h"
#include "interactive_mode_replacer.h"
Include dependency graph for interactive_mode_replacer.cc:

Enumerations

enum  col_width_e {
  COL_WIDTH_OP = 2 , COL_WIDTH_EVENT = 16 , COL_WIDTH_SOURCE = 11 , COL_WIDTH_STATES = 3 * N_INTERACTIVE_MODE_LINES - 1 ,
  COL_WIDTH_ACCESS = 8 , COL_WIDTH_VICTIM = 6 , COL_WIDTH_TAGS = 2 * N_INTERACTIVE_MODE_LINES - 1 , COL_WIDTH_REP_STATE = 15
}
 Table column widths. More...
 

Detailed Description

Implementation of the InteractiveModeReplacer class.

Enumeration Type Documentation

◆ col_width_e

Table column widths.

Enumerator
COL_WIDTH_OP 

Operations have one letter and one digit.

COL_WIDTH_EVENT 

String length of the longest bus event name + 2.

COL_WIDTH_SOURCE 

String length of "Main Memory" or "Data Source".

COL_WIDTH_STATES 

Space for the states of all caches.

COL_WIDTH_ACCESS 

String length of the word "Accessed".

COL_WIDTH_VICTIM 

String length of the word "Victim".

COL_WIDTH_TAGS 

Space for the tags of all caches.

COL_WIDTH_REP_STATE 

String length of the words "Replacer State" + 1.