def __init__(self, dut): self.dut = dut self.stream_in = AXI4ST_driver(dut, "stream_in", dut.clk) #self.stream_in.log.setLevel(logging.DEBUG) self.stream_out = AXI4STMonitor(dut, "stream_out", dut.clk, callback=self.print_trans) self.expected_output = [] self.overrideModel = False # temp help to differentiate scapy to other send self.scoreboard = Scoreboard(dut, fail_immediately=False) self.scoreboard.add_interface(self.stream_out, self.expected_output) self.stream_in_recovered = AXI4STMonitor(dut, "stream_in", dut.clk, callback=self.model)
def __init__(self, dut): self.dut = dut self.stream_in = AXI4ST(dut, "stream_in", dut.clk) self.stream_out = AXI4STMonitor(dut, "stream_out", dut.clk, callback=self.print_trans) self.expected_output = [] self.scoreboard = Scoreboard(dut, fail_immediately=True) self.scoreboard.add_interface(self.stream_out, self.expected_output) self.stream_in_recovered = AXI4STMonitor(dut, "stream_in", dut.clk, callback=self.model) self.stream_in_recovered.log.setLevel(30) self.stream_out.log.setLevel(30)
def __init__(self, dut, clkperiod=6.4): self.dut = dut dut._discover_all() # scan all signals on the design dut._log.setLevel(logging.INFO) fork(Clock(dut.clk, clkperiod, 'ns').start()) self.payload_in = AXI4STPKts(dut, "payload_in", dut.clk) self.stream_out = AXI4STMonitor(dut, "packet_out", dut.clk, callback=self.print_trans) self.scoreboard = Scoreboard(dut, fail_immediately=False) self.expected_output = [] self.scoreboard.add_interface(self.stream_out, self.expected_output) self.nb_frame = 0 self.packet = BinaryValue()