Subversion Repositories wimsdev

Rev

Rev 20 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
20 reyssat 1
Each file *.data in this zone defines a circuit type.
2
 
3
The name of the subdirectory is the number of components to fill in the type.
4
 
5
File syntax: datafile.
6
 
7
Record 0: comment.
8
 
9
Record 1: description (text).
10
 
11
Record 2: x,y,n,(pairing data)
12
(x,y)=size, n=number of components.
13
 
14
pairing data is a list of first components of each component pair in series.
15
The second component of the pair must be at the right or the bottom of the
16
first one, according to the orientation of the component. The distance between
17
the two must be 3 units.
18
 
19
If the first component of the pair is a wire, the second one will appear
20
in the middle of the two.
21
 
22
Record 3: component information.
23
One line per component, format x1,y1,x2,y2,o,e1,e2
24
(x1,x2)=position of component, (x2,y2)=position of annotation, o=orientation.
25
o=0: horizontal. o=1: vertical.
26
 
27
e1,e2 (optional): extending wire distances (with respect to the center).
28
Should be one positive and one negative.
29
 
30
Record 4: Draw command for wiring and fixed components.
31
 
32
Record 5: dot positions.
33
 
34
##################################################
35
 
36
The two scripts "data2ps" and "ps2data" translates the datafile to and
37
from postscript circuit files recognizable by xcircuit.
38
 
4926 bpr 39
######################
40
Components :
41
mksymbols generate compdata.for_sh and the images in gifs/circuits