132 Chapter
7
Model interface
Figure 7-4. Schematic symbol of the source model
Table 7-4. Model ports
Name Type
Description
P ELECTRICAL Positive
pin
M ELECTRICAL
Negative
Pin
Table 7-5. Model parameters
Name Unit Default
value Description
VO V 0.0
Offset
voltage
PA_DBM
dBm
-100.0
Power amplitude of sine wave
FREQ
Hz
1.0e03
Frequency of sine wave
PHASE
rad
0.0
Phase of sine wave
MDI - 0.0
Modulation
index
FREQM
Hz
1.0
Modulation frequency
PHASEM rad
0.0
Modulation
phase
ROUT Ohm 50.0
Output
resistance
Model implementation
architecture SFFM of P_SIN is
constant PA: REAL:= 10**((PA_DBM-30.0)/10.0);
constant VA: REAL:= SQRT(PA * 2.0 * ROUT);
terminal N_INT: ELECTRICAL;
quantity V_ROUT across I_ROUT through P to N_INT;
quantity V_SRC
across I_SRC
through N_INT to M;
begin
-- signal source
V_SRC == 2.0 * (VO + VA * SIN(NOW * MATH_2_PI*FREQ + PHASE
+ MDI*SIN(NOW * MATH_2_PI*FREQM + PHASEM)));
-- output port resistance
V_ROUT == ROUT * I_ROUT;
end architecture SFFM;
Summary :
Model parameters Name Unit Default value Description VO V 0.0 Offset voltage PA_DBM dBm -100.0 Power amplitude of sine wave FREQ Hz 1.0e03 Frequency of sine wave PHASE rad 0.0 Phase of sine wave MDI - 0.0 Modulation index FREQM Hz 1.0 Modulation frequency PHASEM rad 0.0 Modulation phase ROUT Ohm 50.0 Output resistance Model implementation architecture SFFM of P_SIN is constant PA: REAL:= 10**((PA_DBM-30.0)/10.0);
Tags :
rout,model,phase,nint,wae,modulation,electrical,sine,table,rad,architecture,pin,quantity