On May 13, 3:23=A0am, ambi <radicalmah...@[EMAIL PROTECTED]
> wrote:
> Hi,
> =A0 =A0 =A0 I am a bit new to cadence and I am trying to create a
behavior=
al
> voltage source like those available in some of the Spice tools.
> I basically want to have a voltage source with output Vout=3D(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=3D(V(VREFP)-V(VREFM))/2.
> Can anyone suggest how to get this in cadence ?
> Thanks
>
> Ambi
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


|