87 lines
2.8 KiB
Plaintext
87 lines
2.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) 1991-2011 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 "symbol" (version "1.2"))
|
|
(symbol
|
|
(rect 64 64 312 224)
|
|
(text "inc_dec_2bit" (rect 16 0 87 14)(font "Arial" (font_size 8)))
|
|
(text "inst" (rect 112 72 129 84)(font "Arial" ))
|
|
(port
|
|
(pt 0 24)
|
|
(input)
|
|
(text "carry_borrow_in" (rect 0 0 96 14)(font "Arial" (font_size 8)))
|
|
(text "carry_borrow_in" (rect 21 19 117 33)(font "Arial" (font_size 8)))
|
|
(line (pt 0 24)(pt 16 24))
|
|
)
|
|
(port
|
|
(pt 0 104)
|
|
(input)
|
|
(text "d1_in" (rect 0 0 30 14)(font "Arial" (font_size 8)))
|
|
(text "d1_in" (rect 21 99 51 113)(font "Arial" (font_size 8)))
|
|
(line (pt 0 104)(pt 16 104))
|
|
)
|
|
(port
|
|
(pt 0 40)
|
|
(input)
|
|
(text "d0_in" (rect 0 0 30 14)(font "Arial" (font_size 8)))
|
|
(text "d0_in" (rect 21 35 51 49)(font "Arial" (font_size 8)))
|
|
(line (pt 0 40)(pt 16 40))
|
|
)
|
|
(port
|
|
(pt 0 136)
|
|
(input)
|
|
(text "dec1_in" (rect 0 0 44 14)(font "Arial" (font_size 8)))
|
|
(text "dec1_in" (rect 21 131 65 145)(font "Arial" (font_size 8)))
|
|
(line (pt 0 136)(pt 16 136))
|
|
)
|
|
(port
|
|
(pt 0 72)
|
|
(input)
|
|
(text "dec0_in" (rect 0 0 44 14)(font "Arial" (font_size 8)))
|
|
(text "dec0_in" (rect 21 67 65 81)(font "Arial" (font_size 8)))
|
|
(line (pt 0 72)(pt 16 72))
|
|
)
|
|
(port
|
|
(pt 248 128)
|
|
(output)
|
|
(text "carry_borrow_out" (rect -8 0 97 14)(font "Arial" (font_size 8)))
|
|
(text "carry_borrow_out" (rect 122 123 227 137)(font "Arial" (font_size 8)))
|
|
(line (pt 248 128)(pt 232 128))
|
|
)
|
|
(port
|
|
(pt 248 80)
|
|
(output)
|
|
(text "d1_out" (rect -8 0 30 14)(font "Arial" (font_size 8)))
|
|
(text "d1_out" (rect 189 75 227 89)(font "Arial" (font_size 8)))
|
|
(line (pt 248 80)(pt 232 80))
|
|
)
|
|
(port
|
|
(pt 248 56)
|
|
(output)
|
|
(text "d0_out" (rect -8 0 30 14)(font "Arial" (font_size 8)))
|
|
(text "d0_out" (rect 189 51 227 65)(font "Arial" (font_size 8)))
|
|
(line (pt 248 56)(pt 232 56))
|
|
)
|
|
(drawing
|
|
(rectangle (rect 16 16 240 152))
|
|
)
|
|
(fill (color 253 211 206))
|
|
)
|