EDN首页   博客首页

最新日志

发表于:2007-1-27 15:56:29
标签:混频器  放大器  振荡器  

1

混频器、放大器和振荡器中常用RF术语

理解无线数据资料规范-第1部分

这篇学习材料介绍并定义了在混频器、放大器和振荡器的数据资料中用到的RF术语。文中介绍的术语包括增益、变频增益、相位噪声、三阶截取点、P1dB、插入损耗、输出功率、调谐增益和调谐范围,文中还给出了图形和图像以阐明关键的概念。

这篇学习材料解释了一些在无线IC数据资料中出现的通用规范。这些规范都是与放大器、混频器和振荡器有关的。放大器和混频器的规范是基本相同的,只有很少的例外。压控振荡器(VCO)有一套单独的规范。

图1. 放大器、混频器和VCO组成了一个简单的无线接收机


图1. 放大器、混频器和VCO组成了一个简单的无线接收机

放大器和混频器的通用规范

增益是无线组成部件(例如放大器或混频器)中电压或功率的增加。在数据资料中增益的规范几乎都是以dB为单位给出的。这三个术语:增益、电压增益和功率增益通常是可以互换的。因为当输入和输出阻抗相同时以dB为单位的电压增益和功率增益的数值是相同的。例如,20dB增益等于10V/V的电压增益,10V/V的电压增益又等于100W/W的功率增益,这也是20dB。电压增益和功率增益以线性尺度衡量是不同的,但是以dB为单位是相同的,因此这些术语可以互换而不会造成混乱。

变频增益是混频器或频率变换器件的规范。它被称作变频增益是因为输入和输出的频率是不同的。输入信号被混频变换到更低或更高的频率。

插入损耗或衰减也是一个增益的规范,只是输出值比输入值有所降低。也就是说,输出信号的幅度小于输入信号。

输出功率是可得到的驱动一个一般为50的负载的RF功率总量。通常以dBm表示。dBm是以dB表示的毫瓦的数量。例如,250mW等于10 log10(250)= +24dBm。
这里有几个以dBm表示功率的例子,假设阻抗为50

+30dBm = 1W = 7.1VRMS
0dBm = 1mW = 0.225VRMS
-100dBm = 0.1pW = 2.25µVRMS

1dB压缩点(P1dB)是输出功率的性能参数。压缩点越高意味着输出功率越高。P1dB是指与在很低的功率时相比增益减少1dB时的输入(或输出)功率点。参见图2,增益随输入功率变化的曲线。注意当输入功率升高时增益是如何下降的。这是因为在其最大输出功率时器件达到饱和于是功率不能继续上升。1dB压缩点可以在输入或输出定义。例如,如果输出P1dB规范是+20dBm,则这个元件的输出功率约为+20dBm。减小输出功率使之低于P1dB将减小失真。

图2. 元件(放大器或混频器)增益随输入功率变化的曲线。由于输出达到饱和,增益在输出功率较高时将会下降。


图2. 元件(放大器或混频器)增益随输入功率变化的曲线。由于输出达到饱和,增益在输出功率较高时将会下降。

三阶截取点(IP3)是表示线性度或失真性能的参数。IP3越高表示线性度越好和更少的失真。IP3通常用两个输入音频测试。图3所示为双音频IP3测试在频域的情况。放大器的输入是两个正弦波(基波),本例中一个在900MHz另一个在901MHz。放大器的输出是两个欲得到的有用信号。因为放大器不是理想线性的,它还产生了两个三阶互调(IM3)产物。IM3通常以dBm给出。这里显示的IM3失真产物在频率上距离有用信号非常的近因此不能用滤波器轻易地去除它们。为了减少三阶失真产物,必需提高IP3规范。

三阶互调产物是由放大器或混频器的非线性特性造成的对两个音频输入相互混频(或调制)的结果。这两个IM3产物是:

fIM3_1 = 2 f1 - f2,
i.e. 900 2 - 901 = 899MHz
fIM3_2 = 2 f2 - f1,
i.e. 901 2 - 900 = 902MHz

点击看大图


图3. 双音频IP3测试。(左)两个输入音频。(右)输出包含两个被放大的音频、IM3产物和谐波失真。

从数学的角度看,IP3是在基波和三阶失真输出曲线交点的理论输入功率(见图4)。A线是基波(有用的)信号输出功率随输入功率变化的曲线,B线是三阶失真输出功率随输入功率变化的曲线。B线的斜率是A线斜率的3倍(以dB为单位)理论上会与A相交。这个交点就是三阶截取点。在这一点时假设的输入功率就是输入IP3,输出功率就是输出IP3。

