X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fsoc%2Fdebug%2Fdmi.py;fp=src%2Fsoc%2Fdebug%2Fdmi.py;h=39ea799b4da63acddc2081818c2eb0e853327968;hb=2f5feeceae2f50db56ea8cc52c2d91e59fc97bec;hp=5875813cd4ade09ed0e7562f666b87d0061f954d;hpb=6991f59619cefd42260ace8133d1bd2eda3ea4ba;p=soc.git diff --git a/src/soc/debug/dmi.py b/src/soc/debug/dmi.py index 5875813c..39ea799b 100644 --- a/src/soc/debug/dmi.py +++ b/src/soc/debug/dmi.py @@ -61,6 +61,14 @@ class DMIInterface(RecordObject): self.we_i = Signal() # DMI write-enable self.ack_o = Signal() # DMI ack request + def connect_to(self, other): + return [self.addr_i.eq(other.addr_i), + self.req_i.eq(other.req_i), + self.we_i.eq(other.we_i), + self.din.eq(other.din), + other.ack_o.eq(self.ack_o), + other.dout.eq(self.dout), + ] class DbgReg(RecordObject): def __init__(self, name):