From: whitequark Date: Thu, 13 Dec 2018 11:30:16 +0000 (+0000) Subject: back.rtlil: never give subfragment cells names starting with $. X-Git-Tag: working~297 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=859c2dbcf096b17a82fc0d4dc766608165cf86e0;p=nmigen.git back.rtlil: never give subfragment cells names starting with $. --- diff --git a/nmigen/back/rtlil.py b/nmigen/back/rtlil.py index 93e2d40..311a053 100644 --- a/nmigen/back/rtlil.py +++ b/nmigen/back/rtlil.py @@ -397,7 +397,7 @@ class _ValueTransformer(xfrm.ValueTransformer): def convert_fragment(builder, fragment, name, top): - with builder.module(name, attrs={"top": 1} if top else {}) as module: + with builder.module(name or "anonymous", attrs={"top": 1} if top else {}) as module: xformer = _ValueTransformer(module) # Register all signals driven in the current fragment. This must be done first, as it