The codegen.py is missing from upstream tarball, but needed in some cases.
https://groups.google.com/a/icl.utk.edu/g/magma-user/c/48rmVPJk6x4

https://github.com/icl-utk-edu/magma/raw/refs/tags/v2.9.0/tools/codegen.py
https://github.com/icl-utk-edu/magma/raw/refs/tags/v2.9.0/tools/magmasubs.py
