summaryrefslogtreecommitdiff
path: root/graphics/circuit_macros/doc/FlipFlop.m4
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/circuit_macros/doc/FlipFlop.m4
Initial commit
Diffstat (limited to 'graphics/circuit_macros/doc/FlipFlop.m4')
-rw-r--r--graphics/circuit_macros/doc/FlipFlop.m432
1 files changed, 32 insertions, 0 deletions
diff --git a/graphics/circuit_macros/doc/FlipFlop.m4 b/graphics/circuit_macros/doc/FlipFlop.m4
new file mode 100644
index 0000000000..c04ca6ba89
--- /dev/null
+++ b/graphics/circuit_macros/doc/FlipFlop.m4
@@ -0,0 +1,32 @@
+.PS
+# `FlipFlop.m4'
+log_init
+iflatex(`textoffset = 1bp__; ifpsfrag(,`latexcommand({\sf)') ')
+s_init(Flipflop)
+sinclude(Circuit_macros.dim)
+right_
+ { Q1: FlipFlop(D,Q1)
+ s_box(``\tt FlipFlop(D,Q1)'') at last [].Chip.s below
+ h1 = L_unit*20
+ w1 = L_unit*12
+ FlipFlop(T,Q2,ht h1 wid w1 fill_(0.9)) with .w at last [].e+(0.25,0)
+ s_box(``\tt FlipFlop(T,Q2,ht h1 wid w1 fill\_(0.9))'') \
+ at (last [].Chip,2nd last [].Chip.s)+(0,-0.25)
+ FlipFlop(RS) with .w at last [].e+(0.25,0)
+ s_box(``\tt FlipFlop(RS)'') at last [].Chip.s below
+ FlipFlop(JK) with .w at last [].e+(0.25,0)
+ s_box(``\tt FlipFlop(JK)'') with .n at last [].PinPR.end
+ }
+ move down 1.5; right_
+ { FlipFlopX(,,:D;E:CK,,:Q;:lg_bartxt(Q))
+ s_box(``\shortstack[l]{\tt FlipFlopX(,{,}\\
+ \tt\quad:D;E:CK,{,}:Q;:lg\_bartxt(Q))}'') at last [].Chip.s below
+ FlipFlopX(,,:T;E:CK,,:Q;) with .Chip.c at last [].e+(1.25,0)
+ s_box(``\shortstack[l]{\tt FlipFlopX(,{,}\\
+ \tt\quad:T;E:CK,{,}:Q;)}'') at last [].Chip.s below
+ FlipFlopX(,,:J;E:CK;:K,N:CLR,:Q;) with .Chip.c at last [].e+(1.25,0)
+ s_box(``\shortstack[l]{\tt FlipFlopX(,{,} \\
+ \tt\quad:J;E:CK;:K,N:CLR,:Q;)}'') at last [].Chip.s below
+ }
+ iflatex(ifpsfrag(,`latexcommand(})'))
+.PE