File: lepton-netlist.html

package info (click to toggle)
lepton-eda 1.9.18-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 41,024 kB
  • sloc: ansic: 66,688; lisp: 29,508; sh: 6,792; makefile: 3,111; perl: 1,404; pascal: 1,161; lex: 887; sed: 16; cpp: 8
file content (707 lines) | stat: -rw-r--r-- 16,444 bytes parent folder | download | duplicates (3)
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
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
<!-- Creator     : groff version 1.22.4 -->
<!-- CreationDate: Sun May 29 15:04:59 2022 -->
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="generator" content="groff -Thtml, see www.gnu.org">
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<meta name="Content-Style" content="text/css">
<style type="text/css">
       p       { margin-top: 0; margin-bottom: 0; vertical-align: top }
       pre     { margin-top: 0; margin-bottom: 0; vertical-align: top }
       table   { margin-top: 0; margin-bottom: 0; vertical-align: top }
       h1      { text-align: center }
</style>
<title>lepton-netlist</title>

</head>
<body>

<h1 align="center">lepton-netlist</h1>

<a href="#NAME">NAME</a><br>
<a href="#SYNOPSIS">SYNOPSIS</a><br>
<a href="#DESCRIPTION">DESCRIPTION</a><br>
<a href="#GENERAL OPTIONS">GENERAL OPTIONS</a><br>
<a href="#BACKENDS">BACKENDS</a><br>
<a href="#EXAMPLES">EXAMPLES</a><br>
<a href="#AUTHORS">AUTHORS</a><br>
<a href="#COPYRIGHT">COPYRIGHT</a><br>
<a href="#SEE ALSO">SEE ALSO</a><br>

<hr>


<h2>NAME
<a name="NAME"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">lepton-netlist
- Lepton EDA Netlist Extraction and Generation</p>

<h2>SYNOPSIS
<a name="SYNOPSIS"></a>
</h2>



<p style="margin-left:11%; margin-top: 1em"><b>lepton-netlist</b>
[<i>OPTION</i> ...] [<b>-g</b> <i>BACKEND</i> | <b>-f</b>
<i>FILE</i>] [<i>--</i>] <i>FILE</i> ...</p>

<h2>DESCRIPTION
<a name="DESCRIPTION"></a>
</h2>



<p style="margin-left:11%; margin-top: 1em"><b>lepton-netlist</b>
is a netlist extraction and generation tool, and is part of
the Lepton EDA (Electronic Design Automation) toolset. It
takes one or more electronic schematics as input, and
outputs a netlist. A netlist is a machine-interpretable
description of the way that components in an electronic
circuit are connected together, and is commonly used as the
input to a PCB layout program such as <b>pcb</b>(1) or to a
simulator such as <b>gnucap</b>(1).</p>

<p style="margin-left:11%; margin-top: 1em">A normal
<b>lepton-netlist</b> run is carried out in two steps.
First, the <b>lepton-netlist</b> frontend loads the
specified human-readable schematic <i>FILE</i>s, and
compiles them to an in-memory netlist description. Next, a
&rsquo;backend&rsquo; is used to export the connection and
component data to one of many supported netlist formats.</p>


<p style="margin-left:11%; margin-top: 1em"><b>lepton-netlist</b>
is extensible, using the Scheme programming language.</p>

<h2>GENERAL OPTIONS
<a name="GENERAL OPTIONS"></a>
</h2>


<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">


<p style="margin-top: 1em"><b>-q</b></p></td>
<td width="9%"></td>
<td width="77%">


<p style="margin-top: 1em">Quiet mode. Turns off all
warnings/notes/messages.</p> </td></tr>
</table>

<p style="margin-left:11%;"><b>-v</b>, <b>--verbose</b></p>

<p style="margin-left:23%;">Verbose mode. Output all
diagnostic information.</p>

<p style="margin-left:11%;"><b>-L</b> <i>DIRECTORY</i></p>

<p style="margin-left:23%;">Prepend <i>DIRECTORY</i> to the
list of directories to be searched for Scheme files.</p>

<p style="margin-left:11%;"><b>-g</b> <i>BACKEND</i></p>

<p style="margin-left:23%;">Specify the netlist backend to
be used.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>-f</b> <i>FILE</i></p></td>
<td width="1%"></td>
<td width="77%">


<p>Load and use netlist backend from <i>FILE</i>.
<i>FILE</i> is expected to have name like
&quot;gnet-NAME.scm&quot; and contain entry point function
NAME (where NAME is the backend&rsquo;s name).</p></td></tr>
</table>

<p style="margin-left:11%;"><b>-O</b> <i>STRING</i></p>

<p style="margin-left:23%;">Pass an option string to the
backend.</p>

<p style="margin-left:11%;"><b>-b</b>,
<b>--list-backends</b></p>

<p style="margin-left:23%;">Print a list of available
netlist backends.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>-o</b> <i>FILE</i></p></td>
<td width="1%"></td>
<td width="77%">


<p>Specify the filename for the generated netlist. By
default, output is directed to &rsquo;output.net&rsquo;. If
&rsquo;-&rsquo; is given instead of a filename, the output
is directed to the standard output.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>-l</b> <i>FILE</i></p></td>
<td width="1%"></td>
<td width="77%">


