• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. RF Design
  3. Modelling White noise using VerilogA

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 63
  • Views 15959
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Modelling White noise using VerilogA

RFStuff
RFStuff over 12 years ago

 Dear All,

I want to add a cyclostaionary noise current  ( 4*k*T*Gm(t) ) to a non-linear ( hard-limiter ) Gm block

 Gm(t) = derivative( I(out)/V(in)).

But the moment I am doing  Gm_t = ddx(I(out),V(in)); It is giving error.

Actullay, I ideally want to add white_noise(4*k*T*Gm_t) to I(out) finally.

It looks recursive. But could anybody please tell how this can be done.

The code is as given below.

 

Kind Regards,

 

 

 

// VerilogA for VERILOG_A_MODEL, HARD_LIMIT_GM, veriloga

`include "constants.vams"
`include "disciplines.vams"

module HARD_LIMIT_GM(in,out);
  inout in,out;
  parameter real vtrans = 0;
  parameter real tdelay = 0 from [0:inf);
  parameter real trise = 1p from (0:inf);
  parameter real tfall = 1p from (0:inf);
  parameter real Gm=-5m;

  real Gm_t;


  electrical in,out;
  real vout_val;


  analog begin 
      @ (cross(V(in) - vtrans)) ;
     vout_val = V(in)>vtrans; 
     I(out) <+ Gm * transition( vout_val, tdelay, trise, tfall); 

     Gm_t = ddx(I(out),V(in)); // HERE IT IS SHOWING ERROR

      // Actullay, here, I ideally want to add white_noise(4*k*T*Gm_t) to I(out) .

  end   
endmodule

  • Cancel
  • RFStuff
    RFStuff over 12 years ago

    I  thought to create another block which senses the current "I1" input and voltage 'Vin" input and find the derivaive (dI1/dVin).

    To test the individual block I gave a  sine current source of 1.02GHz, amp=10mA to input I1 and a sine volatge source of  to input 'Vin" of 1GHz and amp=1V.

    But in the code it always evaluates  (dI1/dVin) ( Gm_t in the code ) to ZERO.

    Can anybody tell what is the issue ?

     

    My code is as below:-

     / VerilogA for VERILOG_A_MODEL, GM_T_NOISE, veriloga

    `include "constants.vams"
    `include "disciplines.vams"

    module GM_T_NOISE(in_v,in_i,out,vx);
           inout in_v,in_i,out,vx;


           real Gm_t;


           electrical in_v,in_i,out,vx;


             analog begin
                  Gm_t=ddx(I(in_i),V(in_v));


                 I(out) <+ Gm_t;


              $strobe("GM = %rs \n", Gm_t);


              V(in_i,vx) <+ 0;  // To make short between in_i & vx

                                      // During simulation node ' vx ' is connected to ground


             end
              
        

    endmodule

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information