1state(0,14,100,0,0,0,8,1,8,0,2,0,1,0,0,1,0,0,0,4,0,0,0,10,0). 2% 3% @(#)$Header: /mm2/home/cvs/bc-src/tgif/flip-flop.sym,v 1.1 2004/06/18 23:20:01 william Exp $ 4% 5text('white',496,184,0,0,4,1,0,0,1,252,21,71,0,17,4,0,0,0,[ 6 "definition part of the NAND gate."]). 7text('white',448,160,0,0,4,1,0,0,1,317,21,72,0,17,4,0,0,0,[ 8 "Select a NAND gate and type ^V to see the"]). 9text('white',496,136,0,0,4,1,0,0,1,164,21,73,0,17,4,0,0,0,[ 10 "building-block object."]). 11text('white',448,112,0,0,4,1,0,0,1,341,21,74,0,17,4,0,0,0,[ 12 "The rest of this file is the definition part of the"]). 13text('white',496,88,0,0,4,1,0,0,1,264,21,75,0,17,4,0,0,0,[ 14 "is highlighted with a dashed outline."]). 15text('white',448,64,0,0,4,1,0,0,1,293,21,76,0,17,4,0,0,0,[ 16 "The representation part of the flip-flop"]). 17text('white',448,40,0,0,4,1,0,0,1,321,21,77,0,17,4,0,0,0,[ 18 "The SR flip-flop is a building-block object."]). 19icon([ 20group([ 21poly('yellow',2,[ 22 192,272,168,272],0,0,1,20,1,0,0,0,[ 23]), 24poly('yellow',2,[ 25 192,320,168,320],0,0,1,21,1,0,0,0,[ 26]), 27poly('yellow',2,[ 28 312,296,288,296],0,0,1,22,1,0,0,0,[ 29]), 30group([ 31oval('yellow',264,284,288,308,2,0,1,78,0,0,[ 32]), 33poly('yellow',4,[ 34 224,264,192,264,192,328,224,328],0,0,1,23,0,0,0,0,[ 35]), 36poly('yellow',3,[ 37 224,264,264,264,264,296],0,0,1,24,1,0,0,0,[ 38]), 39poly('yellow',3,[ 40 224,328,264,328,264,296],0,0,1,25,1,0,0,0,[ 41]) 42],[ 43]) 44],[ 45]), 46icon([ 47box('yellow',296,280,328,312,0,0,0,79,0,0,[ 48]), 49box('yellow',308,292,316,300,2,0,1,80,0,0,[ 50]) 51], 52"pin",17,0,0,[ 53attr("name=", "out", 0, 1, 1, 54text('green',312,272,1,0,4,1,1,0,1,88,19,81,0,15,4,0,0,0,[ 55 "name=out"])), 56attr("num=", "3", 1, 0, 1, 57text('green',296,280,1,0,4,1,1,0,1,11,19,82,0,15,4,0,0,0,[ 58 "3"])) 59]), 60icon([ 61box('yellow',152,256,184,288,0,0,0,83,0,0,[ 62]), 63box('yellow',164,268,172,276,2,0,1,84,0,0,[ 64]) 65], 66"pin",18,0,0,[ 67attr("num=", "1", 1, 0, 1, 68text('green',184,256,1,0,4,1,1,0,1,11,19,85,0,15,4,0,0,0,[ 69 "1"])), 70attr("name=", "in1", 0, 1, 1, 71text('green',168,248,1,0,4,1,1,0,1,88,19,86,0,15,4,0,0,0,[ 72 "name=in1"])) 73]), 74icon([ 75box('yellow',152,304,184,336,0,0,0,87,0,0,[ 76]), 77box('yellow',164,316,172,324,2,0,1,88,0,0,[ 78]) 79], 80"pin",19,0,0,[ 81attr("name=", "in2", 0, 1, 1, 82text('green',168,296,1,0,4,1,1,0,1,88,19,89,0,15,4,0,0,0,[ 83 "name=in2"])), 84attr("num=", "2", 1, 0, 1, 85text('green',184,304,1,0,4,1,1,0,1,11,19,90,0,15,4,0,0,0,[ 86 "2"])) 87]) 88], 89"nand2",26,0,0,[ 90attr("LOC=", "", 1, 1, 1, 91text('red',228,285,1,0,5,1,1,0,1,60,24,91,0,19,5,0,0,0,[ 92 "LOC="])) 93]). 94icon([ 95group([ 96poly('yellow',2,[ 97 192,392,168,392],0,0,1,27,1,0,0,0,[ 98]), 99poly('yellow',2,[ 100 192,440,168,440],0,0,1,28,1,0,0,0,[ 101]), 102poly('yellow',2,[ 103 312,416,288,416],0,0,1,29,1,0,0,0,[ 104]), 105group([ 106oval('yellow',264,404,288,428,2,0,1,92,0,0,[ 107]), 108poly('yellow',4,[ 109 224,384,192,384,192,448,224,448],0,0,1,30,0,0,0,0,[ 110]), 111poly('yellow',3,[ 112 224,384,264,384,264,416],0,0,1,31,1,0,0,0,[ 113]), 114poly('yellow',3,[ 115 224,448,264,448,264,416],0,0,1,32,1,0,0,0,[ 116]) 117],[ 118]) 119],[ 120]), 121icon([ 122box('yellow',296,400,328,432,0,0,0,93,0,0,[ 123]), 124box('yellow',308,412,316,420,2,0,1,94,0,0,[ 125]) 126], 127"pin",33,0,0,[ 128attr("num=", "3", 1, 0, 1, 129text('green',296,400,1,0,4,1,1,0,1,11,19,95,0,15,4,0,0,0,[ 130 "3"])), 131attr("name=", "out", 0, 1, 1, 132text('green',312,392,1,0,4,1,1,0,1,88,19,96,0,15,4,0,0,0,[ 133 "name=out"])) 134]), 135icon([ 136box('yellow',152,376,184,408,0,0,0,97,0,0,[ 137]), 138box('yellow',164,388,172,396,2,0,1,98,0,0,[ 139]) 140], 141"pin",34,0,0,[ 142attr("name=", "in1", 0, 1, 1, 143text('green',168,368,1,0,4,1,1,0,1,88,19,99,0,15,4,0,0,0,[ 144 "name=in1"])), 145attr("num=", "1", 1, 0, 1, 146text('green',184,376,1,0,4,1,1,0,1,11,19,100,0,15,4,0,0,0,[ 147 "1"])) 148]), 149icon([ 150box('yellow',152,424,184,456,0,0,0,101,0,0,[ 151]), 152box('yellow',164,436,172,444,2,0,1,102,0,0,[ 153]) 154], 155"pin",35,0,0,[ 156attr("num=", "2", 1, 0, 1, 157text('green',184,424,1,0,4,1,1,0,1,11,19,103,0,15,4,0,0,0,[ 158 "2"])), 159attr("name=", "in2", 0, 1, 1, 160text('green',168,416,1,0,4,1,1,0,1,88,19,104,0,15,4,0,0,0,[ 161 "name=in2"])) 162]) 163], 164"nand2",36,0,0,[ 165attr("LOC=", "", 1, 1, 1, 166text('red',228,405,1,0,5,1,1,0,1,60,24,105,0,19,5,0,0,0,[ 167 "LOC="])) 168]). 169poly('cyan',6,[ 170 312,416,336,416,336,392,144,344,144,320,168,320],0,0,1,41,0,0,0,0,[ 171]). 172poly('cyan',6,[ 173 312,296,336,296,336,320,144,368,144,392,168,392],0,0,1,42,0,0,0,0,[ 174]). 175sym([ 176group([ 177box('yellow',208,88,272,168,0,0,1,106,0,0,[ 178]), 179poly('yellow',2,[ 180 184,104,208,104],0,0,1,47,0,0,0,0,[ 181]), 182poly('yellow',2,[ 183 184,152,208,152],0,0,1,48,0,0,0,0,[ 184]), 185poly('yellow',2,[ 186 272,104,296,104],0,0,1,49,0,0,0,0,[ 187]), 188poly('yellow',2,[ 189 272,152,296,152],0,0,1,50,0,0,0,0,[ 190]) 191],[ 192]), 193icon([ 194box('yellow',280,88,312,120,0,0,0,107,0,0,[ 195]), 196box('yellow',292,100,300,108,2,0,1,108,0,0,[ 197]) 198], 199"pin",43,0,0,[ 200attr("name=", "Q", 1, 0, 1, 201text('green',264,96,1,0,4,1,1,0,1,11,19,109,0,15,4,0,0,0,[ 202 "Q"])), 203attr("num=", "", 0, 1, 1, 204text('green',296,64,1,0,4,1,1,0,1,44,19,110,0,15,4,0,0,0,[ 205 "num="])) 206]), 207icon([ 208box('yellow',280,136,312,168,0,0,0,111,0,0,[ 209]), 210box('yellow',292,148,300,156,2,0,1,112,0,0,[ 211]) 212], 213"pin",44,0,0,[ 214attr("num=", "", 0, 1, 1, 215text('green',296,112,1,0,4,1,1,0,1,44,19,113,0,15,4,0,0,0,[ 216 "num="])), 217attr("name=", "Q'", 1, 0, 1, 218text('green',256,144,1,0,4,1,1,0,1,22,19,114,0,15,4,0,0,0,[ 219 "Q'"])) 220]), 221icon([ 222box('yellow',168,88,200,120,0,0,0,115,0,0,[ 223]), 224box('yellow',180,100,188,108,2,0,1,116,0,0,[ 225]) 226], 227"pin",45,0,0,[ 228attr("num=", "", 0, 1, 1, 229text('green',184,64,1,0,4,1,1,0,1,44,19,117,0,15,4,0,0,0,[ 230 "num="])), 231attr("name=", "S'", 1, 0, 1, 232text('green',224,96,1,0,4,1,1,0,1,22,19,118,0,15,4,0,0,0,[ 233 "S'"])) 234]), 235icon([ 236box('yellow',168,136,200,168,0,0,0,119,0,0,[ 237]), 238box('yellow',180,148,188,156,2,0,1,120,0,0,[ 239]) 240], 241"pin",46,0,0,[ 242attr("name=", "R'", 1, 0, 1, 243text('green',224,144,1,0,4,1,1,0,1,22,19,121,0,15,4,0,0,0,[ 244 "R'"])), 245attr("num=", "", 0, 1, 1, 246text('green',184,112,1,0,4,1,1,0,1,44,19,122,0,15,4,0,0,0,[ 247 "num="])) 248]) 249],[ 250]). 251poly('cyan',4,[ 252 184,104,80,104,80,272,168,272],0,0,1,51,0,0,0,0,[ 253]). 254poly('cyan',4,[ 255 184,152,64,152,64,440,168,440],0,0,1,52,0,0,0,0,[ 256]). 257poly('cyan',4,[ 258 312,296,360,296,360,104,296,104],0,0,1,53,0,0,0,0,[ 259]). 260poly('cyan',4,[ 261 312,416,376,416,376,152,296,152],0,0,1,54,0,0,0,0,[ 262]). 263