added more constraints
makes it basically working, but still some pixel errors
This commit is contained in:
@@ -1,175 +1,167 @@
|
||||
/*
|
||||
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-2013 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 0 0 144 320)
|
||||
(text "lpm_mux2" (rect 43 0 117 16)(font "Arial" (font_size 10)))
|
||||
(text "inst" (rect 8 305 26 316)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 40)
|
||||
(input)
|
||||
(text "data15x[7..0]" (rect 0 0 74 13)(font "Arial" (font_size 8)))
|
||||
(text "data15x[7..0]" (rect 4 27 67 39)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 40)(pt 64 40)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 56)
|
||||
(input)
|
||||
(text "data14x[7..0]" (rect 0 0 74 13)(font "Arial" (font_size 8)))
|
||||
(text "data14x[7..0]" (rect 4 43 67 55)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 56)(pt 64 56)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 72)
|
||||
(input)
|
||||
(text "data13x[7..0]" (rect 0 0 74 13)(font "Arial" (font_size 8)))
|
||||
(text "data13x[7..0]" (rect 4 59 67 71)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 72)(pt 64 72)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 88)
|
||||
(input)
|
||||
(text "data12x[7..0]" (rect 0 0 74 13)(font "Arial" (font_size 8)))
|
||||
(text "data12x[7..0]" (rect 4 75 67 87)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 88)(pt 64 88)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 104)
|
||||
(input)
|
||||
(text "data11x[7..0]" (rect 0 0 74 13)(font "Arial" (font_size 8)))
|
||||
(text "data11x[7..0]" (rect 4 91 67 103)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 104)(pt 64 104)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 120)
|
||||
(input)
|
||||
(text "data10x[7..0]" (rect 0 0 74 13)(font "Arial" (font_size 8)))
|
||||
(text "data10x[7..0]" (rect 4 107 67 119)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 120)(pt 64 120)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 136)
|
||||
(input)
|
||||
(text "data9x[7..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
|
||||
(text "data9x[7..0]" (rect 4 123 61 135)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 136)(pt 64 136)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 152)
|
||||
(input)
|
||||
(text "data8x[7..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
|
||||
(text "data8x[7..0]" (rect 4 139 61 151)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 152)(pt 64 152)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 168)
|
||||
(input)
|
||||
(text "data7x[7..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
|
||||
(text "data7x[7..0]" (rect 4 155 61 167)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 168)(pt 64 168)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 184)
|
||||
(input)
|
||||
(text "data6x[7..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
|
||||
(text "data6x[7..0]" (rect 4 171 61 183)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 184)(pt 64 184)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 200)
|
||||
(input)
|
||||
(text "data5x[7..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
|
||||
(text "data5x[7..0]" (rect 4 187 61 199)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 200)(pt 64 200)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 216)
|
||||
(input)
|
||||
(text "data4x[7..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
|
||||
(text "data4x[7..0]" (rect 4 203 61 215)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 216)(pt 64 216)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 232)
|
||||
(input)
|
||||
(text "data3x[7..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
|
||||
(text "data3x[7..0]" (rect 4 219 61 231)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 232)(pt 64 232)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 248)
|
||||
(input)
|
||||
(text "data2x[7..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
|
||||
(text "data2x[7..0]" (rect 4 235 61 247)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 248)(pt 64 248)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 264)
|
||||
(input)
|
||||
(text "data1x[7..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
|
||||
(text "data1x[7..0]" (rect 4 251 61 263)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 264)(pt 64 264)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 280)
|
||||
(input)
|
||||
(text "data0x[7..0]" (rect 0 0 67 13)(font "Arial" (font_size 8)))
|
||||
(text "data0x[7..0]" (rect 4 267 61 279)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 280)(pt 64 280)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 296)
|
||||
(input)
|
||||
(text "clock" (rect 0 0 31 13)(font "Arial" (font_size 8)))
|
||||
(text "clock" (rect 4 283 29 295)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 296)(pt 64 296))
|
||||
)
|
||||
(port
|
||||
(pt 72 320)
|
||||
(input)
|
||||
(text "sel[3..0]" (rect 0 0 13 46)(font "Arial" (font_size 8))(vertical))
|
||||
(text "sel[3..0]" (rect 66 265 78 303)(font "Arial" (font_size 8))(vertical))
|
||||
(line (pt 72 320)(pt 72 308)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 144 168)
|
||||
(output)
|
||||
(text "result[7..0]" (rect 0 0 60 13)(font "Arial" (font_size 8)))
|
||||
(text "result[7..0]" (rect 91 155 142 167)(font "Arial" (font_size 8)))
|
||||
(line (pt 144 168)(pt 80 168)(line_width 3))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 64 24)(pt 64 312))
|
||||
(line (pt 64 24)(pt 80 32))
|
||||
(line (pt 64 312)(pt 80 304))
|
||||
(line (pt 80 32)(pt 80 304))
|
||||
(line (pt 0 0)(pt 146 0))
|
||||
(line (pt 146 0)(pt 146 322))
|
||||
(line (pt 0 322)(pt 146 322))
|
||||
(line (pt 0 0)(pt 0 322))
|
||||
(line (pt 64 290)(pt 70 296))
|
||||
(line (pt 70 296)(pt 64 302))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
(line (pt 0 0)(pt 0 0))
|
||||
)
|
||||
)
|
||||
/*
|
||||
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-2008 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.1"))
|
||||
(symbol
|
||||
(rect 0 0 144 320)
|
||||
(text "lpm_mux2" (rect 50 2 120 18)(font "Arial" (font_size 10)))
|
||||
(text "inst" (rect 8 304 25 316)(font "Arial" ))
|
||||
(port
|
||||
(pt 0 40)
|
||||
(input)
|
||||
(text "data15x[7..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
|
||||
(text "data15x[7..0]" (rect 4 27 66 40)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 40)(pt 72 40)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 56)
|
||||
(input)
|
||||
(text "data14x[7..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
|
||||
(text "data14x[7..0]" (rect 4 43 66 56)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 56)(pt 72 56)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 72)
|
||||
(input)
|
||||
(text "data13x[7..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
|
||||
(text "data13x[7..0]" (rect 4 59 66 72)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 72)(pt 72 72)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 88)
|
||||
(input)
|
||||
(text "data12x[7..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
|
||||
(text "data12x[7..0]" (rect 4 75 66 88)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 88)(pt 72 88)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 104)
|
||||
(input)
|
||||
(text "data11x[7..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
|
||||
(text "data11x[7..0]" (rect 4 91 66 104)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 104)(pt 72 104)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 120)
|
||||
(input)
|
||||
(text "data10x[7..0]" (rect 0 0 74 14)(font "Arial" (font_size 8)))
|
||||
(text "data10x[7..0]" (rect 4 107 66 120)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 120)(pt 72 120)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 136)
|
||||
(input)
|
||||
(text "data9x[7..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
|
||||
(text "data9x[7..0]" (rect 4 123 60 136)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 136)(pt 72 136)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 152)
|
||||
(input)
|
||||
(text "data8x[7..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
|
||||
(text "data8x[7..0]" (rect 4 139 60 152)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 152)(pt 72 152)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 168)
|
||||
(input)
|
||||
(text "data7x[7..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
|
||||
(text "data7x[7..0]" (rect 4 155 60 168)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 168)(pt 72 168)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 184)
|
||||
(input)
|
||||
(text "data6x[7..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
|
||||
(text "data6x[7..0]" (rect 4 171 60 184)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 184)(pt 72 184)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 200)
|
||||
(input)
|
||||
(text "data5x[7..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
|
||||
(text "data5x[7..0]" (rect 4 187 60 200)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 200)(pt 72 200)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 216)
|
||||
(input)
|
||||
(text "data4x[7..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
|
||||
(text "data4x[7..0]" (rect 4 203 60 216)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 216)(pt 72 216)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 232)
|
||||
(input)
|
||||
(text "data3x[7..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
|
||||
(text "data3x[7..0]" (rect 4 219 60 232)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 232)(pt 72 232)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 248)
|
||||
(input)
|
||||
(text "data2x[7..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
|
||||
(text "data2x[7..0]" (rect 4 235 60 248)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 248)(pt 72 248)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 264)
|
||||
(input)
|
||||
(text "data1x[7..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
|
||||
(text "data1x[7..0]" (rect 4 251 60 264)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 264)(pt 72 264)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 280)
|
||||
(input)
|
||||
(text "data0x[7..0]" (rect 0 0 67 14)(font "Arial" (font_size 8)))
|
||||
(text "data0x[7..0]" (rect 4 267 60 280)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 280)(pt 72 280)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 0 296)
|
||||
(input)
|
||||
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
|
||||
(text "clock" (rect 4 283 27 296)(font "Arial" (font_size 8)))
|
||||
(line (pt 0 296)(pt 72 296)(line_width 1))
|
||||
)
|
||||
(port
|
||||
(pt 80 320)
|
||||
(input)
|
||||
(text "sel[3..0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
|
||||
(text "sel[3..0]" (rect 84 307 121 320)(font "Arial" (font_size 8)))
|
||||
(line (pt 80 320)(pt 80 308)(line_width 3))
|
||||
)
|
||||
(port
|
||||
(pt 144 168)
|
||||
(output)
|
||||
(text "result[7..0]" (rect 0 0 60 14)(font "Arial" (font_size 8)))
|
||||
(text "result[7..0]" (rect 90 155 139 168)(font "Arial" (font_size 8)))
|
||||
(line (pt 144 168)(pt 88 168)(line_width 3))
|
||||
)
|
||||
(drawing
|
||||
(line (pt 72 24)(pt 72 312)(line_width 1))
|
||||
(line (pt 88 32)(pt 88 304)(line_width 1))
|
||||
(line (pt 72 24)(pt 88 32)(line_width 1))
|
||||
(line (pt 72 312)(pt 88 304)(line_width 1))
|
||||
(line (pt 72 290)(pt 78 296)(line_width 1))
|
||||
(line (pt 78 296)(pt 72 302)(line_width 1))
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user