Skip to content

Commit

Permalink
Removing _AssignmentResult from cocotb-bus and it has been removed fr…
Browse files Browse the repository at this point in the history
…om cocotb, #70 (#77)
  • Loading branch information
davekeeshan authored Jul 18, 2024
1 parent 0c99b54 commit 7962b53
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/cocotb_bus/bus.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"""Common bus related functionality.
A bus is simply defined as a collection of signals.
"""
from cocotb.handle import _AssignmentResult

def _build_sig_attr_dict(signals):
if isinstance(signals, dict):
Expand Down Expand Up @@ -174,8 +173,3 @@ def sample(self, obj, strict=False):
getattr(obj, attr_name).set_binstr(hdl.value.get_binstr())
except AttributeError:
setattr(obj, attr_name, hdl.value)

def __le__(self, value):
"""Overload the less than or equal to operator for value assignment"""
self.drive(value)
return _AssignmentResult(self, value)

0 comments on commit 7962b53

Please sign in to comment.