# Time out for uvvm cmd

**URL:** <https://forum.uvvm.org/t/time-out-for-uvvm-cmd/257>\
**Category:** Bitvis VIP I2C\
**Tags:** uvvm\
**Created:** [December 17, 2021, 1:48pm UTC](https://forum.uvvm.org/t/time-out-for-uvvm-cmd/257 "2021-12-17T13:48:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![switise](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@switise](https://forum.uvvm.org/u/switise)\
**Post date:** [December 17, 2021, 1:48pm UTC](https://forum.uvvm.org/t/time-out-for-uvvm-cmd/257/1 "2021-12-17T13:48:31Z")

</div>

I m trying to verify my DUT that contaning a I2C master and i use I2C\_VCC as slave but i have this error  
Can you help me  
Thanks  
the error:

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/uvvm/original/1X/247f966c4246d4e064ee4e72080d9b6c38f3b8ef.png)

The test sequencer:

```
await_uvvm_initialization(VOID);
start_clock(CLOCK_GENERATOR_VVCT, 1, "Start clock generator");
log(ID_LOG_HDR, "Starting simulation of TB for counter using VVCs", C_SCOPE);
------------------------------------------------------------
log("Wait 10 clock period for reset to be turned off");
wait for (10 * C_CLK_PERIOD); -- for reset to be turned off

```

I2C\_SLAVE\_TRANSMIT(I2C\_VVCT,1, x"55", “sendind data frome vvc master to slave DUT”);  
await\_completion(I2C\_VVCT,1, 1000 \* C\_CLK\_PERIOD);

---

<div class="post-metadata">

**Author:** ![Eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Eric](https://forum.uvvm.org/u/Eric)\
**Post date:** [December 18, 2021, 4:34pm UTC](https://forum.uvvm.org/t/time-out-for-uvvm-cmd/257/2 "2021-12-18T16:34:52Z")

</div>

This seems that your not addressing the VVC.

Check the ID of the I2C\_SLAVE VVC in your test harness.  
From your code

`I2C_SLAVE_TRANSMIT(I2C_VVCT,1 <=====================,....`

I can only see that you are addressing VVC “1”, so make sure that in the th it is also “1”.  
if it is a different number then a timeout will occur

---

<div class="post-metadata">

**Author:** ![switise](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@switise](https://forum.uvvm.org/u/switise)\
**Post date:** [December 18, 2021, 6:48pm UTC](https://forum.uvvm.org/t/time-out-for-uvvm-cmd/257/3 "2021-12-18T18:48:05Z")

</div>

thanks for your response, i re-check i make the good instance in Test harness end test sequencer,

I changed the VVC , i have the same problem,  
Test harness

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/uvvm/original/1X/fbfaeb5a20cbb030cfb6b3243f1613efe209a122.png)  
test sequencer  
 ![image](https://europe1.discourse-cdn.com/flex017/uploads/uvvm/original/1X/373836a751238e02ebb2fcd5b4769a18c3436183.png)

and the simulation is stopped in this procces in methods\_pkg file

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/uvvm/original/1X/d4b169a6abd5a816da37086d5ebd88deb87cd1de.png)  
thanks very much

---

<div class="post-metadata">

**Author:** ![Eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Eric](https://forum.uvvm.org/u/Eric)\
**Post date:** [December 18, 2021, 7:05pm UTC](https://forum.uvvm.org/t/time-out-for-uvvm-cmd/257/4 "2021-12-18T19:05:06Z")

</div>

Use for all your VVC’s a unique number.

In the test harness I have them as generics

```auto
th
GENERIC (
constant C_GPIO_ID_VVC = 1000;
constant C_CLK_ID_VVC = 2000;
constant C_I2C_ID_VVC = 3000;
)
port 
(
...
)

```

I create the numbers in the TB:

```auto
constant C_GPIO_ID_VVC = 1;
constant C_CLK_ID_VVC = 2;
constant C_I2C_ID_VVC = 3;

```

And I pass them on to the test harness

```auto
i_th : work.testharness
generic map
(
C_GPIO_ID_VVC => C_GPIO_ID_VVC,
C_CLK_ID_VVC => C_CLK_ID_VVC,
C_I2C_ID_VVC => C_I2C_ID_VVC

```

…

And then use them in your functions

`gpio_set(GPIO_VVCT, C_GPIO_ID_VVC ,....`

)

---

<div class="post-metadata">

**Author:** ![switise](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@switise](https://forum.uvvm.org/u/switise)\
**Post date:** [December 18, 2021, 7:58pm UTC](https://forum.uvvm.org/t/time-out-for-uvvm-cmd/257/5 "2021-12-18T19:58:15Z")

</div>

i have always the same error, did i shoud set any other generic parameter in bfm\_pkg?

the TH  
 ![image](https://europe1.discourse-cdn.com/flex017/uploads/uvvm/original/1X/f0b93e73caae5ce2452318ae93b2dc43169a8628.png)

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/uvvm/original/1X/84595cd69c71816e093bf6f00e1da6677e0d79bf.png)

TB

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/uvvm/original/1X/9957ffccb5849c5b8bfc12eb0dd68dc565f40f5b.png)

LOG

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/uvvm/original/1X/84b459fd480185b06a3c2bece4f958145ba6d7f5.png)  
i remark here that no problem for CLOCK\_GENERATOR\_VVCT but there is an error for GPIO\_VVCT

---

<div class="post-metadata">

**Author:** ![switise](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@switise](https://forum.uvvm.org/u/switise)\
**Post date:** [December 18, 2021, 7:59pm UTC](https://forum.uvvm.org/t/time-out-for-uvvm-cmd/257/6 "2021-12-18T19:59:50Z")

</div>

TB when i set the constant

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/uvvm/original/1X/95ceadbe228e110d4a8cea5bc552567e792f6f8b.png)

---

<div class="post-metadata">

**Author:** ![switise](https://avatars.discourse-cdn.com/v4/letter/s/f1d935/32.png) [@switise](https://forum.uvvm.org/u/switise)\
**Post date:** [December 18, 2021, 10:04pm UTC](https://forum.uvvm.org/t/time-out-for-uvvm-cmd/257/7 "2021-12-18T22:04:08Z")

</div>

It’s Okay, i resolved the problem, i didn’t well declared the library

---

<div class="post-metadata">

**Author:** ![Eric](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Eric](https://forum.uvvm.org/u/Eric)\
**Post date:** [December 19, 2021, 1:36pm UTC](https://forum.uvvm.org/t/time-out-for-uvvm-cmd/257/8 "2021-12-19T13:36:42Z")

</div>

Ok, good to hear.  
It is even better to declare the unique ID’s in a package and include that package in the TB and in the TH.
