From: whitequark Date: Thu, 13 Dec 2018 11:30:16 +0000 (+0000) Subject: back.rtlil: never give subfragment cells names starting with $. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a3ff4247c42e249de7b6dec8a4fb5c319f3d9ce;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