图4. IP3的定义。A线和B线的交点就是假设的IP3。


图4. IP3的定义。A线和B线的交点就是假设的IP3。

谐波失真 是另一个表示失真的规范。它定义了在基频的整数倍频率产生的失真产物(图3)。例如,二次谐波失真-60dBc的意思是在二倍基波频率的失真输出幅度比基波低60dB。dBc是低于基波的dB数(dBc的传统意义是低于载波的dB数)。谐波失真规范在如有线电视这类宽带应用中是十分重要的,但是在手机这类窄带应用中的重要性并不大,因为失真产物之间的频率差别比较大从而可以被容易地滤除。

噪声因数是由放大器和混频器产生的噪声的性能参数。它将元件产生的噪声与室温下50电阻的热噪声相比较。例如,噪声因数为2意味着放大器产生的噪声和50的电阻产生的噪声相同。从数学角度看,

噪声因数
= (PA + P50)/P50
= 1 + PA/P50

其中PA是放大器或混频器产生的噪声功率,P50是50电阻产生的热噪声功率。

噪声系数经常在无线数据资料中给出。它是以dB表示的噪声因数。也就是说,噪声系数等于10 log10 (噪声因数)。典型的低噪声放大器(LNA)具有1dB的噪声系数,这意味着由放大器产生的噪声约为50电阻产生噪声的26%。

在典型的接收机中,接收到的信号在-100dBm (2µV)的数量级,而在1MHz带宽内50电阻产生的热噪声约为-114dBm。可以看出信噪比(SNR)非常低。放大器中的噪声会进一步降低SNR。因此,RF接收机前端的噪声系数必需维持最小。

回波损耗是表示信号反射性能的参数。回波损耗说明入射功率的一部分被反射回到信号源。例如,如果注入1mW (0dBm)功率给放大器其中10%被反射(反弹)回来,回波损耗就是10dB。从数学角度看,回波损耗为-10 log [(反射功率)/(入射功率)]。回波损耗通常在输入和输出都进行规定。

通常要求反射功率尽可能小,这样就有更多的功率传送到负载。典型情况下设计者的目标是至少10dB的回波损耗。有时为了获得更好的噪声系数、IP3或者系统的增益就不能满足这个“凭经验得出的” 10dB回波损耗的要求。

振荡器(VCO)规范

相位噪声是表示振荡器频谱纯度的性能参数。理想情况下,振荡器的输出是单一频率的,可以用一根单独的直线表示。实际中,振荡器存在噪声从而使输出频谱并非是单独的直线,而是带有“裙状”的围绕在载波(基波)频率周围的噪声频谱。这些噪声称为相位噪声。相位噪声通常定义为在距离载波频率偏移某一频率处的1Hz带宽内噪声功率与载波功率之比。例如,在100kHz偏移处-100dBc/Hz的相位噪声规范意味着在距离载波100kHz的地方1Hz带宽内的噪声功率比载波功率低100dB (图5)。

图5. 振荡器的输出频谱。裙状频谱是振荡器的相位噪声引起的。


图5. 振荡器的输出频谱。裙状频谱是振荡器的相位噪声引起的。

由于会产生互相混频现象,低相位噪声对无线接收机是重要的。如图6所示,具有噪声的本地振荡器(LO)对接收的有用信号进行混频并转换为IF。如果存在一个干扰信号(来自另一个发射机),它也同LO进行混频并被下变频到IF频率范围内。因为干扰比有用信号强的多,相位噪声的“尾部”将涌进IF信道内。这一噪声降低了信噪比并恶化了接收机的性能。低相位噪声LO对这种具有强干扰的接收机是重要的。

图6. 有用信号和干扰信号都被下变频至IF。由于振荡器的相位噪声,被下变频的干扰的尾部噪声覆盖在有用信号信道上并且不能容易地滤除。


图6. 有用信号和干扰信号都被下变频至IF。由于振荡器的相位噪声,被下变频的干扰的尾部噪声覆盖在有用信号信道上并且不能容易地滤除。

调谐范围是VCO覆盖的频率范围。例如,VCO的额定频率为900MHz,但是它可以通过改变其调谐输入电压而调谐到从850MHz到950MHz的范围内。此时的调谐范围是100MHz。通常需要宽的调谐范围以覆盖在规定的供电电压和温度范围内的工作频率范围。