<p>Specify a Scheme file to be loaded before the backend is
loaded or executed. This option can be specified multiple
times.</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>-m</b> <i>FILE</i></p></td>
<td width="1%"></td>
<td width="77%">


<p>Specify a Scheme file to be loaded between loading the
backend and executing it. This option can be specified
multiple times.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>-c</b> <i>EXPR</i></p></td>
<td width="1%"></td>
<td width="77%">


<p>Specify a Scheme expression to be executed during
<b>lepton-netlist</b> startup. This option can be specified
multiple times.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>-i</b></p></td>
<td width="1%"></td>
<td width="77%">


<p>After the schematic files have been loaded and compiled,
and after all Scheme files have been loaded, but before
running the backend, enter a Scheme read-eval-print
loop.</p> </td></tr>
</table>

<p style="margin-left:11%;"><b>-h</b>, <b>--help</b></p>

<p style="margin-left:23%;">Print a help message.</p>

<p style="margin-left:11%;"><b>-V</b>, <b>--version</b></p>

<p style="margin-left:23%;">Print <b>lepton-netlist</b>
version information.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="3%">


<p><b>--</b></p></td>
<td width="9%"></td>
<td width="77%">


<p>Treat all remaining arguments as schematic filenames.
Use this if you have a schematic filename which begins with
&rsquo;-&rsquo;.</p> </td></tr>
</table>

<h2>BACKENDS
<a name="BACKENDS"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">Currently,
<b>lepton-netlist</b> includes the following backends:</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p style="margin-top: 1em"><b>allegro</b></p></td>
<td width="1%"></td>
<td width="55%">


<p style="margin-top: 1em">Allegro netlist format.</p></td>
<td width="22%">
</td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>bae</b></p></td>
<td width="1%"></td>
<td width="55%">


<p>Bartels Autoengineer netlist format.</p></td>
<td width="22%">
</td></tr>
</table>

<p style="margin-left:11%;"><b>bom</b>, <b>bom2</b></p>

<p style="margin-left:23%;">Bill of materials
generation.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>calay</b></p></td>
<td width="1%"></td>
<td width="39%">


<p>Calay netlist format.</p></td>
<td width="38%">
</td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>cascade</b></p></td>
<td width="1%"></td>
<td width="39%">


<p>RF Cascade netlist format</p></td>
<td width="38%">
</td></tr>
</table>

<p style="margin-left:11%;"><b>drc</b>, <b>drc2</b></p>

<p style="margin-left:23%;">Design rule checkers
(<b>drc2</b> is recommended).</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">


<p><b>eagle</b></p></td>
<td width="5%"></td>
<td width="77%">


<p>Eagle netlist format.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">


<p><b>ewnet</b></p></td>
<td width="5%"></td>
<td width="77%">


<p>Netlist format for National Instruments ULTIboard layout
tool.</p> </td></tr>
</table>

<p style="margin-left:11%;"><b>futurenet2</b></p>

<p style="margin-left:23%;">Futurenet2 netlist format.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">


<p><b>geda</b></p></td>
<td width="3%"></td>
<td width="77%">


<p>Native gEDA netlist format (mainly used for testing and
diagnostics).</p> </td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">


<p><b>gossip</b></p></td>
<td width="3%"></td>
<td width="77%">


<p>Gossip netlist format.</p></td></tr>
</table>

<p style="margin-left:11%;"><b>gsch2pcb</b></p>

<p style="margin-left:23%;">Backend used for <b>pcb</b>(1)
file layout generation by <b>gsch2pcb</b>(1). It is not
recommended to use this backend directly.</p>

<p style="margin-left:11%;"><b>liquidpcb</b></p>

<p style="margin-left:23%;">LiquidPCB netlist format.</p>

<p style="margin-left:11%;"><b>mathematica</b></p>

<p style="margin-left:23%;">Netlister for analytical
circuit solving using Mathematica.</p>

<p style="margin-left:11%;"><b>maxascii</b></p>

<p style="margin-left:23%;">MAXASCII netlist format.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">


<p><b>osmond</b></p></td>
<td width="3%"></td>
<td width="34%">


<p>Osmond netlist format.</p></td>
<td width="43%">
</td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="9%">


<p><b>pads</b></p></td>
<td width="3%"></td>
<td width="34%">


<p>PADS netlist format.</p></td>
<td width="43%">
</td></tr>
</table>

<p style="margin-left:11%;"><b>partslist1</b>,
<b>partslist2</b>, <b>partslist3</b></p>

<p style="margin-left:23%;">Bill of materials generation
backends (alternatives to <b>bom</b> and <b>bom2</b>).</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>PCB</b></p></td>
<td width="1%"></td>
<td width="77%">


<p><b>pcb</b>(1) netlist format.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>pcbpins</b></p></td>
<td width="1%"></td>
<td width="77%">


<p>Generates a <b>pcb</b>(1) action file for forward
annotating pin/pad names from schematic to layout.</p></td></tr>
</table>

<p style="margin-left:11%;"><b>protelII</b></p>

