406 lines
9.1 KiB
Plaintext
406 lines
9.1 KiB
Plaintext
/*
|
|
WARNING: Do NOT edit the input and output ports in this file in a text
|
|
editor if you plan to continue editing the block that represents it in
|
|
the Block Editor! File corruption is VERY likely to occur.
|
|
*/
|
|
/*
|
|
Copyright (C) 1991-2012 Altera Corporation
|
|
Your use of Altera Corporation's design tools, logic functions
|
|
and other software and tools, and its AMPP partner logic
|
|
functions, and any output files from any of the foregoing
|
|
(including device programming or simulation files), and any
|
|
associated documentation or information are expressly subject
|
|
to the terms and conditions of the Altera Program License
|
|
Subscription Agreement, Altera MegaCore Function License
|
|
Agreement, or other applicable license agreement, including,
|
|
without limitation, that your use is for the sole purpose of
|
|
programming logic devices manufactured by Altera and sold by
|
|
Altera or its authorized distributors. Please refer to the
|
|
applicable agreement for further details.
|
|
*/
|
|
(header "graphic" (version "1.4"))
|
|
(pin
|
|
(input)
|
|
(rect 88 56 256 72)
|
|
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
|
(text "set" (rect 5 0 20 12)(font "Arial" ))
|
|
(pt 168 8)
|
|
(drawing
|
|
(line (pt 84 12)(pt 109 12))
|
|
(line (pt 84 4)(pt 109 4))
|
|
(line (pt 113 8)(pt 168 8))
|
|
(line (pt 84 12)(pt 84 4))
|
|
(line (pt 109 4)(pt 113 8))
|
|
(line (pt 109 12)(pt 113 8))
|
|
)
|
|
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
|
(annotation_block (location)(rect 32 72 88 88))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 88 96 256 112)
|
|
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
|
(text "data" (rect 5 0 26 12)(font "Arial" ))
|
|
(pt 168 8)
|
|
(drawing
|
|
(line (pt 84 12)(pt 109 12))
|
|
(line (pt 84 4)(pt 109 4))
|
|
(line (pt 113 8)(pt 168 8))
|
|
(line (pt 84 12)(pt 84 4))
|
|
(line (pt 109 4)(pt 113 8))
|
|
(line (pt 109 12)(pt 113 8))
|
|
)
|
|
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
|
(annotation_block (location)(rect 32 112 88 128))
|
|
)
|
|
(pin
|
|
(input)
|
|
(rect 456 48 624 64)
|
|
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
|
(text "enable" (rect 5 0 36 12)(font "Arial" ))
|
|
(pt 168 8)
|
|
(drawing
|
|
(line (pt 84 12)(pt 109 12))
|
|
(line (pt 84 4)(pt 109 4))
|
|
(line (pt 113 8)(pt 168 8))
|
|
(line (pt 84 12)(pt 84 4))
|
|
(line (pt 109 4)(pt 113 8))
|
|
(line (pt 109 12)(pt 113 8))
|
|
)
|
|
(text "VCC" (rect 128 7 148 17)(font "Arial" (font_size 6)))
|
|
(annotation_block (location)(rect 392 64 456 80))
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 600 192 776 208)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "savedData" (rect 90 0 144 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 0 8)(pt 52 8))
|
|
(line (pt 52 4)(pt 78 4))
|
|
(line (pt 52 12)(pt 78 12))
|
|
(line (pt 52 12)(pt 52 4))
|
|
(line (pt 78 4)(pt 82 8))
|
|
(line (pt 82 8)(pt 78 12))
|
|
(line (pt 78 12)(pt 82 8))
|
|
)
|
|
)
|
|
(pin
|
|
(output)
|
|
(rect 728 144 904 160)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "out" (rect 90 0 105 12)(font "Arial" ))
|
|
(pt 0 8)
|
|
(drawing
|
|
(line (pt 0 8)(pt 52 8))
|
|
(line (pt 52 4)(pt 78 4))
|
|
(line (pt 52 12)(pt 78 12))
|
|
(line (pt 52 12)(pt 52 4))
|
|
(line (pt 78 4)(pt 82 8))
|
|
(line (pt 82 8)(pt 78 12))
|
|
(line (pt 78 12)(pt 82 8))
|
|
)
|
|
(annotation_block (location)(rect 904 160 960 176))
|
|
)
|
|
(symbol
|
|
(rect 288 88 352 136)
|
|
(text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6)))
|
|
(text "inst" (rect 3 37 20 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 15 32))
|
|
)
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 15 16))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 52 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 15 37)(pt 32 37))
|
|
(line (pt 15 12)(pt 32 12))
|
|
(line (pt 15 36)(pt 15 12))
|
|
(arc (pt 32 36)(pt 32 12)(rect 20 12 45 37))
|
|
(circle (rect 44 20 52 28))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 376 168 440 216)
|
|
(text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6)))
|
|
(text "inst1" (rect 3 37 26 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 15 32))
|
|
)
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 15 16))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 52 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 15 37)(pt 32 37))
|
|
(line (pt 15 12)(pt 32 12))
|
|
(line (pt 15 36)(pt 15 12))
|
|
(arc (pt 32 36)(pt 32 12)(rect 20 12 45 37))
|
|
(circle (rect 44 20 52 28))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 464 96 528 144)
|
|
(text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6)))
|
|
(text "inst2" (rect 3 37 26 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 15 32))
|
|
)
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 15 16))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 52 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 15 37)(pt 32 37))
|
|
(line (pt 15 12)(pt 32 12))
|
|
(line (pt 15 36)(pt 15 12))
|
|
(arc (pt 32 36)(pt 32 12)(rect 20 12 45 37))
|
|
(circle (rect 44 20 52 28))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 464 168 528 216)
|
|
(text "NAND2" (rect 1 0 32 10)(font "Arial" (font_size 6)))
|
|
(text "inst3" (rect 3 37 26 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 15 32))
|
|
)
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 15 16))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 52 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 15 37)(pt 32 37))
|
|
(line (pt 15 12)(pt 32 12))
|
|
(line (pt 15 36)(pt 15 12))
|
|
(arc (pt 32 36)(pt 32 12)(rect 20 12 45 37))
|
|
(circle (rect 44 20 52 28))
|
|
)
|
|
)
|
|
(symbol
|
|
(rect 648 128 712 176)
|
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
|
(text "inst4" (rect 3 37 26 49)(font "Arial" ))
|
|
(port
|
|
(pt 0 16)
|
|
(input)
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 16)(pt 14 16))
|
|
)
|
|
(port
|
|
(pt 0 32)
|
|
(input)
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
|
|
(line (pt 0 32)(pt 14 32))
|
|
)
|
|
(port
|
|
(pt 64 24)
|
|
(output)
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
|
|
(line (pt 42 24)(pt 64 24))
|
|
)
|
|
(drawing
|
|
(line (pt 14 12)(pt 30 12))
|
|
(line (pt 14 37)(pt 31 37))
|
|
(line (pt 14 12)(pt 14 37))
|
|
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37))
|
|
)
|
|
)
|
|
(connector
|
|
(pt 456 160)
|
|
(pt 456 184)
|
|
)
|
|
(connector
|
|
(pt 456 184)
|
|
(pt 464 184)
|
|
)
|
|
(connector
|
|
(pt 456 160)
|
|
(pt 536 160)
|
|
)
|
|
(connector
|
|
(pt 544 192)
|
|
(pt 544 152)
|
|
)
|
|
(connector
|
|
(pt 544 152)
|
|
(pt 456 152)
|
|
)
|
|
(connector
|
|
(pt 456 152)
|
|
(pt 456 128)
|
|
)
|
|
(connector
|
|
(pt 456 128)
|
|
(pt 464 128)
|
|
)
|
|
(connector
|
|
(pt 528 192)
|
|
(pt 544 192)
|
|
)
|
|
(connector
|
|
(pt 528 120)
|
|
(pt 536 120)
|
|
)
|
|
(connector
|
|
(pt 448 200)
|
|
(pt 464 200)
|
|
)
|
|
(connector
|
|
(pt 448 192)
|
|
(pt 440 192)
|
|
)
|
|
(connector
|
|
(pt 368 112)
|
|
(pt 368 184)
|
|
)
|
|
(connector
|
|
(pt 368 184)
|
|
(pt 376 184)
|
|
)
|
|
(connector
|
|
(pt 448 200)
|
|
(pt 448 192)
|
|
)
|
|
(connector
|
|
(pt 280 200)
|
|
(pt 376 200)
|
|
)
|
|
(connector
|
|
(pt 280 120)
|
|
(pt 280 200)
|
|
)
|
|
(connector
|
|
(pt 256 104)
|
|
(pt 288 104)
|
|
)
|
|
(connector
|
|
(pt 264 64)
|
|
(pt 256 64)
|
|
)
|
|
(connector
|
|
(pt 352 112)
|
|
(pt 368 112)
|
|
)
|
|
(connector
|
|
(pt 368 112)
|
|
(pt 464 112)
|
|
)
|
|
(connector
|
|
(pt 264 120)
|
|
(pt 280 120)
|
|
)
|
|
(connector
|
|
(pt 280 120)
|
|
(pt 288 120)
|
|
)
|
|
(connector
|
|
(pt 728 152)
|
|
(pt 712 152)
|
|
)
|
|
(connector
|
|
(pt 648 160)
|
|
(pt 640 160)
|
|
)
|
|
(connector
|
|
(pt 536 120)
|
|
(pt 536 144)
|
|
)
|
|
(connector
|
|
(pt 536 144)
|
|
(pt 536 160)
|
|
)
|
|
(connector
|
|
(pt 264 64)
|
|
(pt 264 120)
|
|
)
|
|
(connector
|
|
(pt 640 56)
|
|
(pt 624 56)
|
|
)
|
|
(connector
|
|
(pt 640 160)
|
|
(pt 640 56)
|
|
)
|
|
(connector
|
|
(pt 600 200)
|
|
(pt 576 200)
|
|
)
|
|
(connector
|
|
(pt 576 200)
|
|
(pt 576 144)
|
|
)
|
|
(connector
|
|
(pt 536 144)
|
|
(pt 576 144)
|
|
)
|
|
(connector
|
|
(pt 576 144)
|
|
(pt 648 144)
|
|
)
|
|
(junction (pt 368 112))
|
|
(junction (pt 536 144))
|
|
(junction (pt 280 120))
|
|
(junction (pt 576 144))
|