tgingold-cern / cheby

GNU General Public License v3.0
7 stars 4 forks source link

Add comment header to constants files, move functions to gen_header.py #8

Closed stefanlippuner closed 10 months ago

stefanlippuner commented 11 months ago

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:

# 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
tgingold-cern commented 10 months ago

Thanks!