From 859c2dbcf096b17a82fc0d4dc766608165cf86e0 Mon Sep 17 00:00:00 2001 From: whitequark Date: Thu, 13 Dec 2018 11:30:16 +0000 Subject: [PATCH] back.rtlil: never give subfragment cells names starting with $. --- nmigen/back/rtlil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2