调谐增益或VCO增益是当调谐输入电压改变时VCO敏感程度的度量。例如,调谐增益为50MHz/V的意思是当调谐电压改变1V时将有50MHz的频率变化。通常需要低的调谐增益,因为此时被松耦合到振荡器槽路的变容二极管将使振荡器具有更低的相位噪声。

———————————————————————————————
原文链接(
http://www.maxim-ic.com.cn/appnotes.cfm/appnote_number/2041)

点击此处查看原文 >>

系统分类: 模拟技术   |    用户分类:    |    来源: 转贴

评论(0) | 阅读(817)
发表于:2006-11-3 16:56:08
标签:混合仿真  cosimulation  

0

HowtoRunCo-SimulationUsingHsim/Verilog

How to Run Co-Simulation Using Hsim/Verilog

 

INDEX                                    

1.Introduction
2.Known Limitation of the Nassda/Cadence Flow

3.Hsim/Verilog Co-Sim Usage
  3.1 Setup the Co-Sim Environment
  3.2 Setup Co-Sim Configuration File
  
3.3 Co-Sim with Verilog as the Top Instance
  3.4 Co-Sim with Spice as the Top Instance

4.Cadence Analog Design Environment Integration

5.Reference

                                                    

 

 

1.Introduction


This digital co-simulation (Co-Sim) solution is the integration between the Hsim circuit simulator and Cadence's Verilog simulators (NC-Sim/NC-Verilog/Verilog-XL). This integration is based on the standard Verilog PLI 2.0.


[Applications]

-The most frequent application is the block-level debug of an analog or mixed-signal block in conjunction with its surrounding digital circuitry represented by Verilog or VHDL RTL code.
-Sometimes an existing Verilog testbench is used to drive an Hsim simulation of a design at the transistor-level.
-Another application is the top-level verification of a huge digital design (a processor for example) which requires a lot of digital patterns and a sensitive mixed-signal block is simulated in Hsim.

Setting up this co-simulation usually takes less than 2 hours, starting from scratch to get to the first simulation results. If the majority of the design is being simulated in the Verilog simulator and the remainder in Hsim, then speed-ups of 5X or more are possible compared to an all-transistor simulation in Hsim.

 

   

2.Known Limitation of the Nassda/Cadence Flow


The Nassda Co-Sim solution accepts both Verilog and SPICE format netlist descriptions on top. The management of the interface nodes is straightforward and the analog-to-digital (a2d) and digital-to-analog (d2a) signal converters are created automatically.

It is possible to let the digital simulator run for a while before starting the co-simulation with Hsim. This is typically useful to reach a state that could require a long setup time.

On the digital side, this solution doesn't currently support VHDL on top. However, it is generally possible to embed the VHDL code in a Verilog module to overcome this limitation.

Some care needs to be taken in deciding the partition of the design into analog and digital portions. Tight feedback loops that work across the interface between the two simulators can cause the analysis to be slower than expected. Choose partitions that have minimal signal traffic among them. This allows the digital engine to work quickly without being restrained by the possibly slower speed of the analog engine.

 


3.Hsim/Verilog Co-Sim Usage


3.1 Setup the Co-Sim Environment


Set
NC
-Verilog executable path — Make sure that the NC-Verilog software is installed and add the NC-Verilog executable path to PATH:

     set path=($path /usr/local/vendors/cadence/ldv40/tools/bin)

Set LD_LIBRARY_PATH — Add library path to LD_LIBRARY_PATH (or SHLIB_PATH for HP):

setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH} :/usr/local/vendors/cadence/ldv40/tools/inca/lib:/usr/local/vendors/cadence/ldv40/tools/lib

Set Co-Sim Library libvpiHsim.so or .sl — Make sure that the Co-Sim software is installed. The shared library libvpiHsim.so or .sl must be present in the correct:

$NASSDA_HOME/platform/[correct OS]/bin path

Set TCL_LIBRARY — Set environment variable TCL_LIBRARY to the directory containing the init.tcl file:

    setenv TCL_LIBRARY $NASSDA_HOME/etc/tcl

If your installed TCL is not version 8.4, then you can use either the Cadence installation tree:

    setenv TCL_LIBRARY /soft/cadence/ldv40/tools/txe/lib/tcl8.3

Or the previous Nassda installation tree:

    setenv TCL_LIBRARY .../nassda2.0/etc/tcl


3.2 Setup Co-Sim Configuration File


The file cosim.cfg, defines the spice netlist and the different parameters for the co-simulation.

Define the spice netlist name — Using the following command:

set_args -spectre test.sp -o run1               /* using spice deck in spectre syntax */

set_args test.sp                                /* using spice deck in default spice syntax */

