Before this MR, the constants files (and packages) did not have the same comment header as the main RTL files. This MR adds this header for the different output formats/languages. The header can be disabled with --header none, as for the main RTL files.
Changes:
Add comment header to constants files
Group comment header functions, move them to gen_header.py
Add comment support for the constant output languages
Example output for cheby -i testfiles/issue84/sps200CavityControl_as.cheby --gen-consts --consts-style python:
# Do not edit. Generated by cheby 1.6.dev0 using these options:
# -i testfiles/issue84/sps200CavityControl_as.cheby --gen-consts --consts-style python
# Generated on Mon Jul 31 14:21:53 2023 by me
SPS200CAVITYCONTROL_MEMMAP_VERSION = 0x10000
SPS200CAVITYCONTROL_IDENT = 0x53
ADDR_SPS200CAVITYCONTROL_HWINFO = 0x0
Before this MR, the constants files (and packages) did not have the same comment header as the main RTL files. This MR adds this header for the different output formats/languages. The header can be disabled with
--header none
, as for the main RTL files.Changes:
Example output for
cheby -i testfiles/issue84/sps200CavityControl_as.cheby --gen-consts --consts-style python
: