Blame view

SRC/SPICE_CABLE_BUNDLE_MODULES/circuit_symbol_module.F90 3.53 KB
886c558b   Steve Greedy   SACAMOS Public Re...
1
!
fe64b32b   Chris Smartt   Update file heade...
2
! This file is part of SACAMOS, State of the Art CAble MOdels for Spice. 
886c558b   Steve Greedy   SACAMOS Public Re...
3
4
5
! It was developed by the University of Nottingham and the Netherlands Aerospace 
! Centre (NLR) for ESA under contract number 4000112765/14/NL/HK.
! 
fe64b32b   Chris Smartt   Update file heade...
6
! Copyright (C) 2016-2018 University of Nottingham
886c558b   Steve Greedy   SACAMOS Public Re...
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
! 
! SACAMOS 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 3 of the License, or (at your option) any later 
! version.
! 
! SACAMOS 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.
! 
! A copy of the GNU General Public License version 3 can be found in the 
! file GNU_GPL_v3 in the root or at <http://www.gnu.org/licenses/>.
! 
! SACAMOS uses the EISPACK library (in /SRC/EISPACK). EISPACK is subject to 
! the GNU Lesser General Public License. A copy of the GNU Lesser General Public 
! License version can be found in the file GNU_LGPL in the root of EISPACK 
! (/SRC/EISPACK ) or at <http://www.gnu.org/licenses/>.
! 
! The University of Nottingham can be contacted at: ggiemr@nottingham.ac.uk
!
fe64b32b   Chris Smartt   Update file heade...
28
!
886c558b   Steve Greedy   SACAMOS Public Re...
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
! File Contents:
! MODULE circuit_symbol_module
!
! NAME
!     MODULE circuit_symbol_module
!
! DESCRIPTION
!     Data structures relating to the drawing of circuit symbols for spice transmission line models
!     
! COMMENTS
!     Ngspice and LTspice only at the moment
!
! HISTORY
!    started 15/12/2015 CJS
!
MODULE circuit_symbol_module

USE type_specifications

IMPLICIT NONE

! Gschem (for Ngspice) symbol parameters:
! parameters which define the size of the circuit symbol
! all parameters are defined in mils (1/1000 of an inch)
! see http://wiki.geda-project.org/geda:file_format_spec

! x extent of symbol - this is fixed
integer,parameter    :: xmin_symbol    =200
integer,parameter    :: xmax_symbol    =1800

! y extent of symbol varies with the numbe of conductors
integer,parameter    :: ymin_symbol    =000

integer,parameter    :: ymin_offset    =100
integer,parameter    :: ymax_offset    =100
integer,parameter    :: ymax_text_offset =200

! separation of the conducor pins in the y direction
integer,parameter    :: y_conductor_spacing    =200

! length of connection pins in the x direction
integer,parameter    :: x_pin_length        =200

! We need to check the version number - how do we specify this? Is it related to the version of gEDA?
character(LEN=12),parameter    :: symbol_version='v 20050820 1'


! LTpsice symbol parameters:
! parameters which define the size of the circuit symbol

! It appears that the grid used in the LTspice scematic capture uses a grid with spacing 16 points
! so distances here should be a multiple of 16 points.

! x extent of symbol - this is fixed
integer,parameter    :: LT_xmin_symbol    =16
integer,parameter    :: LT_xmax_symbol    =192

! y extent of symbol varies with the numbe of conductors
integer,parameter    :: LT_ymin_symbol    =00

integer,parameter    :: LT_ymin_offset    =16
integer,parameter    :: LT_ymax_offset    =16
integer,parameter    :: LT_ymax_text_offset =32

! separation of the conducor pins in the y direction
integer,parameter    :: LT_y_conductor_spacing    =32

! length of connection pins in the x direction
integer,parameter    :: LT_x_pin_length        =16

! We need to check the version number - how do we specify this?
character(LEN=9),parameter    :: LT_symbol_version='Version 4'

END MODULE circuit_symbol_module