https://github.com/vic-lsh/py-addr-processor
Computer Systems Organization: Scripts that processes Virtual Address and Address in Cache
https://github.com/vic-lsh/py-addr-processor
Last synced: 2 months ago
JSON representation
Computer Systems Organization: Scripts that processes Virtual Address and Address in Cache
- Host: GitHub
- URL: https://github.com/vic-lsh/py-addr-processor
- Owner: vic-lsh
- Created: 2018-12-09T15:48:06.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-23T15:29:04.000Z (almost 6 years ago)
- Last Synced: 2025-01-25T13:07:35.254Z (4 months ago)
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Address Processors
This repo contains files that processes Virtual Addresses and Cache Addresses.
## Getting started
- Install [Python 3](https://www.python.org/downloads/) on your machine
- Run script
- For virtual address processing, run `python3 vir_addr_processor.py` in your terminal
- For cache processing, run `python3 cache_addr_processor.py` in your terminal
- Follow input prompts on your terminal## Known issues
1. There may be processing errors if your hex address starts with 0
2. Every input other than the address should be a power of 2 (Input validation not implemented yet)## Documentation
#### Cache Address Processor
| **Input** | **Output** |
| --- | --- |
| Address (hex)
Number of blocks in cache
Block size
Associativity (n-way)| Address Tag (bin, hex)
Address Index (bin, hex)
Address Offset (bin, hex)|#### Virtual Address Processor
| **Input** | **Output** |
| --- | --- |
| Address (hex)
Page size
| Virtual Page Number (hex, bin)
Virtual Page Offset (hex, bin)|