控制信號是相位差信號,來控制驅(qū)動脈沖的相位。我的想法是通過control to voltage模塊將控制信號轉(zhuǎn)化為電信號,然后該電信號對脈沖方波電壓進行延時控制。不知道saber中有沒有控制延時的模塊,我只找到了控制信號類型的(dalay,transport),沒有電信號延時類型的。請用過的人指點一下,謝謝!
saber中有關控制信號驅(qū)動開關器件的疑問
全部回復(14)
正序查看
倒序查看
@keykings
比如說,延時不一定是20ms,也可以是10ms,15ms等等。圖中的in2不是恒定的,而是來自一個控制輸出信號
如下為此模板的相關說明,你可以參考一下;如果看不懂的話,我看這兩天是否有空把它理一下給你。
#VERSION mt_template/analogy/control/c_var_delay.dec@@/main/8
#DATED 11-Nov-2004.16:13:50
#encrypted element template c_var_delay in1 in2 out =
# init_output, history_length
#**********************************************************************#
# Copyright 2004 Synopsys Inc. #
# This template and the associated documentation are #
# confidential and proprietary to Synopsys, Inc. #
# Your use or disclosure of this template is subject to #
# the terms and conditions of a written license agreement #
# between you, or your company, and Synopsys, Inc #
#**********************************************************************#
# The template implements a variable time delay function: *
# out = in1(time - in2, if time >= in2, *
# out = init_output if time < in2, *
# where out is the output signal, "in1" is the input signal, "in2" is *
# the value of the instantaneous time delay provided through the input *
# "in2", init_output is the output signal before time reaches the *
# time_delay value. The values of the input "in1" and the *
# corresponding time instances are stored in the array named "history" *
# at every time step. The delayed value of the "in1" variable is *
# determined by linear interpolation. *
# The array accomodates up to "history_length" variable-time *
# pairs, where history_length is the template parameter. If simulation *
# takes more than "history_length" steps, all the values in the array *
# are shifted one time slot back with inevitable loss of data at the *
# first two cells. If, after the first and any subsequent shift, the *
# variable value delayed for more than stored in the history array is *
# requested, the template will output value stored in the first cell *
# and the warning that the requested value was overridden. *
# *
# IMPORTANT! THE TEMPLATE CAN NOT BE USED AT AC AND CONTINUE TR *
# ANALYSES. *
# IMPORTANT! PARAMETER history_length CAN NOT BE ALTERED. IF THE *
# PARAMETER HAS BEEN CHANGED, THE DESIGN *
# RENETLISTED. *
# *
# The template is connected to a system with 3 terminals: *
# in1 - input control pin which can be connected to any output *
# control pin. *
# in2 - input control pin through which instantaneous value of *
# time delay is provided. The terminal can be connected to any output *
# control pin. *
# out - output control pin which can be connected to any input *
# control pin. *
# *
# The template has two parameters: *
# init_output - output signal until the simulation time exceeds *
# the delay time (nu). The parameter is set to 0 by default. *
# history_length - array size in time-input pairs. The variable *
# at "in1" input and respective time instances are stored in this array.*
# The larger the array, the more memory is required by Saber. The *
# value of the parameter is set to 512 by default. *
#************************************************************************
encrypted \
element template c_var_delay in1 in2 out = init_output, history_length
input nu in1, # Input 1, main signal
in2 # Input 2, delay time
output nu out # Output.
number init_output = 0, # The output value until time < time_delay
history_length = 512 # Storage size in time-input pairs
{
val nu outval # Intermediate variables
val nu error_level # Error level
state nu prev_input = 0 # Variable value at previous successful step
state time prev_time = 0 # Time at previous successful step
state nu before, # Internal variables
after,
dum
#
# The remainder of this template is encrypted to
# protect the integrity of the code and the intellectual property
# contained within.
#
# Questions you may have about this template are
# answered in the online template documentation.
# You may request a copy of the unencrypted source
# code by contacting your Sales Representative or Technical Support
# Engineer.
0
回復
@andy.zhou.nuaa
如下為此模板的相關說明,你可以參考一下;如果看不懂的話,我看這兩天是否有空把它理一下給你。#VERSIONmt_template/analogy/control/c_var_delay.dec@@/main/8#DATED11-Nov-2004.16:13:50#encryptedelementtemplatec_var_delayin1in2 out=#init_output,history_length#**********************************************************************## Copyright2004SynopsysInc. ## Thistemplateandtheassociateddocumentationare ## confidentialandproprietarytoSynopsys,Inc. ## Youruseordisclosureofthistemplateissubjectto ## thetermsandconditionsofawrittenlicenseagreement ## betweenyou,oryourcompany,andSynopsys,Inc ##**********************************************************************##Thetemplateimplementsavariabletimedelayfunction:*#out=in1(time-in2,iftime>=in2,*#out=init_outputiftime
我改了一下history_length的值,終于好了。非常謝謝你!
0
回復