# \#System-Verilog

**URL:** https://verificationacademy.com/forums/tag/system-verilog/4356.md

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

---

## [Advantage of $future\_gclk over $past in FV](https://verificationacademy.com/forums/t/advantage-of-future-gclk-over-past-in-fv/51643)

<div class="topic-metadata">

**Author:** [@aslubis](https://verificationacademy.com/forums/u/aslubis)\
**Replies:** 0\
**Last updated:** [May 25, 2026, 12:27pm UTC](https://verificationacademy.com/forums/t/advantage-of-future-gclk-over-past-in-fv/51643 "2026-05-25T12:27:15Z")

</div>

Hello, I would like to know if there are any benefits (especially performance wise) of using the $future\_gclk based operators (the ones that look into the very next clock cycle) over $past based ones. I understand that…

---

## [Assertion property to check for toggle count of a signal between two control signals](https://verificationacademy.com/forums/t/assertion-property-to-check-for-toggle-count-of-a-signal-between-two-control-signals/41282)

<div class="topic-metadata">

**Author:** [@rohitk](https://verificationacademy.com/forums/u/rohitk)\
**Replies:** 12\
**Last updated:** [May 6, 2026, 4:59am UTC](https://verificationacademy.com/forums/t/assertion-property-to-check-for-toggle-count-of-a-signal-between-two-control-signals/41282 "2026-05-06T04:59:02Z")

</div>

Hi, I need to write a property to check for a signal valid toggling between req and ack for atleast 10 cycles(not consecutively). The actual number of toggle varies per request so we can not constraint it. I tried follo…

---

## [Need help understanding formal verification of asynchronous FIFO ](https://verificationacademy.com/forums/t/need-help-understanding-formal-verification-of-asynchronous-fifo/51447)

<div class="topic-metadata">

**Author:** [@Anand](https://verificationacademy.com/forums/u/Anand)\
**Replies:** 1\
**Last updated:** [April 15, 2026, 11:41am UTC](https://verificationacademy.com/forums/t/need-help-understanding-formal-verification-of-asynchronous-fifo/51447 "2026-04-15T11:41:07Z")

</div>

Hi everyone, I’m new to formal verification and trying to learn how to apply it to an asynchronous FIFO design (different write and read clocks). I don’t have much experience with this topic, so I’m not sure how to sta…

---

## [UVM Verification of I2C Slave IP with APB Registers](https://verificationacademy.com/forums/t/uvm-verification-of-i2c-slave-ip-with-apb-registers/51575)

<div class="topic-metadata">

**Author:** [@youssef3](https://verificationacademy.com/forums/u/youssef3)\
**Replies:** 2\
**Last updated:** [March 10, 2026, 8:14am UTC](https://verificationacademy.com/forums/t/uvm-verification-of-i2c-slave-ip-with-apb-registers/51575 "2026-03-10T08:14:53Z")

</div>

Hello everyone, I am currently working on a verification project of an I2C Slave IP using UVM. The IP has an APB interface for registers access, and I am building the testbench from scratch to understand the full UVM fl…

---

## [Vending Machine in System Verilog](https://verificationacademy.com/forums/t/vending-machine-in-system-verilog/50763)

<div class="topic-metadata">

**Author:** [@CharchicaA](https://verificationacademy.com/forums/u/CharchicaA)\
**Replies:** 2\
**Last updated:** [February 2, 2026, 2:23pm UTC](https://verificationacademy.com/forums/t/vending-machine-in-system-verilog/50763 "2026-02-02T14:23:16Z")

</div>

Model a Vending Machine using OOP concepts like Inheritance and Polymorphism The vending machine can contain multiple Items Items have 2 properties: id and price Id and price could be arbitrary, they do not indicate i…

---

## [Assertion question :-](https://verificationacademy.com/forums/t/assertion-question/41998)

<div class="topic-metadata">

**Author:** [@Ashmika](https://verificationacademy.com/forums/u/Ashmika)\
**Replies:** 9\
**Last updated:** [January 18, 2026, 9:56am UTC](https://verificationacademy.com/forums/t/assertion-question/41998 "2026-01-18T09:56:36Z")

</div>

Hello, Can I please get some help in writing an assertion with this question :- a signal can be high for m number of clocks within a window of n clocks ? where n \> m

---

## [Semaphore put method question](https://verificationacademy.com/forums/t/semaphore-put-method-question/42479)

<div class="topic-metadata">

**Author:** [@Himanshu\_Madnani](https://verificationacademy.com/forums/u/Himanshu_Madnani)\
**Replies:** 5\
**Last updated:** [December 28, 2025, 11:02pm UTC](https://verificationacademy.com/forums/t/semaphore-put-method-question/42479 "2025-12-28T23:02:17Z")

</div>

hI I have a question regarding semaphore. code module semaphore\_ex; semaphore sema; //declaring semaphore sema initial begin sema=new(4); //creating sema with '4' keys fork display("Process 1"); …

---

## [SVA to check a N-stage synchronizer output](https://verificationacademy.com/forums/t/sva-to-check-a-n-stage-synchronizer-output/51497)

<div class="topic-metadata">

**Author:** [@liviareis](https://verificationacademy.com/forums/u/liviareis)\
**Replies:** 9\
**Last updated:** [December 18, 2025, 9:57am UTC](https://verificationacademy.com/forums/t/sva-to-check-a-n-stage-synchronizer-output/51497 "2025-12-18T09:57:07Z")

</div>

Hi all! I want to write an assertion for an N-stage synchronizer output (this synchronizer accounts for metastability modeling, so its delay is non-deterministic and it ranges in between N and M cycles). This assertion …

---

## [Force a bunch of internal signals when there another particular signal goes high](https://verificationacademy.com/forums/t/force-a-bunch-of-internal-signals-when-there-another-particular-signal-goes-high/51481)

<div class="topic-metadata">

**Author:** [@Adarsh\_Santhosh](https://verificationacademy.com/forums/u/Adarsh_Santhosh)\
**Replies:** 2\
**Last updated:** [November 27, 2025, 8:59am UTC](https://verificationacademy.com/forums/t/force-a-bunch-of-internal-signals-when-there-another-particular-signal-goes-high/51481 "2025-11-27T08:59:34Z")

</div>

How to force a bunch of internal signals when there another particular signal goes high? is there a way to monitor a signal in an ongoing sim and when a particular change occurs force a bunch of other signals?

---

## [restricting   sequence as long as one variable is asserted](https://verificationacademy.com/forums/t/restricting-sequence-as-long-as-one-variable-is-asserted/51443)

<div class="topic-metadata">

**Author:** [@sriverif](https://verificationacademy.com/forums/u/sriverif)\
**Replies:** 4\
**Last updated:** [November 2, 2025, 8:59am UTC](https://verificationacademy.com/forums/t/restricting-sequence-as-long-as-one-variable-is-asserted/51443 "2025-11-02T08:59:41Z")

</div>

could you please clarify how to write assertion for the following if a is asserted b should be asserted and the following sequence should be repeated as long as a is asserted. b should be asserted for one clock cycle a…

---

## [Scoreboard logic](https://verificationacademy.com/forums/t/scoreboard-logic/49565)

<div class="topic-metadata">

**Author:** [@NeethuPilakkal](https://verificationacademy.com/forums/u/NeethuPilakkal)\
**Replies:** 9\
**Last updated:** [August 31, 2025, 7:20pm UTC](https://verificationacademy.com/forums/t/scoreboard-logic/49565 "2025-08-31T19:20:26Z")

</div>

Im trying to develop a scoreboard for memory controller verification. I can compare and verify the read and write operation in scoreboard. Apart from these write and read operations, TB can drive certain commands such as…

---

## [SVA Assertions using only $realtime and nested implications](https://verificationacademy.com/forums/t/sva-assertions-using-only-realtime-and-nested-implications/48570)

<div class="topic-metadata">

**Author:** [@Curious\_gloves22](https://verificationacademy.com/forums/u/Curious_gloves22)\
**Replies:** 5\
**Last updated:** [August 13, 2025, 7:31am UTC](https://verificationacademy.com/forums/t/sva-assertions-using-only-realtime-and-nested-implications/48570 "2025-08-13T07:31:42Z")

</div>

My current requirement is to check the behavior of 2 signals. ‘state\_var’\[3:0\] and then ‘status’ 1 bit. (this goes high for just 1 clk cycle) I need to check / verify behavior of ‘status’ signal which has to become in t…

---

## [Pattern Detector 10110 in SV (no FSM)](https://verificationacademy.com/forums/t/pattern-detector-10110-in-sv-no-fsm/49653)

<div class="topic-metadata">

**Author:** [@CharchicaA](https://verificationacademy.com/forums/u/CharchicaA)\
**Replies:** 1\
**Last updated:** [February 19, 2025, 9:48pm UTC](https://verificationacademy.com/forums/t/pattern-detector-10110-in-sv-no-fsm/49653 "2025-02-19T21:48:49Z")

</div>

Q. Write Code for Pattern Detector 10110. Input to DUT is 1 bit and output is 1 bit. How can I implement without queue? If I change queue to array in below code I get flag=1 twice. Why? EDA Link: EDA Playground D…

---

## [Access internal reg and local param of the RTL from the sva file](https://verificationacademy.com/forums/t/access-internal-reg-and-local-param-of-the-rtl-from-the-sva-file/50339)

<div class="topic-metadata">

**Author:** [@nch](https://verificationacademy.com/forums/u/nch)\
**Replies:** 2\
**Last updated:** [May 21, 2025, 10:44am UTC](https://verificationacademy.com/forums/t/access-internal-reg-and-local-param-of-the-rtl-from-the-sva-file/50339 "2025-05-21T10:44:19Z")

</div>

Hi there, I have a design module which I need to verify using system verilog assertions and formal verification. The requirement is that I do not change / alter the RTL block. So I have created a sva file and a bind fil…

---

## [Write coverage (Add ignore bin) for a 64 bit vector where the only legal values are when all the 1's are continuous. It is allowed to have 0's at either end of the vector, but there cannot be any 0's between 1's in the vector](https://verificationacademy.com/forums/t/write-coverage-add-ignore-bin-for-a-64-bit-vector-where-the-only-legal-values-are-when-all-the-1s-are-continuous-it-is-allowed-to-have-0s-at-either-end-of-the-vector-but-there-cannot-be-any-0s-between-1s-in-the-vector/42640)

<div class="topic-metadata">

**Author:** [@sriram\_6869](https://verificationacademy.com/forums/u/sriram_6869)\
**Replies:** 2\
**Last updated:** [May 17, 2025, 2:31pm UTC](https://verificationacademy.com/forums/t/write-coverage-add-ignore-bin-for-a-64-bit-vector-where-the-only-legal-values-are-when-all-the-1s-are-continuous-it-is-allowed-to-have-0s-at-either-end-of-the-vector-but-there-cannot-be-any-0s-between-1s-in-the-vector/42640 "2025-05-17T14:31:53Z")

</div>

Hi All, Can anyone please tell me how to Add a ignore\_bin for this vector signal WData\_Stb (64 bit). the only legal values are when all the 1’s are continuous. It is allowed to have 0’s at either end of the vector, but …

---

## [Formal Assumption to Model a FIFO Push (with a delay)](https://verificationacademy.com/forums/t/formal-assumption-to-model-a-fifo-push-with-a-delay/50125)

<div class="topic-metadata">

**Author:** [@gitosman](https://verificationacademy.com/forums/u/gitosman)\
**Replies:** 3\
**Last updated:** [April 29, 2025, 6:12pm UTC](https://verificationacademy.com/forums/t/formal-assumption-to-model-a-fifo-push-with-a-delay/50125 "2025-04-29T18:12:03Z")

</div>

Suppose I have a synchronous FIFO, push, data\_in, pop, data\_out but an additional input “delay” which is a variable. Now when the push signal is asserted, the delay in that cycle specifies how many clock cycles later dat…

---

## [Asynchronous FIFO Assertions For Verifying Data Pushed and Popped](https://verificationacademy.com/forums/t/asynchronous-fifo-assertions-for-verifying-data-pushed-and-popped/42267)

<div class="topic-metadata">

**Author:** [@assert\_yourself](https://verificationacademy.com/forums/u/assert_yourself)\
**Replies:** 5\
**Last updated:** [April 27, 2025, 9:43pm UTC](https://verificationacademy.com/forums/t/asynchronous-fifo-assertions-for-verifying-data-pushed-and-popped/42267 "2025-04-27T21:43:20Z")

</div>

I am verifying an Async FIFO and want to verify that the data packets are pushed and popped in the correct order, with the right values. I wrote a property, which is producing some spurious errors. Where am I going wron…

---

## [Non-compute-intensive way to add an asynchronous delay to a transaction](https://verificationacademy.com/forums/t/non-compute-intensive-way-to-add-an-asynchronous-delay-to-a-transaction/50111)

<div class="topic-metadata">

**Author:** [@Elmahdi123](https://verificationacademy.com/forums/u/Elmahdi123)\
**Replies:** 1\
**Last updated:** [April 25, 2025, 2:50pm UTC](https://verificationacademy.com/forums/t/non-compute-intensive-way-to-add-an-asynchronous-delay-to-a-transaction/50111 "2025-04-25T14:50:01Z")

</div>

Hi community, The idea is to have one of the sequence parameters be an asynchronous delay in picoseconds between when the sequence is started, and when one of its signals is driven to the port. I implemented a synchron…

---

## [Assertion on gated clock and after some time ungated clock](https://verificationacademy.com/forums/t/assertion-on-gated-clock-and-after-some-time-ungated-clock/49972)

<div class="topic-metadata">

**Author:** [@Tap](https://verificationacademy.com/forums/u/Tap)\
**Replies:** 3\
**Last updated:** [April 10, 2025, 9:48pm UTC](https://verificationacademy.com/forums/t/assertion-on-gated-clock-and-after-some-time-ungated-clock/49972 "2025-04-10T21:48:58Z")

</div>

Following is my question, i have tried to represent in wave form fashion . Question in writing: 1)@(posedge clk\_delayed) disable iff reset=0 | check\_enable=0 2) When ever FHCEn =1 is asserted in some cycles as sho…

---

## [I cannot find any implementations of a class that extends uvm\_reg\_file](https://verificationacademy.com/forums/t/i-cannot-find-any-implementations-of-a-class-that-extends-uvm-reg-file/49909)

<div class="topic-metadata">

**Author:** [@Amira\_Atef](https://verificationacademy.com/forums/u/Amira_Atef)\
**Replies:** 1\
**Last updated:** [March 23, 2025, 11:09am UTC](https://verificationacademy.com/forums/t/i-cannot-find-any-implementations-of-a-class-that-extends-uvm-reg-file/49909 "2025-03-23T11:09:36Z")

</div>

I am trying to create the DPCD registers within the DisplayPort standard, and it’s divided into fields each consisting of 256, 8 bit registers. So I wanted to place each of those fields in a register file and instantiate…

---

## [How to achieve fork-join\_none and fork join\_any functionality using fork-join](https://verificationacademy.com/forums/t/how-to-achieve-fork-join-none-and-fork-join-any-functionality-using-fork-join/42215)

<div class="topic-metadata">

**Author:** [@MadhavSrikantam](https://verificationacademy.com/forums/u/MadhavSrikantam)\
**Replies:** 6\
**Last updated:** [March 12, 2025, 4:33am UTC](https://verificationacademy.com/forums/t/how-to-achieve-fork-join-none-and-fork-join-any-functionality-using-fork-join/42215 "2025-03-12T04:33:45Z")

</div>

//fork join\_none functionality using fork join module top; initial begin fork begin : b1 #5 $display($time, " from block b1"); end : b1 begin : b2 #10 …

---

## [How to code the dist statement with array in the constraint](https://verificationacademy.com/forums/t/how-to-code-the-dist-statement-with-array-in-the-constraint/40567)

<div class="topic-metadata">

**Author:** [@zz8318](https://verificationacademy.com/forums/u/zz8318)\
**Replies:** 10\
**Last updated:** [March 6, 2025, 5:49pm UTC](https://verificationacademy.com/forums/t/how-to-code-the-dist-statement-with-array-in-the-constraint/40567 "2025-03-06T17:49:54Z")

</div>

I have a requirement as below. the address is randomized and it’s expected to be selected in an array defined. bit \[31:0\] my\_exc\_array\[$\] = {'h1234, 'h5678, 'hABCD, 'hFFFF}; rand bit \[31:0\] my\_addr; rand bit \[31:0\] st…

---

## [Functional Coverage as Toggle Coverage](https://verificationacademy.com/forums/t/functional-coverage-as-toggle-coverage/49651)

<div class="topic-metadata">

**Author:** [@karan1997](https://verificationacademy.com/forums/u/karan1997)\
**Replies:** 3\
**Last updated:** [February 17, 2025, 5:04pm UTC](https://verificationacademy.com/forums/t/functional-coverage-as-toggle-coverage/49651 "2025-02-17T17:04:55Z")

</div>

Hi I am trying to make functional coverage make work as toggle coverage but instead getting 0 hits please help CODE :- class cov\_class; bit \[31:0\] rand\_var; bit sample; covergroup toggle(ref bit value) …

---

## [I want put value in specific bit slice](https://verificationacademy.com/forums/t/i-want-put-value-in-specific-bit-slice/49650)

<div class="topic-metadata">

**Author:** [@TierB](https://verificationacademy.com/forums/u/TierB)\
**Replies:** 1\
**Last updated:** [February 17, 2025, 3:51am UTC](https://verificationacademy.com/forums/t/i-want-put-value-in-specific-bit-slice/49650 "2025-02-17T03:51:44Z")

</div>

but width must variable data\[0+:variable\] = data\[0+:variable\] \>\> parameter; how can i do that? not use for loop and must use class in function

---

## [Valid Data Filter](https://verificationacademy.com/forums/t/valid-data-filter/49654)

<div class="topic-metadata">

**Author:** [@CharchicaA](https://verificationacademy.com/forums/u/CharchicaA)\
**Replies:** 2\
**Last updated:** [February 16, 2025, 8:40pm UTC](https://verificationacademy.com/forums/t/valid-data-filter/49654 "2025-02-16T20:40:44Z")

</div>

Q. How to filter data only if valid=1 and discard other data? Is there a better way without explicit index manipulation ? EDA Link: EDA Playground class valid\_data\_detect; rand bit valid\[$\]; rand bit data\[$\]; …

---

## [Need help in coding an assertion](https://verificationacademy.com/forums/t/need-help-in-coding-an-assertion/49408)

<div class="topic-metadata">

**Author:** [@raikul](https://verificationacademy.com/forums/u/raikul)\
**Replies:** 6\
**Last updated:** [January 16, 2025, 10:42pm UTC](https://verificationacademy.com/forums/t/need-help-in-coding-an-assertion/49408 "2025-01-16T22:42:37Z")

</div>

I need to code assertions for the following scenario once valid is deasserted idle should not be asserted before x\_delay cycles. Here x\_delay is from a register which can change mid simulation and also can be 0, Anoth…

---

## [Mixed packed and unpacked array](https://verificationacademy.com/forums/t/mixed-packed-and-unpacked-array/32738)

<div class="topic-metadata">

**Author:** [@nag\_sv](https://verificationacademy.com/forums/u/nag_sv)\
**Replies:** 3\
**Last updated:** [December 5, 2024, 9:29pm UTC](https://verificationacademy.com/forums/t/mixed-packed-and-unpacked-array/32738 "2024-12-05T21:29:04Z")

</div>

Hi, i didnt understand the below declaration of arrays. can any one explain me the declaration of below array and how to assign values to the below arrays? how to do part select with these arrays? reg \[7:0\] \[0:4\] mem…

---

## [Requirement to initialize dynamic variables within property/sequence](https://verificationacademy.com/forums/t/requirement-to-initialize-dynamic-variables-within-property-sequence/46052)

<div class="topic-metadata">

**Author:** [@Have\_A\_Doubt](https://verificationacademy.com/forums/u/Have_A_Doubt)\
**Replies:** 3\
**Last updated:** [November 25, 2024, 5:55am UTC](https://verificationacademy.com/forums/t/requirement-to-initialize-dynamic-variables-within-property-sequence/46052 "2024-11-25T05:55:10Z")

</div>

Hi All, While trying a solution using dynamic variables as counter in thread , I tried an alternative where the dynamic variable need not be initialized to -1 in each attempt. For property ‘p\_inter\_pos\_length2’ in eda…

---

## [Blocking or non-blocking statement (= vs. \<=)](https://verificationacademy.com/forums/t/blocking-or-non-blocking-statement-vs/42389)

<div class="topic-metadata">

**Author:** [@stefaniemcg](https://verificationacademy.com/forums/u/stefaniemcg)\
**Replies:** 8\
**Last updated:** [August 10, 2024, 11:54pm UTC](https://verificationacademy.com/forums/t/blocking-or-non-blocking-statement-vs/42389 "2024-08-10T23:54:47Z")

</div>

Should i take by defacto that: all description of combinatorial logic should use the blocking assignment: = all description of sequential logic should be using non-blocking assignments: \<= i.e. always\_comb begin a =…

---

## [Using sequence\_item X in agent Y](https://verificationacademy.com/forums/t/using-sequence-item-x-in-agent-y/48049)

<div class="topic-metadata">

**Author:** [@Brurya](https://verificationacademy.com/forums/u/Brurya)\
**Replies:** 2\
**Last updated:** [July 30, 2024, 6:25am UTC](https://verificationacademy.com/forums/t/using-sequence-item-x-in-agent-y/48049 "2024-07-30T06:25:03Z")

</div>

Hi, in my verification environment, I need to get a sequence\_item to an agent that using other sequence\_item. For example: i have controller\_agent, using controller\_seq\_item and spi\_agent, using spi\_seq\_item. i want…

[Next page](https://verificationacademy.com/forums/tag/system-verilog/4356.md?match_all_tags=true&page=1&tags%5B%5D=System-Verilog)
