mirror of
https://github.com/supleed2/ELEC40006-P1-CW.git
synced 2024-11-10 02:05:48 +00:00
284 lines
6.9 KiB
Plaintext
284 lines
6.9 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) 2018 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 FPGA IP 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 272 296 440 312)
|
|
(text "INPUT" (rect 125 0 153 10)(font "Arial" (font_size 6)))
|
|
(text "CLK" (rect 5 0 27 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
|
|
(output)
|
|
(rect 736 192 912 208)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "FETCH" (rect 90 0 126 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 736 224 912 240)
|
|
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
|
|
(text "EXEC" (rect 90 0 115 17)(font "Intel Clear" ))
|
|
(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 448 216 624 360)
|
|
(text "LPM_FF" (rect 19 0 78 16)(font "Arial" (font_size 10)))
|
|
(text "STATE" (rect 3 133 41 147)(font "Arial" (font_size 8)))
|
|
(port
|
|
(pt 88 144)
|
|
(input)
|
|
(text "aclr" (rect 80 113 101 127)(font "Arial" (font_size 8)))
|
|
(text "aclr" (rect 80 113 101 127)(font "Arial" (font_size 8)))
|
|
(line (pt 88 144)(pt 88 128))
|
|
(unused)
|
|
)
|
|
(port
|
|
(pt 0 24)
|
|
(input)
|
|
(text "aload" (rect 20 17 50 31)(font "Arial" (font_size 8)))
|
|
(text "aload" (rect 20 17 50 31)(font "Arial" (font_size 8)))
|
|
(line (pt 0 24)(pt 16 24))
|
|
(unused)
|
|
)
|
|
(port
|
|
(pt 88 0)
|
|
(input)
|
|
(text "aset" (rect 79 17 103 31)(font "Arial" (font_size 8)))
|
|
(text "aset" (rect 79 17 103 31)(font "Arial" (font_size 8)))
|
|
(line (pt 88 16)(pt 88 0))
|
|
(unused)
|
|
)
|
|
(port
|
|
(pt 0 88)
|
|
(input)
|
|
(text "clock" (rect 20 81 49 95)(font "Arial" (font_size 8))(invisible))
|
|
(text "clock" (rect 20 81 49 95)(font "Arial" (font_size 8))(invisible))
|
|
(line (pt 0 88)(pt 16 88))
|
|
)
|
|
(port
|
|
(pt 0 72)
|
|
(input)
|
|
(text "data[LPM_WIDTH-1..0]" (rect 20 63 146 77)(font "Arial" (font_size 8)))
|
|
(text "data[]" (rect 20 63 51 77)(font "Arial" (font_size 8)))
|
|
(line (pt 0 72)(pt 16 72)(line_width 3))
|
|
)
|
|
(port
|
|
(pt 0 104)
|
|
(input)
|
|
(text "enable" (rect 20 97 57 111)(font "Arial" (font_size 8)))
|
|
(text "enable" (rect 20 97 57 111)(font "Arial" (font_size 8)))
|
|
(line (pt 0 104)(pt 16 104))
|
|
(unused)
|
|
)
|
|
(port
|
|
(pt 0 120)
|
|
(input)
|
|
(text "sclr" (rect 20 113 41 127)(font "Arial" (font_size 8)))
|
|
(text "sclr" (rect 20 113 41 127)(font "Arial" (font_size 8)))
|
|
(line (pt 0 120)(pt 16 120))
|
|
(unused)
|
|
)
|
|
(port
|
|
(pt 0 56)
|
|
(input)
|
|
(text "sload" (rect 20 49 50 63)(font "Arial" (font_size 8)))
|
|
(text "sload" (rect 20 49 50 63)(font "Arial" (font_size 8)))
|
|
(line (pt 0 56)(pt 16 56))
|
|
(unused)
|
|
)
|
|
(port
|
|
(pt 0 40)
|
|
(input)
|
|
(text "sset" (rect 20 33 44 47)(font "Arial" (font_size 8)))
|
|
(text "sset" (rect 20 33 44 47)(font "Arial" (font_size 8)))
|
|
(line (pt 0 40)(pt 16 40))
|
|
(unused)
|
|
)
|
|
(port
|
|
(pt 176 88)
|
|
(output)
|
|
(text "q[LPM_WIDTH-1..0]" (rect 144 81 252 95)(font "Arial" (font_size 8)))
|
|
(text "q[]" (rect 144 81 158 95)(font "Arial" (font_size 8)))
|
|
(line (pt 160 88)(pt 176 88)(line_width 3))
|
|
)
|
|
(parameter
|
|
"LPM_AVALUE"
|
|
""
|
|
"Unsigned value associated with the aset port"
|
|
)
|
|
(parameter
|
|
"LPM_FFTYPE"
|
|
"\"DFF\""
|
|
"Selects behavior as DFF or TFF"
|
|
"\"DFF\"" "\"TFF\""
|
|
)
|
|
(parameter
|
|
"LPM_SVALUE"
|
|
""
|
|
"Unsigned value associated with the sset port"
|
|
)
|
|
(parameter
|
|
"LPM_WIDTH"
|
|
"1"
|
|
"Width of I/O, any integer > 0"
|
|
" 1" " 2" " 3" " 4" " 5" " 6" " 7" " 8" " 9" "10" "11" "12" "13" "14" "15" "16" "20" "24" "28" "32" "40" "48" "56" "64"
|
|
)
|
|
(drawing
|
|
(line (pt 16 16)(pt 160 16))
|
|
(line (pt 16 128)(pt 160 128))
|
|
(line (pt 160 128)(pt 160 16))
|
|
(line (pt 16 128)(pt 16 16))
|
|
(line (pt 16 80)(pt 24 88))
|
|
(line (pt 24 88)(pt 16 96))
|
|
)
|
|
(annotation_block (parameter)(rect 624 216 648 232))
|
|
)
|
|
(symbol
|
|
(rect 512 168 560 200)
|
|
(text "NOT" (rect 27 0 47 10)(font "Arial" (font_size 6)))
|
|
(text "NOT1" (rect 17 21 45 33)(font "Arial" ))
|
|
(port
|
|
(pt 48 16)
|
|
(input)
|
|
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
|
|
(text "IN" (rect 35 7 46 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 48 16)(pt 35 16))
|
|
)
|
|
(port
|
|
(pt 0 16)
|
|
(output)
|
|
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
|
|
(text "OUT" (rect -1 7 16 19)(font "Courier New" (bold))(invisible))
|
|
(line (pt 9 16)(pt 0 16))
|
|
)
|
|
(drawing
|
|
(line (pt 35 25)(pt 35 7))
|
|
(line (pt 35 7)(pt 17 16))
|
|
(line (pt 35 25)(pt 17 16))
|
|
(circle (rect 9 12 17 20))
|
|
)
|
|
(flipy)
|
|
)
|
|
(symbol
|
|
(rect 680 184 728 216)
|
|
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
|
|
(text "NOT2" (rect 3 21 31 33)(font "Arial" ))
|
|
(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 448 304)
|
|
(pt 440 304)
|
|
)
|
|
(connector
|
|
(pt 624 304)
|
|
(pt 664 304)
|
|
)
|
|
(connector
|
|
(pt 560 184)
|
|
(pt 664 184)
|
|
)
|
|
(connector
|
|
(pt 512 184)
|
|
(pt 432 184)
|
|
)
|
|
(connector
|
|
(pt 432 184)
|
|
(pt 432 288)
|
|
)
|
|
(connector
|
|
(pt 432 288)
|
|
(pt 448 288)
|
|
)
|
|
(connector
|
|
(pt 680 200)
|
|
(pt 664 200)
|
|
)
|
|
(connector
|
|
(pt 664 184)
|
|
(pt 664 200)
|
|
)
|
|
(connector
|
|
(pt 728 200)
|
|
(pt 736 200)
|
|
)
|
|
(connector
|
|
(pt 736 232)
|
|
(pt 664 232)
|
|
)
|
|
(connector
|
|
(pt 664 200)
|
|
(pt 664 232)
|
|
)
|
|
(connector
|
|
(pt 664 232)
|
|
(pt 664 304)
|
|
)
|
|
(junction (pt 664 200))
|
|
(junction (pt 664 232))
|