File: devmap_ff.html

package info (click to toggle)
sch-rnd 1.0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,696 kB
  • sloc: ansic: 119,120; awk: 1,502; makefile: 1,421; sh: 1,404; yacc: 905; lex: 172; xml: 160
file content (34 lines) | stat: -rw-r--r-- 1,075 bytes parent folder | download | duplicates (2)
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
<html>
<body>
<h1> sch-rnd - the devmap file format </h1>
<p>
A devmap file is a <a href="http://www.repo.hu/projects/lihata/lihata.html">
lihata document.</a> The root node is <i>ha:std_devmap.v1</i>, which has
a <i>ha:comp_attribs</i> subtree. This subtree contains all attributes
that are set on the component that refers to the devmap.
<p>
Scalar attributes are plain text nodes in key=value form. Array attributes
are lists of text items.
<p>
For example this is the devmap file for 2n7002 in sot23:
<pre>
ha:std_devmap.v1 {
 ha:comp_attribs {
  footprint=sot23
  li:portmap={
   {G->pcb/pinnum=1}
   {S->pcb/pinnum=2}
   {D->pcb/pinnum=3}
  }
 }
}
</pre>
<p>
It sets the footprint to sot23 then specifies a portmap array. Since portmap
items contain slash, they each need to be quoted using {}.
<p>
Note: devmap does not know about the portmap syntax. For devmap li:portmap
is just an arbitrary array-type attribute with 3 string/text items in it.
<a href="../02_model/display_name.html">Portmap has its own documentation</a>,
and can be used independently of devmap.