cachesim [OPTIONS] <trace_file>
| Option |
Description |
-h, --help |
Show help message and exit |
-v, --version |
Show version information |
--verbose |
Enable verbose output |
--no-color |
Disable colored output |
| Option |
Description |
-c, --config <file> |
Specify configuration file (JSON format) |
| Option |
Description |
--victim-cache |
Enable victim cache |
-p, --parallel [threads] |
Enable parallel processing (optional thread count) |
| Option |
Description |
--vis, --visualize |
Visualize cache behavior |
--charts |
Show statistical charts |
-e, --export [file] |
Export results to CSV file |
| Option |
Description |
-b, --benchmark |
Run performance benchmark |
| Option |
Description |
--power |
Enable power and energy analysis |
--tech-node <nm> |
Specify technology node (7, 14, 22, 32, 45). Default: 45nm |
cachesim --config advanced.json --victim-cache --parallel 4 trace.txt
cachesim --visualize --charts --export results.csv trace.txt
cachesim --benchmark --parallel trace.txt
# Enable power analysis with default 45nm technology
cachesim --power trace.txt
# Use 7nm technology node
cachesim --power --tech-node 7 trace.txt
When no configuration file is specified:
- Block Size: 64 bytes
- L1 Cache: 32KB, 4-way associative
- L2 Cache: 256KB, 8-way associative
- Replacement Policy: LRU
- Prefetching: Enabled (distance=4)
# Comments start with #
R 0x1000 # Read from address 0x1000
W 0x1004 # Write to address 0x1004
{
"accesses": [
{"address": "0x1000", "type": "read"},
{"address": "0x1004", "type": "write"}
]
}
| Code |
Description |
| 0 |
Success |
| 1 |
Invalid arguments or configuration |
| 2 |
File not found or I/O error |
| 3 |
Simulation error |