forked from mdivjak/Icy_Tower
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMPX.bsf
72 lines (72 loc) · 2.23 KB
/
CMPX.bsf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/*
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) 2017 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 "symbol" (version "1.2"))
(symbol
(rect 64 64 224 136)
(text "CMPX" (rect 5 0 34 12)(font "Arial" ))
(text "inst" (rect 8 56 25 68)(font "Arial" ))
(port
(pt 48 0)
(input)
(text "A[size-1..0]" (rect 0 0 55 12)(font "Arial" ))
(text " A" (rect 40 16 55 28)(font "Arial" ))
(line (pt 48 0)(pt 48 17)(line_width 3))
)
(port
(pt 104 0)
(input)
(text "B[size-1..0]" (rect 0 0 55 12)(font "Arial" ))
(text " B" (rect 96 16 110 28)(font "Arial" ))
(line (pt 104 0)(pt 104 17)(line_width 3))
)
(port
(pt 48 72)
(output)
(text "ls" (rect 0 -40 8 -28)(font "Arial" ))
(text "A<B" (rect 40 40 60 52)(font "Arial" ))
(line (pt 48 72)(pt 48 56))
)
(port
(pt 80 72)
(output)
(text "eq" (rect 0 -40 11 -28)(font "Arial" ))
(text "A=B" (rect 72 40 92 52)(font "Arial" ))
(line (pt 80 72)(pt 80 56))
)
(port
(pt 112 72)
(output)
(text "gr" (rect 0 -40 9 -28)(font "Arial" ))
(text "A>B" (rect 104 40 124 52)(font "Arial" ))
(line (pt 112 72)(pt 112 56))
)
(parameter
"size"
"16"
""
(type "PARAMETER_SIGNED_DEC") )
(drawing
(text " CMP" (rect 64 24 97 38)(font "Arial" (color 0 0 0)(font_size 8)(bold)))
(rectangle (rect 16 16 136 56))
)
(annotation_block (parameter)(rect 224 32 400 64))
)