# Connection between Reference Model and Scoreboard

**URL:** <https://verificationacademy.com/forums/t/connection-between-reference-model-and-scoreboard/41831>\
**Category:** UVM\
**Tags:** UVM, reference-model, scoreboard\
**Created:** [June 17, 2023, 8:29pm UTC](https://verificationacademy.com/forums/t/connection-between-reference-model-and-scoreboard/41831 "2023-06-17T20:29:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yeptho](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/y/779978/32.png) [@Yeptho](https://verificationacademy.com/forums/u/Yeptho)\
**Post date:** [June 17, 2023, 8:29pm UTC](https://verificationacademy.com/forums/t/connection-between-reference-model-and-scoreboard/41831/1 "2023-06-17T20:29:25Z")

</div>

Hi,  
I have UVM Testbench and in UVM Environment I have instantiate and create scoreboard and reference model class.  
I wanted to bring the output of reference model to scoreboard in order to do the comparison with DUT output.  
Is it advisable to to declare the output signals of reference model in the interface and in the scoreboard get the interface and do the compare?  
Please suggest me the recommended approach.  
Thanks.

---

<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:** [June 18, 2023, 6:20pm UTC](https://verificationacademy.com/forums/t/connection-between-reference-model-and-scoreboard/41831/2 "2023-06-18T18:20:04Z")

</div>

_In reply to [Yeptho](https://verificationacademy.com/forums/t/connection-between-reference-model-and-scoreboard/41831):_

If your reference model is class based, there is no need to put it into a SystemVerilog interface. You can put it as a component inside the scoreboard or a component in front of the scoreboard. See [Predictors | Verification Academy](https://verificationacademy.com/cookbook/predictors)

---

<div class="post-metadata">

**Author:** ![Yeptho](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/y/779978/32.png) [@Yeptho](https://verificationacademy.com/forums/u/Yeptho)\
**Post date:** [June 19, 2023, 4:55am UTC](https://verificationacademy.com/forums/t/connection-between-reference-model-and-scoreboard/41831/3 "2023-06-19T04:55:02Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/connection-between-reference-model-and-scoreboard/41831/2):_

Thank you dave.  
by the way, indeed my reference model is a class based and it is extended from uvm\_component.  
I presume your statement “component inside the scoreboard” meaning instantiate reference model inside the scoreboard where Hierarchal wise scoreboard will be the parent for reference class?  
If that is so, from the scoreboard write function, do I need to feed inputs data to reference model?

---

<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:** [June 19, 2023, 2:30pm UTC](https://verificationacademy.com/forums/t/connection-between-reference-model-and-scoreboard/41831/4 "2023-06-19T14:30:29Z")

</div>

_In reply to [Yeptho](https://verificationacademy.com/forums/t/connection-between-reference-model-and-scoreboard/41831/3):_

Correct. Check the [link](https://verificationacademy.com/cookbook/predictors) I gave you.
