Verification Guild
A Community of Verification Professionals

 Create an AccountHome | Calendar | Downloads | FAQ | Links | Site Admin | Your Account  

Login
Nickname

Password

Security Code: Security Code
Type Security Code
BACKWARD

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.

Modules
· Home
· Downloads
· FAQ
· Feedback
· Recommend Us
· Web Links
· Your Account

Advertising

Who's Online
There are currently, 55 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here

  
Verification Guild: Forums

 Forum FAQForum FAQ   SearchSearch   UsergroupsUsergroups   ProfileProfile  ProfileDigest    Log inLog in 

Logical vs Bitwise operators in Verilog
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Verification Guild Forum Index -> Design
View previous topic :: View next topic  
Author Message
Janick
Site Admin
Site Admin


Joined: Nov 29, 2003
Posts: 1382
Location: Ottawa, ON Canada

PostPosted: Fri May 14, 2004 11:16 am    Post subject: Reply with quote

vhdlcohen wrote:
The event stuff is WAY TOO MUCH CODE!.


As a big supporter of VHDL, I didn't expect you to complain about code volume Smile

vhdlcohen wrote:
Besides, VHDL does not support the Verilog event


The events do not refer to Verilog events but to PSL temporal sub-expressions... as I said, I'm not familiar with PSL syntax.
Back to top
View user's profile Send e-mail Visit poster's website
vhdlcohen
Industry Expert
Industry Expert


Joined: Jan 05, 2004
Posts: 1238
Location: Los Angeles, CA

PostPosted: Fri May 14, 2004 4:39 pm    Post subject: Reply with quote

Code:
event request  = bus_req == 1'b1;
event grant    = ack == 1'b1;
event canceled = cancel == 1'b1;
event reset    = reset_n == 1'b0;
always (request |-> {[*0:5]; grant } abort (canceled || reset));

Quote:
The events do not refer to Verilog events but to PSL temporal sub-expressions... as I said, I'm not familiar with PSL syntax.

Come to think of it, the "event" is not part of PSL, but belongs to the "Modeling layer". Per LRM, the modeling layer provides a means to model behavior of design inputs (for tools such as formal verification
tools in which the behavior is not otherwise specified), and to declare and give behavior to auxiliary signals and
variables. ... The Verilog flavor of the modeling layer consists of the synthesizable subset of Verilog, defined by IEEE standard
1364.1-2002, Standard for Verilog Register Transfer Level Synthesis.

HOWEVER, PSL exect Boolean expression and named events will NOT work. Thus, the assertion that uses those event will not work!
BTW, that also applies to SVA -- no named events in expression of properties. You might be able to use events in the "disable iff" statement .. not sure, perhaps someone knows.

Thus, need to use either using the implicit values of objects (i.e., {a; !b} or the explicit values (i.e., {a==1'b1; b==1'b0} .
While I am on the BTW subject, the SystemVerilog LRM uses in the examples the implicit values, as in "a ##1 b ##1 c // first sequence seq1"
Smile
_________________
Ben Cohen http://www.systemverilog.us/
* SystemVerilog Assertions Handbook, 3rd Edition, 2013
* A Pragmatic Approach to VMM Adoption
* Using PSL/SUGAR ... 2nd Edition
* Real Chip Design and Verification
* Cmpt Design by Example
* VHDL books
Back to top
View user's profile Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Verification Guild Forum Index -> Design All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can 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
Verification Guild © 2006 Janick Bergeron
Web site engine's code is Copyright © 2003 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.155 Seconds