# TYCMPAT error for UVM config db get method

**URL:** <https://verificationacademy.com/forums/t/tycmpat-error-for-uvm-config-db-get-method/40058>\
**Category:** UVM\
**Tags:** UVM, uvm-config\_db, RAL-UVM\
**Created:** [February 14, 2022, 7:54pm UTC](https://verificationacademy.com/forums/t/tycmpat-error-for-uvm-config-db-get-method/40058 "2022-02-14T19:54:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![verific\_engi](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/v/c5a1d2/32.png) [@verific\_engi](https://verificationacademy.com/forums/u/verific_engi)\
**Post date:** [February 14, 2022, 7:54pm UTC](https://verificationacademy.com/forums/t/tycmpat-error-for-uvm-config-db-get-method/40058/1 "2022-02-14T19:54:25Z")

</div>

Hello

In my TB setup for RAL . I have created a class object ral\_env\_cfg which has instance of reg model and set it in test and then get method in env and get in sequence . It doesn’t throw any error in env but in seq it throws an error as shown

xmvlog: \*E,TYCMPAT formal and actual do not have assignment compatible data types (expecting datatype compatible with ‘class uvm\_pkg::uvm\_component’ but found 'class $unit::cdv\_cdns

config db  
uvm\_config\_db #(ral\_env\_cfg)::set(this,“\*”,“ral\_env\_cfg”,ral\_cfg);

if(!uvm\_config\_db#(ral\_env\_cfg)::get(this,“”,“ral\_env\_cfg”,ral\_cfg))  
`uvm_fatal("config","cannot get() ral_env_cfg. Have you set it ?") else `uvm\_info(“CONFIG WORKING”,1,UVM\_LOW)

I don’t understand what is causing this error. Should I set it again in env ?

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [February 14, 2022, 9:07pm UTC](https://verificationacademy.com/forums/t/tycmpat-error-for-uvm-config-db-get-method/40058/2 "2022-02-14T21:07:41Z")

</div>

_In reply to [verific\_engi](https://verificationacademy.com/forums/t/tycmpat-error-for-uvm-config-db-get-method/40058):_

See [Config/ConfiguringSequences | Verification Academy](https://verificationacademy.com/cookbook/config/configuringsequences)
