self.last = Signal(width)
self.next = Signal(width)
- ###
+ # # #
def _optimize_eq(l):
"""
self.value = Signal(self.width)
self.error = Signal()
- ###
+ # # #
self.submodules.engine = CRCEngine(dat_width, self.width, self.polynom)
reg = Signal(self.width, reset=self.init)
self.source = source = Source(layout)
self.busy = Signal()
- ###
+ # # #
dw = flen(sink.d)
crc = crc_class(dw)
self.source = source = Source(layout)
self.busy = Signal()
- ###
+ # # #
dw = flen(sink.d)
crc = crc_class(dw)
tb = TB()
run_simulation(tb, ncycles=8000, vcd_name="tb_phy.vcd")
- ###
- #print(tb.user.rd_data)
- #print(tb.model.wr_data)
- #print(len(tb.user.rd_data))
- #print(len(tb.model.wr_data))
+ # print(tb.user.rd_data)
+ # print(tb.model.wr_data)
+ # print(len(tb.user.rd_data))
+ # print(len(tb.model.wr_data))
print_results("F2232HModel --> UserModel", model_rd_data, tb.user.rd_data)
print_results("UserModel --> FT2232HModel", user_wr_data, tb.model.wr_data)