hdl: remove deprecated Sample, Past, Stable, Rose, Fell.
This commit is contained in:
parent
475b0f35dd
commit
750cbbc3c7
13 changed files with 23 additions and 328 deletions
|
|
@ -398,12 +398,6 @@ class _ValueCompiler(xfrm.ValueVisitor):
|
|||
def on_ResetSignal(self, value):
|
||||
raise NotImplementedError # :nocov:
|
||||
|
||||
def on_Sample(self, value):
|
||||
raise NotImplementedError # :nocov:
|
||||
|
||||
def on_Initial(self, value):
|
||||
raise NotImplementedError # :nocov:
|
||||
|
||||
def on_Cat(self, value):
|
||||
return "{{ {} }}".format(" ".join(reversed([self(o) for o in value.parts])))
|
||||
|
||||
|
|
@ -498,6 +492,13 @@ class _RHSValueCompiler(_ValueCompiler):
|
|||
self.s.anys[value] = res
|
||||
return res
|
||||
|
||||
def on_Initial(self, value):
|
||||
res = self.s.rtlil.wire(width=1, src=_src(value.src_loc))
|
||||
self.s.rtlil.cell("$initstate", ports={
|
||||
"\\Y": res,
|
||||
}, src=_src(value.src_loc))
|
||||
return res
|
||||
|
||||
def on_Signal(self, value):
|
||||
wire_curr, wire_next = self.s.resolve(value)
|
||||
return wire_curr
|
||||
|
|
@ -646,6 +647,9 @@ class _LHSValueCompiler(_ValueCompiler):
|
|||
def on_AnySeq(self, value):
|
||||
raise TypeError # :nocov:
|
||||
|
||||
def on_Initial(self, value):
|
||||
raise TypeError # :nocov:
|
||||
|
||||
def on_Operator(self, value):
|
||||
if value.operator in ("u", "s"):
|
||||
# These operators are transparent on the LHS.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue