Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Question in Verilog-A

Status
Not open for further replies.

shaikhsarfraz

Full Member level 5
Joined
Aug 8, 2006
Messages
285
Helped
25
Reputation
50
Reaction score
6
Trophy points
1,298
Activity points
2,961
Hi,
I am using cross function in Verilog A.
The syntax is like
@cross(expr,dir)

Dir checks whether there is any zero crossing in the positive direction or negative direction.
Now if I want to set the threshold for this crossing something else(not 0)
then what is the syntax for that.

thanks
sarfraz
 

U can specify the threshold arguement just before the direction argument.

For example if u need to set a threshold limit of +2.5 then the syntax looks as follows

@(cross(V(clk)-2.5, +1)

Check out verilog lrm for any syntactical issues
 
Ok that was a good logaical method to get the threshold.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top