ast: Use better parameter serialization for paramod names.
authorMarcelina Kościelnicka <mwk@0x04.net>
Wed, 17 Mar 2021 17:30:49 +0000 (18:30 +0100)
committerMarcelina Kościelnicka <mwk@0x04.net>
Wed, 17 Mar 2021 23:52:00 +0000 (00:52 +0100)
commit8740fdf1d799fd8a3196bac28fe4e418e74f2acc
tree67442cc8304dff1a5536846fe34f9a2a10bdacc0
parentcae905f55128a77e8d2eecc75d861292d79baa79
ast: Use better parameter serialization for paramod names.

Calling log_signal is problematic for several reasons:

- with recent changes, empty string is serialized as { }, which violates
  the "no spaces in IdString" rule
- the type (plain / real / signed / string) is dropped, wrongly conflating
  functionally different values and potentially introducing a subtle
  elaboration bug

Instead, use a custom simple serialization scheme.
frontends/ast/ast.cc
tests/arch/xilinx/abc9_dff.ys