10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Copyright (c) P.J.Gawthrop 1998
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
###############################################################
# Inform user
echo Creating $1_ssl.r -- NOTE this is for SISO systems only.
# Remove the old log file
rm -f smo2ssl_r.log
# Use reduce to accomplish the transformation
reduce >smo2ssl_r.log << EOF
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
|
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# Copyright (c) P.J.Gawthrop 1998
###############################################################
## Version control history
###############################################################
## $Id$
## $Log$
## Revision 1.1 1998/01/23 09:31:03 peterg
## Initial revision
##
###############################################################
Nu=`mtt_getsize $1 u`
Ny=`mtt_getsize $1 y`
if [ "$Nu" = "1" ]; then
if [ "$Ny" = "1" ]; then
blurb=' for this siso system'
else
blurb=" using first output of $Ny"
fi
else
if [ "$Ny" = "1" ]; then
blurb=" using first input of $Nu"
else
blurb=" using first input of $Nu and using first output of $Ny"
fi
fi
# Inform user
echo Creating $1_ssl.r $blurb
# Remove the old log file
rm -f smo2ssl_r.log
# Use reduce to accomplish the transformation
reduce >smo2ssl_r.log << EOF
|