Skip to content

naglalakk/Memory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory

Playing around with virtual memory translation

To build:

git clone https://github.com/enkitosh/Memory.git
cd Memory
make clean && make

Usage:

./memory [-virtual/physical] [-page size] [-set-associative] [-bits]

Example:

./memory virtual 4096 4 20

or:

./memory physical 4096 4 16

The program simply shows which fields would be used to determine the following:

Virtual/
VPO  : The virtual page offset
VPN  : The virtual page number
TLBI : The TLB index
TLBT : The TLB tag

Physical/
PPO  : The physical page offset
PPN  : The physical page number

Your output should then look something like this:

Memory table

Todo:

Show translation between virtual and physical addresses

sleep......

About

Playing around with virtual memory translation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages