mirror of https://github.com/YosysHQ/yosys.git
Escape scope names starting with dollar sign in smtio.py
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
parent
3d4102cfa4
commit
b3c36b4448
|
@ -1043,7 +1043,10 @@ class MkVcd:
|
||||||
scope = scope[:-1]
|
scope = scope[:-1]
|
||||||
|
|
||||||
while uipath[:-1] != scope:
|
while uipath[:-1] != scope:
|
||||||
print("$scope module %s $end" % uipath[len(scope)], file=self.f)
|
scopename = uipath[len(scope)]
|
||||||
|
if scopename.startswith("$"):
|
||||||
|
scopename = "\\" + scopename
|
||||||
|
print("$scope module %s $end" % scopename, file=self.f)
|
||||||
scope.append(uipath[len(scope)])
|
scope.append(uipath[len(scope)])
|
||||||
|
|
||||||
if path in self.clocks and self.clocks[path][1] == "event":
|
if path in self.clocks and self.clocks[path][1] == "event":
|
||||||
|
|
Loading…
Reference in New Issue