Jul 20, 2012 #1 A anudeepzip@gmail.com Newbie level 3 Joined May 25, 2012 Messages 3 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,298 assert (bad things do not happen) cover(good things happen) then what is the difference between assert and cover .y do we use both from above it seems to be same
assert (bad things do not happen) cover(good things happen) then what is the difference between assert and cover .y do we use both from above it seems to be same
Jul 25, 2012 #2 jasonc2 Full Member level 4 Joined Jun 23, 2012 Messages 204 Helped 25 Reputation 52 Reaction score 25 Trophy points 1,328 Location NYC, USA Activity points 3,415 See: http://www.asic-world.com/systemverilog/assertions21.html And: http://www.testbench.in/AS_08_VERIFICATION_DIRECTIVE.html Assert would be used to check that conditions that should be true actually are true, and fails immediately if the conditions are false. Cover is used to check conditions but rather than acting immediately, the conditions are checked and a report can be generated at the end.
See: http://www.asic-world.com/systemverilog/assertions21.html And: http://www.testbench.in/AS_08_VERIFICATION_DIRECTIVE.html Assert would be used to check that conditions that should be true actually are true, and fails immediately if the conditions are false. Cover is used to check conditions but rather than acting immediately, the conditions are checked and a report can be generated at the end.