예제 #1
0
 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)
예제 #2
0
 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()