Skip to content

Commit 4da8adf

Browse files
committed
back.rtlil: remove _SyncBuilder. NFC
Amaranth doesn't emit sync rules for a while since these are private for the Yosys Verilog frontend.
1 parent 572a60d commit 4da8adf

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

amaranth/back/rtlil.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,6 @@ def __exit__(self, *args):
215215
def case(self):
216216
return _CaseBuilder(self, indent=2)
217217

218-
def sync(self, kind, cond=None):
219-
return _SyncBuilder(self, kind, cond)
220-
221218

222219
class _CaseBuilder(_ProxiedBuilder):
223220
def __init__(self, rtlil, indent):
@@ -264,26 +261,6 @@ def case(self, *values, attrs={}, src=""):
264261
return _CaseBuilder(self.rtlil, self.indent + 2)
265262

266263

267-
class _SyncBuilder(_ProxiedBuilder):
268-
def __init__(self, rtlil, kind, cond):
269-
self.rtlil = rtlil
270-
self.kind = kind
271-
self.cond = cond
272-
273-
def __enter__(self):
274-
if self.cond is None:
275-
self._append(" sync {}\n", self.kind)
276-
else:
277-
self._append(" sync {} {}\n", self.kind, self.cond)
278-
return self
279-
280-
def __exit__(self, *args):
281-
pass
282-
283-
def update(self, lhs, rhs):
284-
self._append(" update {} {}\n", lhs, rhs)
285-
286-
287264
def _src(src_loc):
288265
if src_loc is None:
289266
return None

0 commit comments

Comments
 (0)