Move back files that belong with qucs/contrib.

This commit is contained in:
Guilherme Brondani Torri 2016-01-26 22:46:01 +01:00
parent 1d91939c60
commit 3bb868679f
4 changed files with 4143 additions and 0 deletions

5
contrib/CMakeLists.txt Normal file
View File

@ -0,0 +1,5 @@
# Netlist preprocessor script and man page
INSTALL( FILES ps2sp DESTINATION bin/ )
INSTALL( FILES ps2sp.1 DESTINATION share/man/man1 )

30
contrib/Makefile.am Normal file
View File

@ -0,0 +1,30 @@
## Process this file with automake to produce Makefile.in
#
# qucs/contrib/Makefile.am
#
# Automake input file.
#
# Copyright (C) 2007, 2008 Stefan Jahn <stefan@lkcc.org>
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This software is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this package; see the file COPYING. If not, write to
# the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
# Boston, MA 02110-1301, USA.
#
dist_bin_SCRIPTS = ps2sp
dist_man_MANS = ps2sp.1
CLEANFILES = *~ *.rej *.orig
MAINTAINERCLEANFILES = Makefile.in

4020
contrib/ps2sp Executable file

File diff suppressed because it is too large Load Diff

88
contrib/ps2sp.1 Normal file
View File

@ -0,0 +1,88 @@
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.36.
.TH PS2SP "1" "June 2007" "ps2sp version 4.14" "User Commands"
.SH NAME
ps2sp \- manual page for ps2sp version 4.14
.SH SYNOPSIS
.B ps2sp
\fR[\fIOPTION\fR] \fIinfile > outfile\fR
.SH DESCRIPTION
.TP
This utility is a SPICE netlist preprocessor.
.TP
It converts netlists in PSPICE syntax to an equivalent SPICE3/XSPICE netlist syntax.
.TP
Recognized are nearly all PSPICE features like:
.IP "*" 4
local and global parameter (expression) definition (.PARAM)
.IP "*" 4
parameter (expression) passing to subcircuits (PARAMS:)
.IP "*" 4
local and global function definition (.FUNC)
.IP "*" 4
E and G-device VALUE=f(V,I), TABLE and POLY lines
.IP "*" 4
E and G-device functions like IDT(), DDT(), LIMIT(), PWRS(), PWR(), IF(),
MAX(), MIN(), relational ops, ...
.IP "*" 4
R-device VALUE=f(V,I), L-device FLUX=f(V,I) and C-device Q=f(V,I)
.IP "*" 4
spice2 like C and L-device POLY expressions
.IP "*" 4
pspice VSWITCH and ISWITCH models
.IP "*" 4
pspice .PROBE lines (also with expressions)
.IP "*" 4
R-device lines with temperature coefficients like TC=tc1,tc2
.IP "*" 4
pspice .STEP PARAM lines (not yet tested on GNU/Linux)
.IP "*" 4
pspice .LIB and .INC(lude) lines (not yet tested on GNU/Linux)
.SH OPTIONS
\fB\-h\fR, \fB\-\-help\fR
displays the help screen
.TP
\fB\-v\fR, \fB\-\-version\fR
display version information and exit
.TP
\fB\-sp3\fR
switch means conversion of pspice table to spice 3 b\-source
instead of xspice core model (default)
.TP
\fB\-ltspice\fR
switch means conversion of ^ spice 3 power to ** ltspice
power and addition of tripdv=1 tripdt=1 in b\-lines
.TP
\fB\-debug\fR
for debugging all .param .func and .pfunc definitions
(default is nodebug)
.TP
\fB\-tosub\fR
only output subckt expansions
.TP
\fB\-fromsub\fR
inputfile is a sub.tmp file
.TP
\fB\-tolib\fR
only output lib expansions
.TP
\fB\-fromlib\fR
inputfile is a lib.tmp file
.TP
\fB\-check\fR
determine the same count of open and closed paranthesis
in b\-lines (default is nocheck)
.TP
\fB\-notinylines\fR
produces longer b\-lines for some functions (default is
tinylines = shorter b\-lines)
.TP
\fB\-xornot\fR
allows ^ and ~ operators in the netfile (don't mix with ^ as
power operator) use the ** operator as power instead
.SH "REPORTING BUGS"
Report bugs to Friedrich Schmidt <frie.schmidt@aon.at>
.SH COPYRIGHT
Copyright \(co 2003, 2004, 2005, 2006, 2007 Friedrich Schmidt <frie.schmidt@aon.at>
.PP
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.