Skip to content

akhaku/mesi-cache-coherence

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cache coherence

A simple implementation of the MESI cache coherence algorithm, written in Javascript. Inspired by [https://software.rajivprab.com/2018/04/29/myths-programmers-believe-about-cpu-caches/]. Also see Wikipedia's entry on the MESI protocol.

If I've made a mistake with the protocol implementation, please let me know.

The default cache line size is 64 bytes. Currently only reading and writing single 1 byte words is supported. Misaligned reads are not supported.

See test/test.js for some examples.

About

An implementation of a simple cache coherence algorithm, inspired by https://software.rajivprab.com/2018/04/29/myths-programmers-believe-about-cpu-caches/

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published