mrforever Posted November 8, 2012 Report Share Posted November 8, 2012 Hi, SV experts Can SV detect integer variable's changing? if have the code like this, integer a; @(a) begin do_function0 ; end do_function1; how does it behave? will it execute do_function0 when "a" changes, while execute do_function1 when “a" doesn't change ? thanks for the answer. Quote Link to comment Share on other sites More sharing options...
dave_59 Posted November 8, 2012 Report Share Posted November 8, 2012 You'll need to show more context. Is this code itself inside another procedural block? Event controls in front of statements behave like a separate statement, and should be read as "wait for a change on 'a', then execute the statement that follows. task A; // or begin @(a) // wait for a change on a do_function0; do_function1; endtask // or end In a procedural block of code, each statement is executed when the previous statement completes. Quote Link to comment Share on other sites More sharing options...
mrforever Posted November 9, 2012 Author Report Share Posted November 9, 2012 thanks, dave Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.