| Login | | Don't have an account yet? You can create one. As a registered user you have some advantages like theme manager, comments configuration and post comments with your name. | |
| Who's Online | There are currently, 56 guest(s) and 1 member(s) that are online.
You are Anonymous user. You can register for free by clicking here | |
 | |
|
Verification Guild: Forums |
|
| View previous topic :: View next topic |
| Author |
Message |
spartanthewarrior Senior


Joined: Aug 15, 2009 Posts: 32
|
Posted: Tue Apr 03, 2012 1:48 am Post subject: Question: Operators in Assertions |
|
|
Hi All,
Can any body which operator I should use in System Verilog assertions, Logical or Bitwise....and Why ?? |
|
| Back to top |
|
 |
sharanbr Senior


Joined: Sep 27, 2004 Posts: 194
|
Posted: Tue Apr 03, 2012 9:02 am Post subject: |
|
|
all regular operators are supported (except a few specified by the LRM) in assertions. I would assume, the usage will depend on actual application.
For example (untested code ...)
| Code: |
(2_bit_vec == 2'b01) && ($past(2_bit_vec) == 2'b00) |=> (2_bit_vec & 2_bit_vec_mask) == 2'b11
|
|
|
| Back to top |
|
 |
Ajeetha Senior


Joined: Mar 29, 2004 Posts: 424 Location: Bengaluru, India
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
| |
|
|