• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. re : parameterized sequences & property blocks in simvi...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 66
  • Views 1785
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

re : parameterized sequences & property blocks in simvision

Srikanth Madam
Srikanth Madam over 12 years ago

HI,

    I have a strange problem with my simvision (version 11.10.-s66) that i have  written 2 assertions

      1) with parameterized sequnces and property 

      2) normal assertion 

     for some logic which you can find in the below code , but in the simvision the assertions finished at different timings , the one parameterized finished one clock pulse later than expected and the normal assertion finished properly. So can any one tell me whether it is tool issue ???


initial
begin
    clk = 1'b0; in1 = 4'd0; flag = 1'b0; out1 = 4'd0;
    repeat(2) @(negedge clk); in1 = 3'd2; flag = 1'b1;
    repeat(1) @(negedge clk); flag = 1'b0; out1 = 3'd3;

    repeat(5) @(negedge clk); $finish;
end

property p1;
    @(posedge clk)
        ( (in1 == 3'd2) && $rose(flag) ##1 $fell(flag)) |-> (out1 == 3'd3);
endproperty

    chk1 : assert property(p1) $display("Working Good");
            else $display("Not Working");

sequence s1(a);
    $rose(a) ##1 $fell(a);
endsequence


property p2(a1,b,c);
    @(posedge clk)
    ( (b == 3'd2) and s1(a1)) |-> ( c == 3'd3 ) ;
endproperty

    chk2 : assert property(p2(flag,in1,out1)) $display("Working Good");
            else $display("Not Working");

 

Find the attachment for the picture containing assertions in the simvision

  • assertion_sim1.png
  • View
  • Hide
  • Cancel
Parents
  • Srikanth Madam
    Srikanth Madam over 12 years ago

     Hi Whiteriver1,

         Thanks for the reply , but i just want to know is anything wrong with my code. 

         I tried as you suggested it is working same as p1.

     

     

    Thanks

    Srikanth

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Srikanth Madam
    Srikanth Madam over 12 years ago

     Hi Whiteriver1,

         Thanks for the reply , but i just want to know is anything wrong with my code. 

         I tried as you suggested it is working same as p1.

     

     

    Thanks

    Srikanth

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information