# UVM Agent connect phase error connecting driver to sequencer

**URL:** <https://verificationacademy.com/forums/t/uvm-agent-connect-phase-error-connecting-driver-to-sequencer/32090>\
**Category:** UVM\
**Tags:** Sequencer-to-Driver, UVM, agent, Connect\_Phase\
**Created:** [July 28, 2016, 10:11am UTC](https://verificationacademy.com/forums/t/uvm-agent-connect-phase-error-connecting-driver-to-sequencer/32090 "2016-07-28T10:11:24Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![cgales](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/c/ccd318/32.png) [@cgales](https://verificationacademy.com/forums/u/cgales)\
**Post date:** [July 28, 2016, 12:18pm UTC](https://verificationacademy.com/forums/t/uvm-agent-connect-phase-error-connecting-driver-to-sequencer/32090/6 "2016-07-28T12:18:39Z")

</div>

_In reply to [khnabeel](https://verificationacademy.com/forums/t/uvm-agent-connect-phase-error-connecting-driver-to-sequencer/32090/5):_

No. After you create the configuration object, you need to call randomize():

```verilog

  m_cfg = i2c_master_configuration::type_id::create("m_cfg",this); //Constructing configuration using factory method
  if (!m_cfg.randomize()) `uvm_fatal("RNDERR", "Unable to randomize() configuration object");
  uvm_config_db#(i2c_master_configuration)::set(null, {get_full_name(), ".i2c_sqr"}, "m_cfg", m_cfg); //putting cfg object in config db so sequences can use it

```

---

_[View the full topic](https://verificationacademy.com/forums/t/uvm-agent-connect-phase-error-connecting-driver-to-sequencer/32090)._
