0
\$\begingroup\$

I am using SystemVerilog to write assertions in order to test the behavior of my design. In my design I have two clock : the usual CLK_int and another clock called I2C_IF_SCL_out. In the specification of my design:

SDA_Tick_shift= 01 for one CLK_int period, 10 CLK_int periods after falling edge of I2C_IF_SCL_out.

What I am asking is can I use two clocks in my clocking block @(posedge CLK_int) and @(I2C_IF_SCL_out)?

Kevin Kruse
8201 gold badge8 silver badges18 bronze badges
asked Sep 20, 2018 at 13:29
\$\endgroup\$

1 Answer 1

1
\$\begingroup\$

Assuming CLK_int has a much higher frequency than I2C_IF_SCL_out, what you probably want is

assert property (@posedge CLK_int $fell(I2C_IF_SCL_out) |-> ##10 SDA_Tick_shift==2'b01)

Otherwise, you would have to explain your requirements in much more detail.

answered Sep 20, 2018 at 14:56
\$\endgroup\$
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.