JasperGold

rachee

Newbie
Joined
Oct 2, 2023
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
20
Hi, I'm a student and learning JasperGold. I have a question and be really grateful if you could help me.
I try to implement an assertion like this:
A |-> ##3 B;

In the main SystemVerilog module, I've defined A as an input and B as the output. I try to implement the code by using FSM. for example in one state, signal A should be high, then it counts 3 cycles through transferring to the next states, then it will check if B is high or not.
For the testbench, I found that JasperGold ignores initial blocks. So I can't use delays to write my testbench.

My question:
How can I write testbench for this, so my assertion would be passed?
signal A is high,
then I want to have signal B high, 3 cycles after signal A is high
 

write your testbench any way you see fit, use your favorite simulator, enable assertions, check if it triggered

not sure what you mean by your initial blocks being ignored, no simulator should ignore them
 

Cookies are required to use this site. You must accept them to continue using the site. Learn more…