410 lines
9.8 KiB
Plaintext
410 lines
9.8 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) 2016 Intel Corporation. All rights reserved.
|
||
|
Your use of Intel 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 Intel Program License
|
||
|
Subscription Agreement, the Intel Quartus Prime License Agreement,
|
||
|
the Intel 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 Intel and sold by Intel or its
|
||
|
authorized distributors. Please refer to the applicable
|
||
|
agreement for further details.
|
||
|
*/
|
||
|
(header "graphic" (version "1.4"))
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 136 272 304 288)
|
||
|
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||
|
(text "A" (rect 5 0 14 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)))
|
||
|
)
|
||
|
(pin
|
||
|
(input)
|
||
|
(rect 136 400 304 416)
|
||
|
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
||
|
(text "B" (rect 5 0 13 17)(font "Intel Clear" ))
|
||
|
(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)))
|
||
|
)
|
||
|
(pin
|
||
|
(output)
|
||
|
(rect 632 232 808 248)
|
||
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||
|
(text "Q0" (rect 90 0 104 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 632 320 808 336)
|
||
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||
|
(text "Q1" (rect 90 0 104 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 632 416 808 432)
|
||
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||
|
(text "Q2" (rect 90 0 104 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 632 496 808 512)
|
||
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
||
|
(text "Q3" (rect 90 0 104 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))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 568 216 632 264)
|
||
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||
|
(text "inst" (rect 3 37 20 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))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 568 304 632 352)
|
||
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||
|
(text "inst1" (rect 3 37 25 54)(font "Intel Clear" ))
|
||
|
(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))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 568 400 632 448)
|
||
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||
|
(text "inst2" (rect 3 37 25 54)(font "Intel Clear" ))
|
||
|
(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))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 568 480 632 528)
|
||
|
(text "AND2" (rect 1 0 25 10)(font "Arial" (font_size 6)))
|
||
|
(text "inst3" (rect 3 37 25 54)(font "Intel Clear" ))
|
||
|
(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))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 384 288 432 320)
|
||
|
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
|
||
|
(text "inst5" (rect 3 21 25 38)(font "Intel Clear" ))
|
||
|
(port
|
||
|
(pt 0 16)
|
||
|
(input)
|
||
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
||
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
||
|
(line (pt 0 16)(pt 13 16))
|
||
|
)
|
||
|
(port
|
||
|
(pt 48 16)
|
||
|
(output)
|
||
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
||
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
||
|
(line (pt 39 16)(pt 48 16))
|
||
|
)
|
||
|
(drawing
|
||
|
(line (pt 13 25)(pt 13 7))
|
||
|
(line (pt 13 7)(pt 31 16))
|
||
|
(line (pt 13 25)(pt 31 16))
|
||
|
(circle (rect 31 12 39 20))
|
||
|
)
|
||
|
)
|
||
|
(symbol
|
||
|
(rect 384 392 432 424)
|
||
|
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
|
||
|
(text "inst7" (rect 3 21 25 38)(font "Intel Clear" ))
|
||
|
(port
|
||
|
(pt 0 16)
|
||
|
(input)
|
||
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
||
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
||
|
(line (pt 0 16)(pt 13 16))
|
||
|
)
|
||
|
(port
|
||
|
(pt 48 16)
|
||
|
(output)
|
||
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
||
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
||
|
(line (pt 39 16)(pt 48 16))
|
||
|
)
|
||
|
(drawing
|
||
|
(line (pt 13 25)(pt 13 7))
|
||
|
(line (pt 13 7)(pt 31 16))
|
||
|
(line (pt 13 25)(pt 31 16))
|
||
|
(circle (rect 31 12 39 20))
|
||
|
)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 568 248)
|
||
|
(pt 560 248)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 560 248)
|
||
|
(pt 560 304)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 304 280)
|
||
|
(pt 336 280)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 336 304)
|
||
|
(pt 384 304)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 568 232)
|
||
|
(pt 480 232)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 480 232)
|
||
|
(pt 480 408)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 360 512)
|
||
|
(pt 568 512)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 304 408)
|
||
|
(pt 360 408)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 360 408)
|
||
|
(pt 384 408)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 336 280)
|
||
|
(pt 336 304)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 336 304)
|
||
|
(pt 336 464)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 568 464)
|
||
|
(pt 568 496)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 488 464)
|
||
|
(pt 488 416)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 488 416)
|
||
|
(pt 568 416)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 336 464)
|
||
|
(pt 488 464)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 488 464)
|
||
|
(pt 568 464)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 568 432)
|
||
|
(pt 456 432)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 456 432)
|
||
|
(pt 456 408)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 480 408)
|
||
|
(pt 456 408)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 456 408)
|
||
|
(pt 432 408)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 568 320)
|
||
|
(pt 528 320)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 528 320)
|
||
|
(pt 528 304)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 560 304)
|
||
|
(pt 528 304)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 528 304)
|
||
|
(pt 432 304)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 360 336)
|
||
|
(pt 568 336)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 360 336)
|
||
|
(pt 360 408)
|
||
|
)
|
||
|
(connector
|
||
|
(pt 360 408)
|
||
|
(pt 360 512)
|
||
|
)
|
||
|
(junction (pt 360 408))
|
||
|
(junction (pt 336 304))
|
||
|
(junction (pt 488 464))
|
||
|
(junction (pt 456 408))
|
||
|
(junction (pt 528 304))
|