logic_gates.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672
  1. <shapes name="mxgraph.electrical.logic_gates">
  2. <shape aspect="variable" h="60" name="AND" strokewidth="inherit" w="100">
  3. <connections>
  4. <constraint name="in1" perimeter="0" x="0" y="0.165"/>
  5. <constraint name="in2" perimeter="0" x="0" y="0.835"/>
  6. <constraint name="out" perimeter="0" x="1" y="0.5"/>
  7. </connections>
  8. <background>
  9. <path>
  10. <move x="20" y="0"/>
  11. <line x="50" y="0"/>
  12. <arc large-arc-flag="0" rx="30" ry="30" sweep-flag="1" x="50" x-axis-rotation="0" y="60"/>
  13. <line x="20" y="60"/>
  14. <close/>
  15. </path>
  16. </background>
  17. <foreground>
  18. <fillstroke/>
  19. <path>
  20. <move x="0" y="10"/>
  21. <line x="20" y="10"/>
  22. <move x="0" y="50"/>
  23. <line x="20" y="50"/>
  24. <move x="80" y="30"/>
  25. <line x="100" y="30"/>
  26. </path>
  27. <stroke/>
  28. </foreground>
  29. </shape>
  30. <shape aspect="variable" h="46" name="Bandpass Filter" strokewidth="inherit" w="52">
  31. <connections>
  32. <constraint name="in" perimeter="0" x="0" y="0.5"/>
  33. <constraint name="out" perimeter="0" x="1" y="0.5"/>
  34. </connections>
  35. <background>
  36. <rect h="46" w="52" x="0" y="0"/>
  37. </background>
  38. <foreground>
  39. <fillstroke/>
  40. <path>
  41. <move x="6" y="33"/>
  42. <line x="16" y="13"/>
  43. <line x="36" y="13"/>
  44. <line x="46" y="33"/>
  45. </path>
  46. <stroke/>
  47. </foreground>
  48. </shape>
  49. <shape aspect="variable" h="60" name="Buffer" strokewidth="inherit" w="100">
  50. <connections>
  51. <constraint name="in" perimeter="0" x="0" y="0.5"/>
  52. <constraint name="out" perimeter="0" x="1" y="0.5"/>
  53. </connections>
  54. <background>
  55. <path>
  56. <move x="20" y="0"/>
  57. <line x="80" y="30"/>
  58. <line x="20" y="60"/>
  59. <close/>
  60. <move x="0" y="30"/>
  61. <line x="20" y="30"/>
  62. <move x="80" y="30"/>
  63. <line x="100" y="30"/>
  64. </path>
  65. </background>
  66. <foreground>
  67. <fillstroke/>
  68. </foreground>
  69. </shape>
  70. <shape aspect="variable" h="80" name="D Type Flip-Flop" strokewidth="inherit" w="100">
  71. <connections>
  72. <constraint name="D" perimeter="0" x="0" y="0.25"/>
  73. <constraint name="E" perimeter="0" x="0" y="0.75"/>
  74. <constraint name="Q" perimeter="0" x="1" y="0.25"/>
  75. <constraint name="Qneg" perimeter="0" x="1" y="0.75"/>
  76. </connections>
  77. <background>
  78. <rect h="80" w="60" x="20" y="0"/>
  79. </background>
  80. <foreground>
  81. <fillstroke/>
  82. <path>
  83. <move x="0" y="20"/>
  84. <line x="20" y="20"/>
  85. <move x="0" y="60"/>
  86. <line x="20" y="60"/>
  87. <move x="80" y="20"/>
  88. <line x="100" y="20"/>
  89. <move x="71" y="55"/>
  90. <line x="79" y="55"/>
  91. <move x="20" y="55"/>
  92. <line x="30" y="60"/>
  93. <line x="20" y="65"/>
  94. <move x="80" y="60"/>
  95. <line x="100" y="60"/>
  96. </path>
  97. <stroke/>
  98. <text align="center" str="D" valign="bottom" x="25" y="25"/>
  99. <text align="center" str="Q" valign="bottom" x="75" y="25"/>
  100. <text align="center" str="Q" valign="bottom" x="75" y="65"/>
  101. </foreground>
  102. </shape>
  103. <shape aspect="variable" h="90" name="D Type Flip-Flop With Clear" strokewidth="inherit" w="100">
  104. <connections>
  105. <constraint name="D" perimeter="0" x="0" y="0.335"/>
  106. <constraint name="E" perimeter="0" x="0" y="0.78"/>
  107. <constraint name="Q" perimeter="0" x="1" y="0.335"/>
  108. <constraint name="Qneg" perimeter="0" x="1" y="0.78"/>
  109. <constraint name="clear" perimeter="0" x="0.5" y="0"/>
  110. </connections>
  111. <background>
  112. <rect h="80" w="60" x="20" y="10"/>
  113. </background>
  114. <foreground>
  115. <fillstroke/>
  116. <path>
  117. <move x="0" y="30"/>
  118. <line x="20" y="30"/>
  119. <move x="0" y="70"/>
  120. <line x="20" y="70"/>
  121. <move x="80" y="30"/>
  122. <line x="100" y="30"/>
  123. <move x="80" y="70"/>
  124. <line x="100" y="70"/>
  125. <move x="71" y="65"/>
  126. <line x="79" y="65"/>
  127. <move x="20" y="65"/>
  128. <line x="30" y="70"/>
  129. <line x="20" y="75"/>
  130. <move x="50" y="0"/>
  131. <line x="50" y="6"/>
  132. </path>
  133. <stroke/>
  134. <text align="center" str="D" valign="bottom" x="25" y="35"/>
  135. <text align="center" str="Q" valign="bottom" x="75" y="35"/>
  136. <text align="center" str="Q" valign="bottom" x="75" y="75"/>
  137. <ellipse h="4" w="4" x="48" y="6"/>
  138. <fillstroke/>
  139. </foreground>
  140. </shape>
  141. <shape aspect="variable" h="100" name="D Type RS Flip-Flop" strokewidth="inherit" w="100">
  142. <connections>
  143. <constraint name="D" perimeter="0" x="0" y="0.3"/>
  144. <constraint name="E" perimeter="0" x="0" y="0.7"/>
  145. <constraint name="Q" perimeter="0" x="1" y="0.3"/>
  146. <constraint name="Qneg" perimeter="0" x="1" y="0.7"/>
  147. <constraint name="S" perimeter="0" x="0.5" y="0"/>
  148. <constraint name="R" perimeter="0" x="0.5" y="1"/>
  149. </connections>
  150. <background>
  151. <rect h="80" w="60" x="20" y="10"/>
  152. </background>
  153. <foreground>
  154. <fillstroke/>
  155. <path>
  156. <move x="0" y="30"/>
  157. <line x="20" y="30"/>
  158. <move x="0" y="70"/>
  159. <line x="20" y="70"/>
  160. <move x="80" y="30"/>
  161. <line x="100" y="30"/>
  162. <move x="80" y="70"/>
  163. <line x="100" y="70"/>
  164. <move x="71" y="65"/>
  165. <line x="79" y="65"/>
  166. <move x="20" y="65"/>
  167. <line x="30" y="70"/>
  168. <line x="20" y="75"/>
  169. <move x="50" y="0"/>
  170. <line x="50" y="10"/>
  171. <move x="50" y="90"/>
  172. <line x="50" y="100"/>
  173. </path>
  174. <stroke/>
  175. <text align="center" str="D" valign="bottom" x="25" y="35"/>
  176. <text align="center" str="Q" valign="bottom" x="75" y="35"/>
  177. <text align="center" str="Q" valign="bottom" x="75" y="75"/>
  178. <text align="center" str="S" valign="bottom" x="50" y="20"/>
  179. <text align="center" str="R" valign="bottom" x="50" y="89"/>
  180. </foreground>
  181. </shape>
  182. <shape aspect="variable" h="46" name="Highpass Filter" strokewidth="inherit" w="52">
  183. <connections>
  184. <constraint name="in" perimeter="0" x="0" y="0.5"/>
  185. <constraint name="out" perimeter="0" x="1" y="0.5"/>
  186. </connections>
  187. <background>
  188. <rect h="46" w="52" x="0" y="0"/>
  189. </background>
  190. <foreground>
  191. <fillstroke/>
  192. <path>
  193. <move x="6" y="33"/>
  194. <line x="16" y="13"/>
  195. <line x="46" y="13"/>
  196. </path>
  197. <stroke/>
  198. </foreground>
  199. </shape>
  200. <shape aspect="variable" h="60" name="Inverter" strokewidth="inherit" w="100">
  201. <connections>
  202. <constraint name="in" perimeter="0" x="0" y="0.5"/>
  203. <constraint name="out" perimeter="0" x="1" y="0.5"/>
  204. </connections>
  205. <background>
  206. <path>
  207. <move x="20" y="0"/>
  208. <line x="80" y="30"/>
  209. <line x="20" y="60"/>
  210. <close/>
  211. <move x="0" y="30"/>
  212. <line x="20" y="30"/>
  213. <move x="84" y="30"/>
  214. <line x="100" y="30"/>
  215. </path>
  216. </background>
  217. <foreground>
  218. <fillstroke/>
  219. <ellipse h="4" w="4" x="80" y="28"/>
  220. <fillstroke/>
  221. </foreground>
  222. </shape>
  223. <shape aspect="variable" h="5" name="Inverting Contact" strokewidth="inherit" w="5">
  224. <connections>
  225. <constraint name="W" perimeter="0" x="0.1" y="0.5"/>
  226. <constraint name="E" perimeter="0" x="0.9" y="0.5"/>
  227. </connections>
  228. <background>
  229. <ellipse h="4" w="4" x="0.5" y="0.5"/>
  230. </background>
  231. <foreground>
  232. <fillstroke/>
  233. </foreground>
  234. </shape>
  235. <shape aspect="variable" h="80" name="JK Flip-Flop" strokewidth="inherit" w="100">
  236. <connections>
  237. <constraint name="J" perimeter="0" x="0" y="0.25"/>
  238. <constraint name="E" perimeter="0" x="0" y="0.5"/>
  239. <constraint name="K" perimeter="0" x="0" y="0.75"/>
  240. <constraint name="Q" perimeter="0" x="1" y="0.25"/>
  241. <constraint name="Qneg" perimeter="0" x="1" y="0.75"/>
  242. </connections>
  243. <background>
  244. <rect h="80" w="60" x="20" y="0"/>
  245. </background>
  246. <foreground>
  247. <fillstroke/>
  248. <path>
  249. <move x="0" y="20"/>
  250. <line x="20" y="20"/>
  251. <move x="0" y="60"/>
  252. <line x="20" y="60"/>
  253. <move x="80" y="20"/>
  254. <line x="100" y="20"/>
  255. <move x="80" y="60"/>
  256. <line x="100" y="60"/>
  257. <move x="71" y="55"/>
  258. <line x="79" y="55"/>
  259. <move x="20" y="35"/>
  260. <line x="30" y="40"/>
  261. <line x="20" y="45"/>
  262. <move x="0" y="40"/>
  263. <line x="20" y="40"/>
  264. </path>
  265. <stroke/>
  266. <text align="center" str="J" valign="bottom" x="25" y="25"/>
  267. <text align="center" str="K" valign="bottom" x="25" y="65"/>
  268. <text align="center" str="Q" valign="bottom" x="75" y="25"/>
  269. <text align="center" str="Q" valign="bottom" x="75" y="65"/>
  270. </foreground>
  271. </shape>
  272. <shape aspect="variable" h="90" name="JK Flip-Flop With Clear" strokewidth="inherit" w="100">
  273. <connections>
  274. <constraint name="J" perimeter="0" x="0" y="0.335"/>
  275. <constraint name="E" perimeter="0" x="0" y="0.555"/>
  276. <constraint name="K" perimeter="0" x="0" y="0.78"/>
  277. <constraint name="Q" perimeter="0" x="1" y="0.335"/>
  278. <constraint name="Qneg" perimeter="0" x="1" y="0.78"/>
  279. <constraint name="clear" perimeter="0" x="0.5" y="0"/>
  280. </connections>
  281. <background>
  282. <rect h="80" w="60" x="20" y="10"/>
  283. </background>
  284. <foreground>
  285. <fillstroke/>
  286. <path>
  287. <move x="0" y="30"/>
  288. <line x="20" y="30"/>
  289. <move x="0" y="70"/>
  290. <line x="20" y="70"/>
  291. <move x="80" y="30"/>
  292. <line x="100" y="30"/>
  293. <move x="80" y="70"/>
  294. <line x="100" y="70"/>
  295. <move x="71" y="65"/>
  296. <line x="79" y="65"/>
  297. <move x="20" y="45"/>
  298. <line x="30" y="50"/>
  299. <line x="20" y="55"/>
  300. <move x="0" y="50"/>
  301. <line x="20" y="50"/>
  302. <move x="50" y="0"/>
  303. <line x="50" y="6"/>
  304. </path>
  305. <stroke/>
  306. <text align="center" str="J" valign="bottom" x="25" y="35"/>
  307. <text align="center" str="K" valign="bottom" x="25" y="75"/>
  308. <text align="center" str="Q" valign="bottom" x="75" y="35"/>
  309. <text align="center" str="Q" valign="bottom" x="75" y="75"/>
  310. <ellipse h="4" w="4" x="48" y="6"/>
  311. <fillstroke/>
  312. <text align="center" str="C" valign="bottom" x="50" y="20"/>
  313. </foreground>
  314. </shape>
  315. <shape aspect="variable" h="100" name="JK Flip-Flop With SR" strokewidth="inherit" w="100">
  316. <connections>
  317. <constraint name="J" perimeter="0" x="0" y="0.3"/>
  318. <constraint name="E" perimeter="0" x="0" y="0.5"/>
  319. <constraint name="K" perimeter="0" x="0" y="0.7"/>
  320. <constraint name="Q" perimeter="0" x="1" y="0.3"/>
  321. <constraint name="Qneg" perimeter="0" x="1" y="0.7"/>
  322. <constraint name="S" perimeter="0" x="0.5" y="0"/>
  323. <constraint name="R" perimeter="0" x="0.5" y="1"/>
  324. </connections>
  325. <background>
  326. <rect h="80" w="60" x="20" y="10"/>
  327. </background>
  328. <foreground>
  329. <fillstroke/>
  330. <path>
  331. <move x="0" y="30"/>
  332. <line x="20" y="30"/>
  333. <move x="0" y="70"/>
  334. <line x="20" y="70"/>
  335. <move x="80" y="30"/>
  336. <line x="100" y="30"/>
  337. <move x="80" y="70"/>
  338. <line x="100" y="70"/>
  339. <move x="71" y="65"/>
  340. <line x="79" y="65"/>
  341. <move x="20" y="45"/>
  342. <line x="30" y="50"/>
  343. <line x="20" y="55"/>
  344. <move x="0" y="50"/>
  345. <line x="20" y="50"/>
  346. <move x="50" y="0"/>
  347. <line x="50" y="10"/>
  348. <move x="50" y="90"/>
  349. <line x="50" y="100"/>
  350. </path>
  351. <stroke/>
  352. <text align="center" str="J" valign="bottom" x="25" y="35"/>
  353. <text align="center" str="K" valign="bottom" x="25" y="75"/>
  354. <text align="center" str="Q" valign="bottom" x="75" y="35"/>
  355. <text align="center" str="Q" valign="bottom" x="75" y="75"/>
  356. <text align="center" str="S" valign="bottom" x="50" y="20"/>
  357. <text align="center" str="R" valign="bottom" x="50" y="89"/>
  358. </foreground>
  359. </shape>
  360. <shape aspect="variable" h="46" name="Lowpass Filter" strokewidth="inherit" w="52">
  361. <connections>
  362. <constraint name="in" perimeter="0" x="0" y="0.5"/>
  363. <constraint name="out" perimeter="0" x="1" y="0.5"/>
  364. </connections>
  365. <background>
  366. <rect h="46" w="52" x="0" y="0"/>
  367. </background>
  368. <foreground>
  369. <fillstroke/>
  370. <path>
  371. <move x="6" y="13"/>
  372. <line x="36" y="13"/>
  373. <line x="46" y="33"/>
  374. </path>
  375. <stroke/>
  376. </foreground>
  377. </shape>
  378. <shape aspect="variable" h="60" name="NAND" strokewidth="inherit" w="100">
  379. <connections>
  380. <constraint name="in1" perimeter="0" x="0" y="0.165"/>
  381. <constraint name="in2" perimeter="0" x="0" y="0.835"/>
  382. <constraint name="out" perimeter="0" x="1" y="0.5"/>
  383. </connections>
  384. <background>
  385. <path>
  386. <move x="20" y="0"/>
  387. <line x="50" y="0"/>
  388. <arc large-arc-flag="0" rx="30" ry="30" sweep-flag="1" x="50" x-axis-rotation="0" y="60"/>
  389. <line x="20" y="60"/>
  390. <close/>
  391. </path>
  392. </background>
  393. <foreground>
  394. <fillstroke/>
  395. <path>
  396. <move x="0" y="10"/>
  397. <line x="20" y="10"/>
  398. <move x="0" y="50"/>
  399. <line x="20" y="50"/>
  400. <move x="84" y="30"/>
  401. <line x="100" y="30"/>
  402. </path>
  403. <stroke/>
  404. <ellipse h="4" w="4" x="80" y="28"/>
  405. <fillstroke/>
  406. </foreground>
  407. </shape>
  408. <shape aspect="variable" h="60" name="NOR" strokewidth="inherit" w="100">
  409. <connections>
  410. <constraint name="in1" perimeter="0" x="0" y="0.165"/>
  411. <constraint name="in2" perimeter="0" x="0" y="0.835"/>
  412. <constraint name="out" perimeter="0" x="1" y="0.5"/>
  413. </connections>
  414. <background>
  415. <path>
  416. <move x="15" y="0"/>
  417. <line x="40" y="0"/>
  418. <arc large-arc-flag="0" rx="45" ry="50" sweep-flag="1" x="80" x-axis-rotation="0" y="30"/>
  419. <arc large-arc-flag="0" rx="45" ry="50" sweep-flag="1" x="40" x-axis-rotation="0" y="60"/>
  420. <line x="15" y="60"/>
  421. <arc large-arc-flag="0" rx="60" ry="60" sweep-flag="0" x="15" x-axis-rotation="0" y="0"/>
  422. <close/>
  423. </path>
  424. </background>
  425. <foreground>
  426. <fillstroke/>
  427. <path>
  428. <move x="0" y="10"/>
  429. <line x="20" y="10"/>
  430. <move x="0" y="50"/>
  431. <line x="20" y="50"/>
  432. <move x="84" y="30"/>
  433. <line x="100" y="30"/>
  434. </path>
  435. <stroke/>
  436. <ellipse h="4" w="4" x="80" y="28"/>
  437. <fillstroke/>
  438. </foreground>
  439. </shape>
  440. <shape aspect="variable" h="60" name="OR" strokewidth="inherit" w="100">
  441. <connections>
  442. <constraint name="in1" perimeter="0" x="0" y="0.165"/>
  443. <constraint name="in2" perimeter="0" x="0" y="0.835"/>
  444. <constraint name="out" perimeter="0" x="1" y="0.5"/>
  445. </connections>
  446. <background>
  447. <path>
  448. <move x="15" y="0"/>
  449. <line x="40" y="0"/>
  450. <arc large-arc-flag="0" rx="45" ry="50" sweep-flag="1" x="80" x-axis-rotation="0" y="30"/>
  451. <arc large-arc-flag="0" rx="45" ry="50" sweep-flag="1" x="40" x-axis-rotation="0" y="60"/>
  452. <line x="15" y="60"/>
  453. <arc large-arc-flag="0" rx="60" ry="60" sweep-flag="0" x="15" x-axis-rotation="0" y="0"/>
  454. <close/>
  455. </path>
  456. </background>
  457. <foreground>
  458. <fillstroke/>
  459. <path>
  460. <move x="0" y="10"/>
  461. <line x="20" y="10"/>
  462. <move x="0" y="50"/>
  463. <line x="20" y="50"/>
  464. <move x="80" y="30"/>
  465. <line x="100" y="30"/>
  466. </path>
  467. <stroke/>
  468. </foreground>
  469. </shape>
  470. <shape aspect="variable" h="80" name="RS Latch" strokewidth="inherit" w="100">
  471. <connections>
  472. <constraint name="S" perimeter="0" x="0" y="0.25"/>
  473. <constraint name="R" perimeter="0" x="0" y="0.75"/>
  474. <constraint name="Q" perimeter="0" x="1" y="0.25"/>
  475. <constraint name="Qneg" perimeter="0" x="1" y="0.75"/>
  476. </connections>
  477. <background>
  478. <rect h="80" w="60" x="20" y="0"/>
  479. </background>
  480. <foreground>
  481. <fillstroke/>
  482. <path>
  483. <move x="0" y="20"/>
  484. <line x="20" y="20"/>
  485. <move x="0" y="60"/>
  486. <line x="20" y="60"/>
  487. <move x="80" y="20"/>
  488. <line x="100" y="20"/>
  489. <move x="80" y="60"/>
  490. <line x="100" y="60"/>
  491. <move x="71" y="55"/>
  492. <line x="79" y="55"/>
  493. </path>
  494. <stroke/>
  495. <text align="center" str="S" valign="bottom" x="25" y="25"/>
  496. <text align="center" str="R" valign="bottom" x="25" y="65"/>
  497. <text align="center" str="Q" valign="bottom" x="75" y="25"/>
  498. <text align="center" str="Q" valign="bottom" x="75" y="65"/>
  499. </foreground>
  500. </shape>
  501. <shape aspect="variable" h="60" name="Schmitt Trigger" strokewidth="inherit" w="100">
  502. <connections>
  503. <constraint name="in" perimeter="0" x="0" y="0.5"/>
  504. <constraint name="out" perimeter="0" x="1" y="0.5"/>
  505. </connections>
  506. <background>
  507. <path>
  508. <move x="20" y="0"/>
  509. <line x="80" y="30"/>
  510. <line x="20" y="60"/>
  511. <close/>
  512. </path>
  513. </background>
  514. <foreground>
  515. <fillstroke/>
  516. <path>
  517. <move x="0" y="30"/>
  518. <line x="20" y="30"/>
  519. <move x="80" y="30"/>
  520. <line x="100" y="30"/>
  521. <move x="30" y="35"/>
  522. <line x="46" y="35"/>
  523. <arc large-arc-flag="0" rx="4" ry="4" sweep-flag="0" x="50" x-axis-rotation="0" y="31"/>
  524. <line x="50" y="29"/>
  525. <arc large-arc-flag="0" rx="4" ry="4" sweep-flag="1" x="54" x-axis-rotation="0" y="25"/>
  526. <line x="55" y="25"/>
  527. <line x="39" y="25"/>
  528. <arc large-arc-flag="0" rx="4" ry="4" sweep-flag="0" x="35" x-axis-rotation="0" y="29"/>
  529. <line x="35" y="31"/>
  530. <arc large-arc-flag="0" rx="4" ry="4" sweep-flag="1" x="31" x-axis-rotation="0" y="35"/>
  531. <close/>
  532. </path>
  533. <stroke/>
  534. </foreground>
  535. </shape>
  536. <shape aspect="variable" h="80" name="Synchronous RS Latch" strokewidth="inherit" w="100">
  537. <connections>
  538. <constraint name="S" perimeter="0" x="0" y="0.25"/>
  539. <constraint name="E" perimeter="0" x="0" y="0.5"/>
  540. <constraint name="R" perimeter="0" x="0" y="0.75"/>
  541. <constraint name="Q" perimeter="0" x="1" y="0.25"/>
  542. <constraint name="Qneg" perimeter="0" x="1" y="0.75"/>
  543. </connections>
  544. <background>
  545. <rect h="80" w="60" x="20" y="0"/>
  546. </background>
  547. <foreground>
  548. <fillstroke/>
  549. <path>
  550. <move x="0" y="20"/>
  551. <line x="20" y="20"/>
  552. <move x="0" y="60"/>
  553. <line x="20" y="60"/>
  554. <move x="80" y="20"/>
  555. <line x="100" y="20"/>
  556. <move x="80" y="60"/>
  557. <line x="100" y="60"/>
  558. <move x="71" y="55"/>
  559. <line x="79" y="55"/>
  560. <move x="20" y="35"/>
  561. <line x="30" y="40"/>
  562. <line x="20" y="45"/>
  563. <move x="0" y="40"/>
  564. <line x="20" y="40"/>
  565. </path>
  566. <stroke/>
  567. <text align="center" str="S" valign="bottom" x="25" y="25"/>
  568. <text align="center" str="R" valign="bottom" x="25" y="65"/>
  569. <text align="center" str="Q" valign="bottom" x="75" y="25"/>
  570. <text align="center" str="Q" valign="bottom" x="75" y="65"/>
  571. </foreground>
  572. </shape>
  573. <shape aspect="variable" h="80" name="T Type Flip-Flop" strokewidth="inherit" w="100">
  574. <connections>
  575. <constraint name="T" perimeter="0" x="0" y="0.25"/>
  576. <constraint name="E" perimeter="0" x="0" y="0.75"/>
  577. <constraint name="Q" perimeter="0" x="1" y="0.25"/>
  578. <constraint name="Qneg" perimeter="0" x="1" y="0.75"/>
  579. </connections>
  580. <background>
  581. <rect h="80" w="60" x="20" y="0"/>
  582. </background>
  583. <foreground>
  584. <fillstroke/>
  585. <path>
  586. <move x="0" y="20"/>
  587. <line x="20" y="20"/>
  588. <move x="0" y="60"/>
  589. <line x="20" y="60"/>
  590. <move x="80" y="20"/>
  591. <line x="100" y="20"/>
  592. <move x="80" y="60"/>
  593. <line x="100" y="60"/>
  594. <move x="71" y="55"/>
  595. <line x="79" y="55"/>
  596. <move x="20" y="55"/>
  597. <line x="30" y="60"/>
  598. <line x="20" y="65"/>
  599. </path>
  600. <stroke/>
  601. <text align="center" str="T" valign="bottom" x="25" y="25"/>
  602. <text align="center" str="Q" valign="bottom" x="75" y="25"/>
  603. <text align="center" str="Q" valign="bottom" x="75" y="65"/>
  604. </foreground>
  605. </shape>
  606. <shape aspect="variable" h="60" name="XNOR" strokewidth="inherit" w="100">
  607. <connections>
  608. <constraint name="in1" perimeter="0" x="0" y="0.165"/>
  609. <constraint name="in2" perimeter="0" x="0" y="0.835"/>
  610. <constraint name="out" perimeter="0" x="1" y="0.5"/>
  611. </connections>
  612. <background>
  613. <path>
  614. <move x="15" y="0"/>
  615. <line x="40" y="0"/>
  616. <arc large-arc-flag="0" rx="45" ry="50" sweep-flag="1" x="80" x-axis-rotation="0" y="30"/>
  617. <arc large-arc-flag="0" rx="45" ry="50" sweep-flag="1" x="40" x-axis-rotation="0" y="60"/>
  618. <line x="15" y="60"/>
  619. <arc large-arc-flag="0" rx="60" ry="60" sweep-flag="0" x="15" x-axis-rotation="0" y="0"/>
  620. <close/>
  621. </path>
  622. </background>
  623. <foreground>
  624. <fillstroke/>
  625. <path>
  626. <move x="0" y="10"/>
  627. <line x="20" y="10"/>
  628. <move x="0" y="50"/>
  629. <line x="20" y="50"/>
  630. <move x="84" y="30"/>
  631. <line x="100" y="30"/>
  632. <move x="10" y="0"/>
  633. <arc large-arc-flag="0" rx="60" ry="60" sweep-flag="1" x="10" x-axis-rotation="0" y="60"/>
  634. </path>
  635. <stroke/>
  636. <ellipse h="4" w="4" x="80" y="28"/>
  637. <fillstroke/>
  638. </foreground>
  639. </shape>
  640. <shape aspect="variable" h="60" name="XOR" strokewidth="inherit" w="100">
  641. <connections>
  642. <constraint name="in1" perimeter="0" x="0" y="0.165"/>
  643. <constraint name="in2" perimeter="0" x="0" y="0.835"/>
  644. <constraint name="out" perimeter="0" x="1" y="0.5"/>
  645. </connections>
  646. <background>
  647. <path>
  648. <move x="15" y="0"/>
  649. <line x="40" y="0"/>
  650. <arc large-arc-flag="0" rx="45" ry="50" sweep-flag="1" x="80" x-axis-rotation="0" y="30"/>
  651. <arc large-arc-flag="0" rx="45" ry="50" sweep-flag="1" x="40" x-axis-rotation="0" y="60"/>
  652. <line x="15" y="60"/>
  653. <arc large-arc-flag="0" rx="60" ry="60" sweep-flag="0" x="15" x-axis-rotation="0" y="0"/>
  654. <close/>
  655. </path>
  656. </background>
  657. <foreground>
  658. <fillstroke/>
  659. <path>
  660. <move x="0" y="10"/>
  661. <line x="20" y="10"/>
  662. <move x="0" y="50"/>
  663. <line x="20" y="50"/>
  664. <move x="80" y="30"/>
  665. <line x="100" y="30"/>
  666. <move x="10" y="0"/>
  667. <arc large-arc-flag="0" rx="60" ry="60" sweep-flag="1" x="10" x-axis-rotation="0" y="60"/>
  668. </path>
  669. <stroke/>
  670. </foreground>
  671. </shape>
  672. </shapes>