def din(self):
return self.w_data
+ # TODO(nmigen-0.2): move this to nmigen.compat and make it a deprecated extension
+ @din.setter
+ @deprecated("instead of `fifo.din = x`, use `fifo.w_data = x`")
+ def din(self, w_data):
+ self.w_data = w_data
+
# TODO(nmigen-0.2): move this to nmigen.compat and make it a deprecated extension
@property
@deprecated("instead of `fifo.writable`, use `fifo.w_rdy`")
def writable(self):
return self.w_rdy
+ # TODO(nmigen-0.2): move this to nmigen.compat and make it a deprecated extension
+ @writable.setter
+ @deprecated("instead of `fifo.writable = x`, use `fifo.w_rdy = x`")
+ def writable(self, w_rdy):
+ self.w_rdy = w_rdy
+
# TODO(nmigen-0.2): move this to nmigen.compat and make it a deprecated extension
@property
@deprecated("instead of `fifo.we`, use `fifo.w_en`")
def we(self):
return self.w_en
+ # TODO(nmigen-0.2): move this to nmigen.compat and make it a deprecated extension
+ @we.setter
+ @deprecated("instead of `fifo.we = x`, use `fifo.w_en = x`")
+ def we(self, w_en):
+ self.w_en = w_en
+
# TODO(nmigen-0.2): move this to nmigen.compat and make it a deprecated extension
@property
@deprecated("instead of `fifo.dout`, use `fifo.r_data`")
def dout(self):
return self.r_data
+ # TODO(nmigen-0.2): move this to nmigen.compat and make it a deprecated extension
+ @dout.setter
+ @deprecated("instead of `fifo.dout = x`, use `fifo.r_data = x`")
+ def dout(self, r_data):
+ self.r_data = r_data
+
# TODO(nmigen-0.2): move this to nmigen.compat and make it a deprecated extension
@property
@deprecated("instead of `fifo.readable`, use `fifo.r_rdy`")
def readable(self):
return self.r_rdy
+ # TODO(nmigen-0.2): move this to nmigen.compat and make it a deprecated extension
+ @readable.setter
+ @deprecated("instead of `fifo.readable = x`, use `fifo.r_rdy = x`")
+ def readable(self, r_rdy):
+ self.r_rdy = r_rdy
+
# TODO(nmigen-0.2): move this to nmigen.compat and make it a deprecated extension
@property
@deprecated("instead of `fifo.re`, use `fifo.r_en`")
def re(self):
return self.r_en
+ # TODO(nmigen-0.2): move this to nmigen.compat and make it a deprecated extension
+ @re.setter
+ @deprecated("instead of `fifo.re = x`, use `fifo.r_en = x`")
+ def re(self, r_en):
+ self.r_en = r_en
+
def _incr(signal, modulo):
if modulo == 2 ** len(signal):