---
+ Post New Thread
Results 1 to 3 of 3
  1. #1
    Full Member level 5
    Points: 3,097, Level: 13

    Join Date
    Aug 2006
    Posts
    285
    Helped
    25 / 25
    Points
    3,097
    Level
    13

    Question in Verilog-A

    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

    •   Alt7th October 2006, 05:48

      advertising

        
       

  2. #2
    Member level 5
    Points: 4,676, Level: 16
    chviswanadh's Avatar
    Join Date
    May 2005
    Location
    Bangalore
    Posts
    93
    Helped
    196 / 196
    Points
    4,676
    Level
    16

    Re: Question in Verilog-A

    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


    2 members found this post helpful.

    •   Alt7th October 2006, 06:12

      advertising

        
       

  3. #3
    Full Member level 5
    Points: 3,097, Level: 13

    Join Date
    Aug 2006
    Posts
    285
    Helped
    25 / 25
    Points
    3,097
    Level
    13

    Re: Question in Verilog-A

    Ok that was a good logaical method to get the threshold.



+ Post New Thread
Please login