An open API service indexing awesome lists of open source software.

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

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)|