Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/dpv/ByteDPV.m4

raw
1 .PS
2 # Byte.m4
3 gen_init(svg_font(sans-serif,11bp__))
4 boxht = 0.2
5 boxwid = 3.5
6
7 define leftlabel { {"$1" at last box.w ljust} }
8
9 down_
10 Lab[0]: box; leftlabel( B0STDISBL (reset pin is enabled) )
11 Lab[1]: box; leftlabel( WDTON (WDT not always on) )
12 Lab[2]: box; leftlabel( SPIEN (allow serial programming) )
13 Lab[3]: box; leftlabel( CKOPT (full output swing) )
14 Lab[4]: box; leftlabel( EESAVE (don't preserve EEPB0OM over chip erase) )
15 Lab[5]: box; leftlabel( BOOTSZ1 )
16 Lab[6]: box; leftlabel( BOOTSZ0 )
17 Lab[7]: box; leftlabel( BOOTB0ST (boot reset vector at 0x0000) )
18
19 boxwid = boxht
20 left_
21 B0:box "1" with .e at Lab[0].nw + (0.75,0.5)
22 box "0"
23 box "0"
24 box "1"
25 box "0"
26 box "0"
27 box "1"
28 box "1"
29 box wid 2*boxht "0xc9"
30
31 for i=0 to 7 do {
32 spline -> ht arrowht*0.7 from B0.s-(i*boxht,0) down boxht/4 \
33 then to Lab[0].nw-((i+1)*boxht/2,0) \
34 then down Lab[0].nw.y-Lab[i].y then to Lab[i].w
35 }
36
37 command "</g>" # end font
38 .PE