<p style="margin-left:23%;">Protel II netlist format.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="7%">


<p><b>redac</b></p></td>
<td width="5%"></td>
<td width="42%">


<p>RACAL-REDAC netlist format.</p></td>
<td width="35%">
</td></tr>
</table>

<p style="margin-left:11%;"><b>spice</b>,
<b>spice-sdb</b></p>

<p style="margin-left:23%;">SPICE-compatible netlist format
(<b>spice-sdb</b> is recommended). Suitable for use with
<b>gnucap</b>(1).</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>switcap</b></p></td>
<td width="1%"></td>
<td width="77%">


<p>SWITCAP switched capacitor simulator netlist format.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>systemc</b></p></td>
<td width="1%"></td>
<td width="77%">


<p>Structural SystemC code generation.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>tango</b></p></td>
<td width="1%"></td>
<td width="77%">


<p>Tango netlist format.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>tEDAx</b></p></td>
<td width="1%"></td>
<td width="77%">


<p>Trivial EDA eXchange (tEDAx) format.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>vams</b></p></td>
<td width="1%"></td>
<td width="77%">


<p>VHDL-AMS code generation.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>verilog</b></p></td>
<td width="1%"></td>
<td width="77%">


<p>Verilog code generation.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>vhdl</b></p></td>
<td width="1%"></td>
<td width="77%">


<p>VHDL code generation.</p></td></tr>
<tr valign="top" align="left">
<td width="11%"></td>
<td width="11%">


<p><b>vipec</b></p></td>
<td width="1%"></td>
<td width="77%">


<p>ViPEC Network Analyser netlist format.</p></td></tr>
</table>

<h2>EXAMPLES
<a name="EXAMPLES"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">These examples
assume that you have a &rsquo;stack_1.sch&rsquo; in the
current directory.</p>


<p style="margin-left:11%; margin-top: 1em"><b>lepton-netlist</b>
requires that at least one schematic to be specified on the
command line:</p>


<p style="margin-left:11%; margin-top: 1em">./lepton-netlist
stack_1.sch</p>

<p style="margin-left:11%; margin-top: 1em">This is not
very useful since it does not direct <b>lepton-netlist</b>
to do <br>
anything.</p>

<p style="margin-left:11%; margin-top: 1em">Specify a
backend name with &rsquo;-g&rsquo; to get
<b>lepton-netlist</b> to output a <br>
netlist:</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">


<p>./lepton-netlist -g geda stack_1.sch</p></td></tr>
</table>

<p style="margin-left:11%; margin-top: 1em">The netlist
output will be written to a file called
&rsquo;output.net&rsquo; <br>
in the current working directory.</p>

<p style="margin-left:11%; margin-top: 1em">You can specify
the output filename by using the &rsquo;-o&rsquo;
option:</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">


<p>./lepton-netlist -g geda stack_1.sch -o
/tmp/stack.netlist</p> </td></tr>
</table>

<p style="margin-left:11%; margin-top: 1em">Output will now
be directed to &rsquo;/tmp/stack.netlist&rsquo;.</p>

<p style="margin-left:11%; margin-top: 1em">You could run
(for example) the &rsquo;spice-sdb&rsquo; backend against
the <br>
schematic if you specified &rsquo;-g spice-sdb&rsquo;, or
you could generate a <br>
bill of materials for the schematic using &rsquo;-g
partslist1&rsquo;.</p>

<p style="margin-left:11%; margin-top: 1em">To obtain a
Scheme prompt to run Scheme expressions directly, you can
<br>
use the &rsquo;-i&rsquo; option.</p>

<table width="100%" border="0" rules="none" frame="void"
       cellspacing="0" cellpadding="0">
<tr valign="top" align="left">
<td width="8%"></td>
<td width="92%">


<p>./lepton-netlist -i stack_1.sch</p></td></tr>
</table>


<p style="margin-left:11%; margin-top: 1em"><b>lepton-netlist</b>
will load &rsquo;stack_1.sh&rsquo;, and then enter an
interactive <br>
Scheme read-eval-print loop.</p>

<h2>AUTHORS
<a name="AUTHORS"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">See the
&rsquo;AUTHORS&rsquo; file included with this program.</p>

<h2>COPYRIGHT
<a name="COPYRIGHT"></a>
</h2>


<p style="margin-left:11%; margin-top: 1em">Copyright
&copy; 2012-2017 gEDA Contributors. <br>
Copyright &copy; 2017-2022 Lepton Developers. <br>
License GPLv2+: GNU GPL version 2 or later. Please see the
&rsquo;COPYING&rsquo; <br>
file included with this program for full details.</p>

<p style="margin-left:11%; margin-top: 1em">This is free
software: you are free to change and redistribute it. <br>
There is NO WARRANTY, to the extent permitted by law.</p>

<h2>SEE ALSO
<a name="SEE ALSO"></a>
</h2>



<p style="margin-left:11%; margin-top: 1em"><b>lepton-schematic</b>(1),
<b>lepton-symcheck</b>(1), <b>pcb</b>(1),
<b>gnucap</b>(1)</p>
<hr>
</body>
</html>