hdl.rec: separate record and signal name with __, not _.

This makes names of signals within records less ambiguous, in case
they themselves have underscores within them.
This commit is contained in:
anuejn 2019-03-25 15:26:00 +01:00 committed by whitequark
parent 81ee2db163
commit 3c95299c4e
2 changed files with 4 additions and 4 deletions

View file

@ -72,7 +72,7 @@ class Record(Value):
def concat(a, b):
if a is None:
return b
return "{}_{}".format(a, b)
return "{}__{}".format(a, b)
self.layout = Layout.wrap(layout)
self.fields = OrderedDict()