# \#clockingblock

**URL:** https://verificationacademy.com/forums/tag/clockingblock/6795.md

[Latest](https://verificationacademy.com/forums/latest.md) · [Categories](https://verificationacademy.com/forums/categories.md) · [Tags](https://verificationacademy.com/forums/tags.md)

---

## [Can we use arrays in clocking block....?](https://verificationacademy.com/forums/t/can-we-use-arrays-in-clocking-block/42686)

<div class="topic-metadata">

**Author:** [@Harish\_Kasha](https://verificationacademy.com/forums/u/Harish_Kasha)\
**Replies:** 5\
**Last updated:** [October 1, 2024, 7:15am UTC](https://verificationacademy.com/forums/t/can-we-use-arrays-in-clocking-block/42686 "2024-10-01T07:15:12Z")

</div>

Example code: class driver; virtual adder\_if dif; rand bit \[1:0\] a\[2\]; //rand bit \[1:0\] b; function new(virtual adder\_if lif); dif = lif; endfunction task run(); randomize(); dif.a\[0\] =…

---

## [Interface BFM and port direction](https://verificationacademy.com/forums/t/interface-bfm-and-port-direction/42419)

<div class="topic-metadata">

**Author:** [@DefaultName](https://verificationacademy.com/forums/u/DefaultName)\
**Replies:** 1\
**Last updated:** [September 23, 2023, 2:21pm UTC](https://verificationacademy.com/forums/t/interface-bfm-and-port-direction/42419 "2023-09-23T14:21:09Z")

</div>

I’m trying to implement a BFM using an abstract class and a concrete interface. It was assumed that the interface would contain one set of signals for the write (for the driver) and read (for the monitor) methods that th…

---

## [What are clocking blocks?](https://verificationacademy.com/forums/t/what-are-clocking-blocks/40479)

<div class="topic-metadata">

**Author:** [@MichaelP](https://verificationacademy.com/forums/u/MichaelP)\
**Replies:** 3\
**Last updated:** [July 13, 2022, 9:46pm UTC](https://verificationacademy.com/forums/t/what-are-clocking-blocks/40479 "2022-07-13T21:46:49Z")

</div>

Hey VA, I would like to learn what are clocking blocks (cb)? And why do we need them? All the time keep seeing it in code I am using, never did a proper course explaining this construct and it’s purpose. And never wr…

---

## [Generate a 2/3 clock frequency in TB using System Verilog and Verilog](https://verificationacademy.com/forums/t/generate-a-2-3-clock-frequency-in-tb-using-system-verilog-and-verilog/39718)

<div class="topic-metadata">

**Author:** [@sk7799](https://verificationacademy.com/forums/u/sk7799)\
**Replies:** 2\
**Last updated:** [October 20, 2021, 4:57am UTC](https://verificationacademy.com/forums/t/generate-a-2-3-clock-frequency-in-tb-using-system-verilog-and-verilog/39718 "2021-10-20T04:57:41Z")

</div>

Hi, I came across the concept of clock generation and I am trying to understand if I can generate a clock for a let’s say a 2/3 clock divider i.e., 0.66 duty cycle using the system Verilog and Verilog. I would like to u…

---

## [How to wait on a clocking block signal with timeout functionality](https://verificationacademy.com/forums/t/how-to-wait-on-a-clocking-block-signal-with-timeout-functionality/39119)

<div class="topic-metadata">

**Author:** [@RahulkumarBudhwani](https://verificationacademy.com/forums/u/RahulkumarBudhwani)\
**Replies:** 5\
**Last updated:** [May 28, 2021, 6:10pm UTC](https://verificationacademy.com/forums/t/how-to-wait-on-a-clocking-block-signal-with-timeout-functionality/39119 "2021-05-28T18:10:20Z")

</div>

When I have to wait for signal, I usually use statement like @(cb iff signal == condition) However, the issue in such statement is that the if the clocking block keeps waiting then it is harder to trace back. Therefore,…

---

## [Help in finding better way to restructure the code](https://verificationacademy.com/forums/t/help-in-finding-better-way-to-restructure-the-code/39020)

<div class="topic-metadata">

**Author:** [@RahulkumarBudhwani](https://verificationacademy.com/forums/u/RahulkumarBudhwani)\
**Replies:** 3\
**Last updated:** [April 29, 2021, 12:40am UTC](https://verificationacademy.com/forums/t/help-in-finding-better-way-to-restructure-the-code/39020 "2021-04-29T00:40:12Z")

</div>

I have a logic where a semaphore waits for key only if a particular condition is not set and once I gather the key, I release after clocking block statement one cycle later. However, if a condition is set, therefore, it …

---

## [Delay in signals at clocking block hierarchy w.r.t RTL hierarchy in waveform](https://verificationacademy.com/forums/t/delay-in-signals-at-clocking-block-hierarchy-w-r-t-rtl-hierarchy-in-waveform/38840)

<div class="topic-metadata">

**Author:** [@GC](https://verificationacademy.com/forums/u/GC)\
**Replies:** 1\
**Last updated:** [March 28, 2021, 7:18am UTC](https://verificationacademy.com/forums/t/delay-in-signals-at-clocking-block-hierarchy-w-r-t-rtl-hierarchy-in-waveform/38840 "2021-03-28T07:18:47Z")

</div>

There is a testbench env and I am working on some tests, I noticed that in the waveform if I pull a specific signal which is input to rtl from rtl hierarchy and pull the same signal from the driver clocking block, I see …

---

## [Skew in interface block](https://verificationacademy.com/forums/t/skew-in-interface-block/37961)

<div class="topic-metadata">

**Author:** [@RahulkumarBudhwani](https://verificationacademy.com/forums/u/RahulkumarBudhwani)\
**Replies:** 3\
**Last updated:** [August 17, 2020, 11:46pm UTC](https://verificationacademy.com/forums/t/skew-in-interface-block/37961 "2020-08-17T23:46:51Z")

</div>

While doing digital design and STA, we try to ensure that we are sending signal with appropriate setup and hold time. However, when we drive the DUT using clocking blocks in interface and set skep for input and output. T…

---

## [Synchronization problems in uvm\_driver](https://verificationacademy.com/forums/t/synchronization-problems-in-uvm-driver/37481)

<div class="topic-metadata">

**Author:** [@Sustrak](https://verificationacademy.com/forums/u/Sustrak)\
**Replies:** 4\
**Last updated:** [April 27, 2020, 12:00pm UTC](https://verificationacademy.com/forums/t/synchronization-problems-in-uvm-driver/37481 "2020-04-27T12:00:07Z")

</div>

Hi we’re facing to what it seems a synchronization problem when driving the signals on the driver. To put you in context, we have an interface with a clocking block defined like this: clocking cb @(posedge clk); de…

---

## [What is the difference bw @(posedge clk) and @(vif.mod\_port.clocking\_block)?](https://verificationacademy.com/forums/t/what-is-the-difference-bw-posedge-clk-and-vif-mod-port-clocking-block/35637)

<div class="topic-metadata">

**Author:** [@ManojJ](https://verificationacademy.com/forums/u/ManojJ)\
**Replies:** 2\
**Last updated:** [January 23, 2019, 5:19am UTC](https://verificationacademy.com/forums/t/what-is-the-difference-bw-posedge-clk-and-vif-mod-port-clocking-block/35637 "2019-01-23T05:19:29Z")

</div>

I have a written a clocking block as clocking cb\_monitor@(posedge clk); default input #1 output #1; input d; input q; endclocking and the run\_phase at the monitor as virtual task run\_phase(uvm\_phas…
