self.cs_n = Signal()
self.dq = Record([("oe", 1), ("o", dw), ("i", dw)])
self.rwds = Record([("oe", 1), ("o", dw//8), ("i", dw//8)])
+ self.dq.o.name = "dq_o"
+ self.dq.i.name = "dq_i"
+ self.dq.oe.name = "dq_oe"
+ self.rwds.o.name = "rwds_o"
+ self.rwds.i.name = "rwds_i"
+ self.rwds.oe.name = "rwds_oe"
+
+ def ports(self):
+ return [self.ck, self.cs, self.dq.o, self.dq.i, self.dq.oe,
+ self.rwds.o, self.rwds.oe]
class HyperRAMPHY(Elaboratable):
return m
def ports(self):
- return [self.ck, self.cs, self.dq_o, self.dq_i, self.dq_oe,
- self.rwds_o, self.rwds_oe]
+ return self.pads.ports()
+
# HyperRAM --------------------------------------------------------------------