https://github.com/aakashks/tlb-simulation
Simulating TLB and its interfacing with Page Table (Virtual memory concepts)
https://github.com/aakashks/tlb-simulation
cpp lru-cache tlb tlb-simulator
Last synced: about 2 months ago
JSON representation
Simulating TLB and its interfacing with Page Table (Virtual memory concepts)
- Host: GitHub
- URL: https://github.com/aakashks/tlb-simulation
- Owner: aakashks
- Created: 2023-10-14T08:32:09.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-26T20:44:37.000Z (over 1 year ago)
- Last Synced: 2025-04-27T03:37:11.657Z (about 2 months ago)
- Topics: cpp, lru-cache, tlb, tlb-simulator
- Language: C++
- Homepage:
- Size: 236 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Virtual Memory - TLB Simulation
Part of **ECN 207- Computer Architecture and Organization** course
Simulates LRU policy TLB in C++
Detailed problem statement is in [question.md](question.md)
## How to run
run test.sh (assuming gcc compiler is installed)
## What is TLB?
TLB stands for Translation Lookaside Buffer. It is a cache which is needed for virtual memory.
- stores the recent translations of virtual page numbers to physical page numbers
- used to reduce the time taken to access the physical memory
- if the mapping is not found in TLB, then it is searched in the page table
- it is a small cache, so it is faster than page table## Some abbreviations used in the code
- TLB - Translation Lookaside Buffer
- VPN - Virtual Page Number
- PFN - Physical Frame Number
- LRU - Least Recently Used## References
- [wikipedia](https://en.wikipedia.org/wiki/Translation_lookaside_buffer)