Define the a2d & d2a params (if needed) — In most cases, the default a2d and d2a parameters (slopes, threshold, max and min values) are sufficient.

    set_port_prop -cell MBLOCK -port * -logichv 1.2 -logiclv 0 -logicxv 0.0 -slope 100ps -vhi 0.84 -vlo 0.36


3.3 Co-Sim with Verilog as the Top Instance


Typically, you have a circuit or testbench in Verilog, and you want to simulate one or several modules in spice.

Step 1 Copy the port definition from the original Verilog module to a separate file. Add one system task $nsda_module() in the module body to designate this module to be simulated by Hsim. Usually, remove the rest of the body of the module to make it cleaner. Move the original .v file to another location so it will not be compiled in Step 3. For example:

module inv (a, z);

input a;

output z;

initial $nsda_module();

endmodul e

Step 2 Prepare the spice netlist, it must contain:

a). The subckt definition to be simulated

b). The call to the different model libraries

c). .param hsimvdd=[value] sets maximum value for the a2d and d2a

d). .tran statement

e). .plot v(.) or .lprint to plot the required signals

f). The normal Hsim accuracy/speed settings

Step 3 Compile the Verilog source files including the new interface module from Step 1.

    ncvlog *.v

Step 4 Perform the elaboration

    ncelab -loadvpi libvpiHsim.so:nsda_vpi_startup -access +rwc -libname cosim_lib cosim_lib.top

Step 5 Start the co-sim

For NC-Sim:       ncsim -loadvpi libvpiHsim.so:nsda_vpi_startup +nsda +"cosim.cfg" top

For NC-Verilog:   ncverilog +loadvpi="libvpiHsim".so:nsda_vpi_startup +nsda+"cosim.cfg" +access +rwc *.v

For Verilog-XL:   verilog +loadvpi="libvpiHsim".so:nsda_vpi_startup +nsda+"cosim.cfg" *.v


3.4 Co-Sim with Spice as the Top Instance


Step 1
Add two Hsim commands to spice netlist

    .param Hsimvmod=[Verilog module name]

    .param Hsimverilog=[Verilog file name]

Run Hsim with the new spice netlist. With the above two commands in the netlist, Hsim only generates the necessary interface files and does not do any DC or transient circuit analysis. This Hsim simulation creates both cosim.v and cosim.sp. Cosim.v is the Verilog top module to instantiate other Verilog modules for co-sim. Cosim.sp is the spice subcircuit with interface elements. Remove the previous two Hsim commands and include the  generated file cosim.sp in the original SPICE netlist:

    .include cosim.sp

Step 2 The spice netlist must contain:
   
a) The top level definition to be simulated
    b) The call to the different model libraries
    c) .param hsimvdd= to set the maximum value for the a2d and d 2a
    d) .tran statement
    e) .plot v(.) or .lprint to plot the required signals
    f) The normal Hsim speed/accuracy settings

Step 3 Compile cosim.v with other Verilog source files with the command:

    ncvlog *.v

Step 4 Perform the elaboration:

    ncelab -loadvpi libvpiHsim.so:nsda_vpi_startup -access +rwc -libname cosim_lib cosim_lib.top

Step 5 Start co-sim from top module defined in cosim.v with the following command

For NC-Sim:       ncsim -loadvpi libvpiHsim.so:nsda_vpi_startup +nsda +"cosim.cfg" top

For NC-Verilog:   ncverilog +loadvpi="libvpiHsim".so:nsda_vpi_startup +nsda +"cosim.cfg" +access +rwc *.v

For Verilog-XL:   verilog +loadvpi="libvpiHsim".so:nsda_vpi_startup +nsda+"cosim.cfg" *.v

 

 

4.Cadence Analog Design Environment Integration


The co-simulation solution is integrated into the Cadence Virtuoso analog design environment (Analog Artist). It supports the existing SpectreVerilog flow that designers are already using. It allows the user to select the blocks to be simulated with either a digital or analog simulator, through the hierarchy browser. The SPICE and digital netlists are generated automatically by the environment. The main purpose of this solution is to allow for larger or more complex designs to be simulated.

This integration allows you to use Hsim as a mixed mode simulator via the Cadence Artist interface.

 

   

5.Reference


[1] HSIMPLUS v5.0 User’s Manual, Original Release, pp27.1-27.31, Apr. 2004, Nassda Corporation.

[2] http://www.deepchip.com/items/0424-09.html

点击此处查看原文 >>

系统分类: 模拟技术   |    用户分类:    |    来源: 无分类

评论(0) | 阅读(1088)
总共 , 当前 /