tum-ei-eda / etiss

Extendable Translating Instruction Set Simulator
https://tum-ei-eda.github.io/etiss/
Other
29 stars 36 forks source link

bare_etiss_processor: replace hardcoded memory properties #60

Closed PhilippvK closed 3 years ago

PhilippvK commented 3 years ago
  1. get_metrics.py determines RAM_START, RAM_SIZE and STACK_SIZE by parsing the ELF file instead of using constants
  2. main.cpp uses the pre-processor variables ROM_START, ROM_SIZE, RAM_START and RAM_SIZE instead of hardcoded 0x0, 0x80000, 0x80000, 0x80000 which can be overwrite with CMake variables when building bare_etiss_processor.

This allows to change the aforementioned properties without needing to patch files manually and also ensures that the exported memory reports are based on the actual values.