def body(self): req = ubus_transfer() req.data.append(self.data0) req.addr = self.start_addr req.size = 1 req.error_pos = 1000 req.read_write = WRITE req.transmit_delay = self.transmit_delay yield uvm_do_with(self, req, {}) # { req.addr == start_addr # req.read_write == WRITE # req.size == 1 # req.data[0] == data0 # req.error_pos == 1000 # req.transmit_delay == transmit_del; } ) uvm_info( self.get_type_name(), sv.sformatf("%s wrote : addr = `x%0h, data[0] = `x%0h", self.get_sequence_path(), req.addr, req.data[0]), UVM_HIGH)
def __init__(self, name="ubus_base_seq"): UVMSequence.__init__(self, name) self.set_automatic_phase_objection(1) self.req = ubus_transfer() self.rsp = ubus_transfer()