项目作者: jkeys-ecg-nmsu

项目描述 :
simulation of a multi-core (with an arbitrary number of cores) cache, including set associativity, with simple MSI cache coherency.
高级语言: C
项目地址: git://github.com/jkeys-ecg-nmsu/cache-simulator-with-coherency.git
创建时间: 2017-09-18T22:15:44Z
项目社区:https://github.com/jkeys-ecg-nmsu/cache-simulator-with-coherency

开源协议:MIT License

下载


cache-simulator-with-coherency

This program simulates a multi-core (with an arbitrary number of cores) cache, including set associativity, with simple MSI cache coherency.

Command-line options (formatting for cmd line arguments shamelessly stolen from Prof Jonathan Cook, PhD, NMSU):

  • -b # set the number of words per block (must be a power of 2)
  • -m # set number of cycles per miss (default 2)
  • -n # set number of data words supported in cache (must be a power of 2)
  • -a # set the set-associativity of the cache (must be a power of 2)
  • -c # set the number of cores (each with independent caches that must maintain coherency) (must be a power of 2)
  • -d # enable debugging statements (any non-zero integer)
  • -w ‘T’ set cache writing policy (K==’T’ for write-through or K==’B for write-back)