summaryrefslogtreecommitdiff
path: root/static/unix-v10/man5/cdl.10.5
blob: c298fa6b75f89aa090931acf3b82565556980b0a (plain)
1
2
3
4
5
6
7
8
9
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
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
.PD .2i
.ds or \fP\ |\ \fB
.de cg
.sp
.PP
.ne 5
.B \\$1
.PP
..
.TH CDL 10.5 UCDS(almost obsolete)
.SH NAME
cdl \- circuit description language
.SH DESCRIPTION
The circuit descriptions used by the various design aid programs
are expressed in dialects of the circuit design language described below.
A complete description consists of two parts;
an electrical circuit with chips, pins and connecting signals,
and a physical layout with pins and chip positions.
The commands described below are recommended;
others exist and may work but are regarded as obsolete.
.sp
.PP
.SS LOGICAL DESIGN
.PP
A circuit consists of
.I chips
connected by
.I signals.
The point of connection is denoted by a
.I pin.
Each chip has a
.I type
which describes its logical and electrical
characteristics.
(For example, \fB74S181\fP is a chip type.)
.PP
Types, signals and chips are identified by name.
Pins  are identified by name and number.
A
.I name
is a string of letters,
digits or any of the characters
.BR +\-.\ $\ /:<=>[]\(ul .
Sometimes, the first character
may not be a digit.
A name may not be longer than 16 characters.
.PP
In the following description,
literals appear as
.B bold,
whereas names are in
.I italic.
[ ] enclose an optional item and
a list of items is written
.PP
.RS
{\fIitem\fR}
.RE
.PP
Commands are separated by either newline or
semi-colon.
A comment
starts with a
.B %
and ends with a newline
and may appear on any line.
All white space serves only to separate tokens.
.cg General
.B .p
.I number
.br
Specifies the page number for subsequent input.
.PP
.B .f
[
.I file
]
.br
Subsequent input originated in
.IR file .
If
.I file
is not present, the previous file name is restored.
.PP
.B .q
.br
End of file.
.cg Signal\ Description
.I signal
[
.I pin-number
] [ [
.I ,
]
.I pin-name
]
.br
.I name
=
.I signal
.br
Lines that do not start with a period are signal
definition lines.
Signal definitions refer to the most recent
.B .c
command, the pin name and number refers to the chip.
.cg Circuit\ Description
.B .c
.I name
[ [
.B ,
]
.I type
]
.br
.B .o
.I name
[ [
.B ,
]
.I type
]
.br
Instantiates a chip
.I name,
of type
.IR type .
This is typically used for I/O connectors.
The command may occur more than once.
The type of a chip need only be specified
once in a circuit description.
Signal descriptions that follow
a
.B .c
or
.B .o
command refer to pins on the chip.
.PP
.ne 10
.B .c
.I name
.B =
.I chip
.br
.I chip
must be previously defined and
.I name
is a synonym for
.I chip.
.PP
.B .m
.I name1 name2
.br
Macro parameter definition.
The signal
.I name1
is to be associated with macro parameter
.I name2\|.
.PP
.B .h
.I signal
.br
Hand wired signal.
The argument is the
.I name
of a signal that will be ignored by an
automatic wiring program.
.cg Chip\ Type\ Description
.B .t
.I name package
.RI [ pin ]\ ...
.br
Define a chip type
.I name.
The name of the
.I package
in which it is installed,
and pin numbers,
.I pin,
for the special signal connections
are specified.
The special voltage
pin numbers, if present, must be in the same
sequence with which the special signals are numbered.
This usage is discouraged;
use the \f3.t[tT]\fP commands described below.
(See
.B .v
command.)
All commands of the form ".t?" are meant to follow a .t line.
.PP
.B .t
.I name
.B =
.I type
.br
.I name
is a synonym for
.IR type .
.PP
.BI .tt \ sequence_of_single_character_pin_descriptors
.br
The number of characters must equal the numbers of pins on this \fItype\fP\|.
The meaning of the descriptors is given in \fIwcheck\fP\|.
.PP
.BI .tT \ sequence_of_single_character_pin_descriptors
.br
This means the same as the equivalent
.B .tt
command except that every
.B [gvwxyz]
pin must have a corresponding
.B .vb
pin.
.PP
.B .ta
.I pin1
\&...
.I pin2
\&...
.br
.I pin1
\&...
is the set of address pins, in order,
such that the most significant address bit
appears first in the list.
.I pin2
\&...
is the set of output pins.
.PP
.B .td
.I delay
.I pin1
\&...
.B \-
.I pin2
\&...
.br
The propagation delay (conventionally in nanoseconds) from inputs
.I pin1 ...
to outputs
.I pin2 ...
is given.
.PP
.B .ti
.I hi
.I lo
.I pin
\&...
.br
The input (or output) current range for the set of pins
is given by
.I hi
and
.I lo.
Current is conventionally expressed in milliamperes.
.PP
.B .tp
.I name
.I number
\&...
.br
The given
pin
.I name
is associated with the pin
.I number.
.I Name
may contain generators such as
.B Q[0-7]
which cause pin names
.B Q0
.B \&...
.B Q7
to be assigned to the pin numbers given.
Multiple bracket constructs may be used.
In any case, the resulting list is lexicographically sorted before
assigning to pin numbers.
.PP
.B .ts
.I setup
.I pin
\&...
.br
Specifies the setup time required by the device
at the pins given.
.PP
.B .tw
.I c1
.I c2
.br
.I c1
is the average current drawn by the device
in milliamperes and
.I c2
is the maximum.
Both are specified as floating point numbers.
.SH
.ne 9
.sp
.PP
.B PHYSICAL DESIGN
.PP
The physical design
consists of a
.I board
containing
.IR pin-holes .
The description details the positions of the pin-holes and the
position and orientation of the chips.
No special case is made of I/O connectors;
they are best considered as unmoveable packages.
The description is divided into two files;
details can be found in
.IR board (7).
.PP
The coordinate system for the board is with
.I x
increasing to the right and
.I y
increasing upwards.
The origin is at the lower left corner;
thus, no coordinate should ever be negative.
The circuit board and components mounted on it are described
as rectangles.
They are positioned so that their sides are parallel to one or other
of the axes used to describe circuit board geometry.
Measurements are expressed in
units of
.B 1/100
of an inch.
All are integers and have no explicit decimal point.
Coordinates are expressed as pairs of integers separated by `\fB/\fR'
with
the
.I x
coordinate appearing first.
All rectangular regions are half open;
the upper and right edges are outside the rectangle.
.PP
It is sometimes necessary to provide a list of
coordinates.
Invariably each coordinate is associated with a numbered item
(say, a pin number).
A one item list consists of the item
number followed by its coordinates as in
.RS
.PP
28 170/250
.RE
A series of equally spaced
and consecutively numbered items can be described by
giving the first and last item descriptions and separating the
two with `\fB\-\fR' as in
.RS
.PP
28 170/250 \- 30 190/200
.RE
(item number 29 appears at position 180/225).
If the item numbers are equally spaced but not consecutive
a step size can follow the `\fB\-\fR' as in
.RS
.PP
12 200/700 \-9 147 200/100
.RE
(which describes the positions of items numbered 12, 21, 30 etc.).
.cg Board\ Description
.B .B
.I string
.br
The board name is set to
.IR string .
.PP
.B .A
.I coord coord coord coord
.br
The points used in board alignment are
.IR "coord , coord , coord , coord ."
.PP
.B .K
.I "name pmin pmax ox oy cx cy"
.br
Define a package
.I name
with a bounding rectangle with lower left corner
.I (ox,oy)
and upper right corner
.I (cx,cy)
as values relative to pin
.I pmin
of the package.
The package has pins numbered from
.I pmin
to
.I pmax
inclusive;
expect trouble if
.I pmin
is not zero or one.
Placement of a package involves both its pins and rectangle.
The rectangle must not intersect any other placed package,
and there must be a pin-hole for each of the pins.
.PP
.B .ka
.I anything
.br
After skipping white space
the rest of the line is stored as an artwork reference.
.PP
.B .kd
.I letter
.br
Specifies the drill type for following
.B .kp
commands.
There can be multiple
.B .kd
commands per package.
Currently recognized drill types are found in
\f(CW/usr/jhc/pins/drills\fP.
.PP
.B .kp
.RI {\| pin
.IR coord }
.br
One or more
.B .kp
commands following a
.B .k
command
gives the list of pins
and their coordinates relative to pin
.IR pmin .
.PP
.B .ku
.br
Guarantees this package will not be moved by any automatic process.
.PP
.B .v
.I number name
.br
Define Voltage and Ground special signals.
The special signals are numbered consecutively from zero to five.
The arguments are
the special signal
.I number
and the signal
.I name
to which it corresponds.
.PP
.B .vb
.RI { pin
.IR coord }
.br
Special signal pin positions.
One or more
.B .vb
commands following a
.B .v
command gives the list of pins
and their positions on the circuit board.
The pins should be numbered consecutively from one.
.PP
.B .vd
.I number
.br
Specifies the drill type for following
.B .vb
commands.
There can be multiple
.B .vd
commands.
The types are as descibed for \f3.kd\fP.
.PP
.B .C
.I name coord orientation flags
.br
Specifies the position and orientation for the chip
.IR name .
The orientation is the number of right angles clockwise to
rotate the package.
The meaning of
.I flags
can be found in
.IR /usr/include/cdl.h ;
it should be initialised to zero.
.PP
.B .P
.I coord lx ly spacing diam
.br
Define a rectangular array of pin-holes with diameter of
.IR diam .
The lower left corner of the rectangle is
.IR coord ,
and the width and height are
.I lx,ly
respectively.
The pins are placed
.I spacing
apart.
If
.I spacing
is of the form
.IR sx / sy ,
the spacings in the
.IR x and y
directions are set independently.
.PP
.B .R
.I coord lx ly type
.br
Define a special rectangular region.
Type 
.B .A
defines a region that will not be used by the
automatic placement algorithm.
.PP
.B .W
.I chip1 pin1 chip2 pin2 net
.br
Define a wire link between
.I pin1
of
.I chip1
and
.I pin2
of
.IR chip2 .
The net name is
.IR net .
.sp 2
A line with any undefined key causes most programs to halt.
.SH SEE ALSO
.IR cdm (10.1)