diff options
| author | Schuyler Eldridge | 2018-09-27 13:13:29 -0400 |
|---|---|---|
| committer | Schuyler Eldridge | 2018-10-03 14:47:54 -0400 |
| commit | ff8bd4ec527c6b87cddfe6ee746f7299f426aa30 (patch) | |
| tree | 917511c947e2f182ee81dd1c1ec44e30de17ae1f /scripts | |
| parent | 5fdd0b5a96a589b50e15fb8c3e7045bc32ceb21f (diff) | |
Inlining uses "_", respects namespaces
Summary of changes:
- Use "_" as an inlining delimiter instead of "$"
- Makes inlining avoid namespace conflicts
This changes the delimiter used for inlining to "_" instead of "$". This
avoids problems with buggy parsers that may not handle "$" correctly. As
ClockListTransform relies on the explicit use of "$", the delimiter is a
FIRRTL-private val that the ClockListTransform overrides (to the original
"$").
Namespace conflicts could occur previously, but are very rare as users
will almost never use "$" in a name (even though it's allowed by both the
FIRRTL and Verilog specifications). Moving to "_" increases the
probability of namespace conflicts occurring. This adds explicit checking
that inlined names will not introduce namespace conflicts and that
generated names are prefix unique (as defined in the spec).
Note: inlined modules may not have unique prefixes. A test is included
that this is the case and an ignored test shows what prefix uniqueness
would look like.
MISC:
- [skip chisel tests]: Changing the delimiter causes the Chisel
InlineSpec to fail as this explicitly checks for "$".
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
