Behavioral voltage source

Discussion in 'Cadence' started by ambi, May 13, 2008.

  1. ambi

    ambi Guest

    Hi,
    I am a bit new to cadence and I am trying to create a behavioral
    voltage source like those available in some of the Spice tools.
    I basically want to have a voltage source with output Vout=(V(VREFP)-
    V(VREFM))/2 . where VREFP and VREFM are 2 distinct voltages.
    In LTSpice which I am using currently, I can place a component called
    behavioral voltage source on the schematic and mention its value as
    V=(V(VREFP)-V(VREFM))/2.
    Can anyone suggest how to get this in cadence ?
    Thanks

    Ambi
     
    ambi, May 13, 2008
    #1
  2. ambi

    ambi Guest

    I found that there is something called bsource in Cadence ( "spectre -
    h bsource" ) . If it is available as a component, I couldnt find it in
    'analoglib' or 'ahdllib' . Can someone clarify this for me please.

    Thanks
    Ambi
     
    ambi, May 13, 2008
    #2
  3. ambi

    oliver Guest

    You can create the behavioral voltage source with the veriloga
    behavioral language
    (veriloga cell). Something like:

    module myvsource(vrefp, vrefm, vout) ;
    electrical vrefp,vrefm,vout ;
    input vrefp, vrefm ;
    output vout ;

    analog begin
    V(vout) <+ (V(vrefp)-V(vrefm))/2 ;
    end
    endmodule

    Oliver
     
    oliver, May 13, 2008
    #3
  4. ambi

    ambi Guest

    Thanks Oliver. But I am trying not to use verilog A. The design
    constraint wants me to avoid using verologA. I need it as a component
    to use it in my schematic.

    Regards,
    Ambi
     
    ambi, May 13, 2008
    #4
  5. ambi wrote, on 05/13/08 22:56:
    You can use bsource, as you suggested. However, the main reason it is not
    supported from analogLib is that the expression would confuse the netlisting
    process, and it would think that there are other design variables and so on which
    are there.

    So you'd have to include the component via an included netlist.

    Alternatively, why not just use a vcvs with a gain of 0.5? That can easily be
    placed on the schematic...

    Andrew.
     
    Andrew Beckett, May 14, 2008
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.