cv 05 ssaeo introducing slps
TRANSCRIPT
-
7/25/2019 Cv 05 SSAEO Introducing SLPS
1/12
Introducing SLPSThis chapter introduces the PSpice SLPS interface and lists the requirements to run
SLPS:
Introducing the PSpice SLPS Interface
Requirements for PSpice SLPS Interface
Introducing the PSpice SLPS InterfacePSpice SLPS Interface is an interface tool that links PSpice to the MATLAB
modeling tool and also to Simulink system simulator pro!ided "y The Math#orks$ This
interface tool has "een de!eloped in partnership #ith %y"ernet Systems %o Ltd$
PSpice is a SPI%&'"ased simulator used for simulating electrical and electronic circuits
and The Math#orks tools are used for system designing$ PSpice SLPS interface
integrates these t#o simulators to pro!ide a simulation flo# that can "e used to design
any kind of system #ith electronic su"'systems$
%ircuits #ith PSpice models can no# "e included in system model$ PSpice
SLPS Interface allo#s users to su"stitute electronic "locks in PSpice #hile the rest ofthe design is simulated using MATLAB or Simulink$ As a result you can no# use a
single prototype to co'simulate the electrical and mechanical systems$ %o'simulation
en!ironment allo#s to simulate #hole system #ith more realistic element models
"efore trial manufacturing$
Requirements for PSpice SLPS InterfaceTo "e a"le to use PSpice SLPS Interface you need to acquire SLPS license from
%adence and should ha!e the follo#ing com"ination of The Math#orks and (r%A)
products installed on your system:
The Math#orks products *R+, or higher-a$ MATLAB .$/ ' 0$1
"$ Simulink /$2 ' .$.
Note: SLPS does not support 64-bit MALA!$ %adence (r%A) products *R+.$2 or later- or %adence Allegro products *R+.$2 or later-
Install one of the follo#ing schematic designer tools:
a$ %apture
"$ %apture %IS
c$ Allegro )esign &ntry %IS
d$ Allegro )esign &ntry 3)L
Install one of the follo#ing simulators:
a$ PSpice A4)
"$ AMS Simulator
Instead of a"o!e t#o products you can also install one of the follo#ing 5nison
products:
a$ 5nison &&
"$ 5nison 5ltra
Note: SLPS 6$7 does not #ork #ith (r%A) R+/$0 or lo#er$
To set up PSpice SLPS you need to set the SLPS path to the PSpice installation under
MATLAB$
Set the SLPS path as 8%adence9Installation;tools;pspice;slps$
-
7/25/2019 Cv 05 SSAEO Introducing SLPS
2/12
run the 8%adence9installation;tools;pspice;slps;slpssetup$p file from MATLAB to setup the
SLPS path$
The SLPS demonstrations and e=ample files are a!aila"le from
8%adence9installation;tools;pspice;capture9samples;SLPSdemos and
8%adence9installation;tools;pspice;concept9samples;SLPSdemos$
"reating a Schematic
This chapter e=plains ho# to create and edit a schematic using either (r%A) %apture or
Allegro )esign &ntry 3)L simulate the schematic using PSpice and then create and
setup a "lock diagram using MATLAB:
%reating a schematic
5sing PSpice A4) to Simulate Schematic
%reating and Setting 5p a Block )iagram 5sing MATLAB
"reating a schematic >ou can use either (r%A) %apture or Allegro )esign &ntry 3)L to create and editschematics$ (r%A) %apture is a schematic design tool set for the ?indo#s
en!ironment$ ?ith %apture you can draft schematics and produce connecti!ity and
simulation information for printed circuit "oards and programma"le logic designs$
)esign &ntry 3)L helps you capture the design of a Printed %ircuit Board *P%B- in the
schematic
form$ )esign &ntry 3)L organi@es schematic information into pages$ It captures and
displays only
one page of schematic information at a time$ )esign &ntry 3)L is a "y'reference editor
"ecause
it references all parts in the schematic from !arious li"raries that reside at the referenceor local
area$ To kno# more a"out )esign &ntry 3)L refer to theAllegro Design Entry HDL
User Guide$
SLPS uses files created #ith (r%A) %apture and Allegro )esign &ntry 3)L so you cannot
directly assign net lists created #ith applications other than %apture or )esign &ntry 3)L$
But you can use %apture to con!ert a SPI%& net list to a sym"ol and incorporate it into a
circuit$ After inserting the sym"oli@ed net list into a circuit perform transient analysis
#ith PSpice and then assign it to SLPS$ Refer to to the chapter )esigning for other &)A
applications of the online (r%A) %apture 5sers uide on ho# to incorporate a SPI%&
netlist into a circuit$ Refer to the Transient analysis chapter of the online PSpice 5sers
uide on ho# to perform transient analysis using PSpice$The follo#ing section e=plains ho# to create schematics$
#sing $r"A% "apture>ou need to perform the follo#ing steps to create a schematic using %apture:
+$ %reate a proCect in (r%A) %apture
6$ %reate the schematic
>ou #ill use the De# ProCect dialog "o= as sho#n in the
-
7/25/2019 Cv 05 SSAEO Introducing SLPS
3/12
>ou can enter the name of the proCect in the Dame te=t "o=$ >ou can also select the
purpose of the
ne# proCect from the options under %reate De# ProCect 5sing$ The Location te=t "o=
allo#s you to
specify a #ork directory to sa!e your files$
Perform the follo#ing steps to create a ne# proCect:
+$ Start (r%A) %apture
6$ %hoose
-
7/25/2019 Cv 05 SSAEO Introducing SLPS
4/12
&igure '-' "reate PSpice Pro(ect dia)og bo*
0$ Select %reate a Blank ProCect and click (E$
The proCect #indo# and schematic page is displayed as sho#n in ou ha!e created the proCect no# you can create a schematic$ %reate the circuit as
sho#n in
-
7/25/2019 Cv 05 SSAEO Introducing SLPS
5/12
&igure '-4 "ircuit ,ith M$S&. resistors. and /o)tage sources
The input signal of the circuit for !erifying operation is a 2$/F #ide +'shot pulse$
Attach the node name G(5TG to the drain node$ >ou #ill use this name to specify output
!oltage from the SLPS "lock later$
-
7/25/2019 Cv 05 SSAEO Introducing SLPS
6/12
"reating and Setting #p a !)oc0 %iagram #sing MALA!
In this section you #ill learn ho# to use MATLAB to create a "lock set SLPS "lock
parameters set up
Simulink analyses and simulate using "oth PSpice and Simulink$
"reating a !)oc0To create a "lock:
+$ Start MATLAB
6$ Set the current MATLAB directory to "e the #ork directory #here PSpice files
are sa!ed
#hich is c:;#ork for the e=ample in this chapter$
,$
-
7/25/2019 Cv 05 SSAEO Introducing SLPS
7/12
+$ Specify the repeating sequence parameters as sho#n in ou can place only one SLPS "lock in a single Simulink model$ If you #ant to incorporate
multiple circuits use %apture to create multiple circuit diagram pages #ithin a proCect and
connect all the data lines in the Simulink model #hich need to "e connected to the circuit
to a single SLPS "lock$
Do# that you ha!e created a "lock and sa!ed it you #ill specify the "lock parameters$
Setting #p !)oc0 Parameters
http://hi.baidu.com/fc/editor/slps_02.html#1039524http://hi.baidu.com/fc/editor/slps_02.html#1039524 -
7/25/2019 Cv 05 SSAEO Introducing SLPS
8/12
>ou #ill use the SLPS settings #indo# to specify the follo#ing "lock parameters:
the %apture proCect file
the input sources and outputs for the SLPS "lock
the PSpice data sa!ing options
)ou"le'click the SLPS "lock in the MATLAB command #indo# to open the SLPS
Settings#indo# as sho#n in
-
7/25/2019 Cv 05 SSAEO Introducing SLPS
9/12
proCect has only one file tran$cir$ Therefore it is selected automatically$
>ou can click the Select "utton under Input Sources to display the po#er sources in a
circuit in
the ID4(5T select dialog "o=$ >ou can then select the po#er source that you #ant to
designate
as the source for the SLPS "lock$ In this e=ample select the source H+$Note: At least one input must "e designated for SLPS "ut you may #ant to assign a
circuit
#ith only output to SLPS *i$e$ an oscillator-$ In this case create a dummy circuit *for
e=ample
#ith a po#er source and resistance- #ithin the circuit diagram page do not connect it
#ith the original
circuit and allocate some data to this po#er source$
To specify an output for the SLPS "lock click the Select "utton under (utputs$ In this
e=ample
select H*(5T- from the list displayed in the ID4(5T select dialog "o=$
After specifying the input sources and output you can specify data sa!ing options forPSPice in
the opt9settings dialog "o=$ To open the opt9settings dialog "o= click (ptions
Parameters in the
SLPS settings #indo#$ In this e=ample specify the PSpice )ata Sa!ing (ption as
Selection (nly$
If you select any option other than none from the PSpice)ata Sa!ing (ption list the
analysis speed #ill "e slo#er$ Therefore it is not recommended to change this option unless
you need it$
After completing the settings click (E to close the SLPS settings #indo#$ >ou can no#
set up Simulink
analyses$
Setting #p Simu)in0 Ana)3ses>ou can use the Simulation Parameters dialog "o= sho#n in
-
7/25/2019 Cv 05 SSAEO Introducing SLPS
10/12
&igure '-1' Simu)ation Parameters dia)og bo*
In the Simulation Parameters dialog specify the follo#ing parameters:
5nder Simulation time enter ,e'. *,usec- into the Stop time te=t "o=$
5nder Sol!er (ptions:
o In the Type list "o=es specify
-
7/25/2019 Cv 05 SSAEO Introducing SLPS
11/12
If you selected any option other than none in the PSpice)ata Sa!ing (ption in SLPS
settings
#indo# you can display the SLPS results using PSpiceA4)$ To display the SLPS
simulation
results in PSpice perform the follo#ing tasks:
+$
-
7/25/2019 Cv 05 SSAEO Introducing SLPS
12/12