diff options
author | Tristan Gingold <tgingold@free.fr> | 2020-09-14 20:49:31 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2020-09-14 20:49:31 +0200 |
commit | c08088745ad48841bb0dccd634d5b767d40b7e73 (patch) | |
tree | 59b93107c10d1a243434893cb470e31292bc84da /python/xtools | |
parent | e6acce83994a1a00fe148f70f29a61f646422826 (diff) | |
download | ghdl-c08088745ad48841bb0dccd634d5b767d40b7e73.tar.gz ghdl-c08088745ad48841bb0dccd634d5b767d40b7e73.tar.bz2 ghdl-c08088745ad48841bb0dccd634d5b767d40b7e73.zip |
vhdl: recognize reduce operations from numeric_std.
Handle them in synthesis.
Diffstat (limited to 'python/xtools')
-rwxr-xr-x | python/xtools/pnodespy.py | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/python/xtools/pnodespy.py b/python/xtools/pnodespy.py index d3ac4e284..65a956ca0 100755 --- a/python/xtools/pnodespy.py +++ b/python/xtools/pnodespy.py @@ -21,20 +21,14 @@ def print_enum(name, vals): def do_class_kinds(): print_enum(pnodes.prefix_name.rstrip("_"), pnodes.kinds) - print() print() print("class Iir_Kinds:") for k, v in pnodes.kinds_ranges.items(): print(" {0} = [".format(k)) - first = True for e in v: - if first: - first = False - else: - print(",") - print(" Iir_Kind.{}".format(e), end="") - print("]") + print(" Iir_Kind.{},".format(e)) + print(" ]") print() @@ -174,7 +168,6 @@ def do_libghdl_meta(): print( """ - # From nodes_meta get_fields_first = libghdl.vhdl__nodes_meta__get_fields_first @@ -244,11 +237,8 @@ def do_libghdl_tokens(): def do_libghdl_errorout(): print("from libghdl import libghdl") - print( - """ -Enable_Warning = libghdl.errorout__enable_warning -""" - ) + print("\n" + "Enable_Warning = libghdl.errorout__enable_warning") read_enum( "../errorout.ads", "Msgid_Type", |