# Clk enable

**URL:** <https://verificationacademy.com/forums/t/clk-enable/35152>\
**Category:** UVM\
**Tags:** UVM, clock, uvm\_fatal\
**Created:** [October 9, 2018, 7:50am UTC](https://verificationacademy.com/forums/t/clk-enable/35152 "2018-10-09T07:50:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![saraTelzer](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/bbce88/32.png) [@saraTelzer](https://verificationacademy.com/forums/u/saraTelzer)\
**Post date:** [October 9, 2018, 7:50am UTC](https://verificationacademy.com/forums/t/clk-enable/35152/1 "2018-10-09T07:50:29Z")

</div>

Hi

I added enable to clock in testbench

```verilog
 initial begin//{
      forever
        begin//{
        if(spir180_interfaces_i.spi_sigs.spi_ce==1)begin//{
          @(negedge spir180_interfaces_i.spi_sigs.spi_ce)begin//{
              repeat (`SPI_START_CLK_ACTIVE)@ (posedge tb_clk);
              clk_en =1;
          end//}
        end//}
        else if(spir180_interfaces_i.spi_sigs.spi_ce==0)begin//{
           @(posedge spir180_interfaces_i.spi_sigs.spi_ce)begin//{
              repeat (`SPI_START_CLK_DECTIVE + 6 )@ (posedge tb_clk);
              clk_en =0;
          end//}
        end//}
        else 
        @ (posedge tb_clk);
      end//}
   end//}

```

my test failed on :  
UVM\_FATAL 10500000.0ns /tools/accellera/uvm-1.1d/src/base/uvm\_phase.svh (1268) reporter|PH\_TIMEOUT: Explicit timeout of 10500000.0ns hit, indicating a probable testbench issue

what is the problem?  
Thanks, in advance

---

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [October 9, 2018, 9:11am UTC](https://verificationacademy.com/forums/t/clk-enable/35152/2 "2018-10-09T09:11:56Z")

</div>

_In reply to [saraTel](https://verificationacademy.com/forums/t/clk-enable/35152):_

Good question, but no answer possible without seeing more code.
