tum-ei-eda / M2-ISA-R

CoreDSL2 Parser with backend to generate simulation code for the ETISS instruction set simulator
https://tum-ei-eda.github.io/M2-ISA-R/
Apache License 2.0
6 stars 6 forks source link

See #1 and delete existing architecture dirs before creating new files #2

Closed fpedd closed 3 years ago

fpedd commented 3 years ago
  1. See #1 for the changes to README.md.
  2. Convert a print to a logger warning call in order to stay consistent.
  3. When creating a new architecture while already having an existing architecture (possibly created sometime before) existing files will be left untouched. This might lead to a mixture of architecture versions, e.g. when first calling M2-ISA-R with the -s flag, followed by a call without it. The separate .cpp files for each instruction set will be left untouched which is undesirable. This PR uses the shutil to guarantee a fresh and up-to-date architecture every time the M2-ISA-R backend is run. (One could also make this behaviour optional by introducing a new flag, for example -c, --clean or -d, --delete.)