From 8a36eb2b64db65c32efffd8994078c63428d0c76 Mon Sep 17 00:00:00 2001 From: juzeon <812312770@qq.com> Date: Thu, 10 Mar 2022 21:14:58 +0800 Subject: [PATCH] swap As and Bs --- adder_suber_8b/adder_suber_8b.bdf | 398 ++++++++++++++++-------------- adder_suber_8b/adder_suber_8b.qsf | 3 +- 2 files changed, 216 insertions(+), 185 deletions(-) diff --git a/adder_suber_8b/adder_suber_8b.bdf b/adder_suber_8b/adder_suber_8b.bdf index 4e111dc..46d14c1 100644 --- a/adder_suber_8b/adder_suber_8b.bdf +++ b/adder_suber_8b/adder_suber_8b.bdf @@ -22,7 +22,7 @@ applicable agreement for further details. (header "graphic" (version "1.3")) (pin (input) - (rect 120 336 288 352) + (rect 144 344 312 360) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "A1" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -35,10 +35,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 360 144 376)) ) (pin (input) - (rect 120 400 288 416) + (rect 144 408 312 424) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "A0" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -51,10 +52,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 424 144 440)) ) (pin (input) - (rect 120 272 288 288) + (rect 144 280 312 296) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "A2" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -67,10 +69,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 296 144 312)) ) (pin (input) - (rect 120 208 288 224) + (rect 144 216 312 232) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "A3" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -83,10 +86,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 232 144 248)) ) (pin (input) - (rect 120 144 288 160) + (rect 144 152 312 168) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "A4" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -99,10 +103,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 168 144 184)) ) (pin (input) - (rect 120 80 288 96) + (rect 144 88 312 104) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "A5" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -115,10 +120,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 104 144 120)) ) (pin (input) - (rect 120 16 288 32) + (rect 144 24 312 40) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "A6" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -131,10 +137,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 40 144 56)) ) (pin (input) - (rect 120 -48 288 -32) + (rect 144 -40 312 -24) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "A7" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -147,10 +154,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 -24 144 -8)) ) (pin (input) - (rect 120 440 288 456) + (rect 144 448 312 464) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "B0" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -163,10 +171,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 464 144 480)) ) (pin (input) - (rect 120 376 288 392) + (rect 144 384 312 400) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "B1" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -179,10 +188,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 400 144 416)) ) (pin (input) - (rect 120 312 288 328) + (rect 144 320 312 336) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "B2" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -195,10 +205,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 336 144 352)) ) (pin (input) - (rect 120 248 288 264) + (rect 144 256 312 272) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "B3" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -211,10 +222,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 272 144 288)) ) (pin (input) - (rect 120 184 288 200) + (rect 144 192 312 208) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "B4" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -227,10 +239,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 208 144 224)) ) (pin (input) - (rect 120 120 288 136) + (rect 144 128 312 144) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "B5" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -243,10 +256,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 144 144 160)) ) (pin (input) - (rect 120 56 288 72) + (rect 144 64 312 80) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "B6" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -259,10 +273,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 80 144 96)) ) (pin (input) - (rect 120 -8 288 8) + (rect 144 0 312 16) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "B7" (rect 5 0 17 12)(font "Arial" )) (pt 168 8) @@ -275,10 +290,11 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 16 144 32)) ) (pin (input) - (rect 120 496 288 512) + (rect 144 504 312 520) (text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6))) (text "SUB" (rect 5 0 27 12)(font "Arial" )) (pt 168 8) @@ -291,6 +307,7 @@ applicable agreement for further details. (line (pt 117 12)(pt 121 8)(line_width 1)) ) (text "VCC" (rect 136 7 156 17)(font "Arial" (font_size 6))) + (annotation_block (location)(rect 96 520 144 536)) ) (pin (output) @@ -307,6 +324,7 @@ applicable agreement for further details. (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) + (annotation_block (location)(rect 888 344 944 360)) ) (pin (output) @@ -323,6 +341,7 @@ applicable agreement for further details. (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) + (annotation_block (location)(rect 888 328 944 344)) ) (pin (output) @@ -339,6 +358,7 @@ applicable agreement for further details. (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) + (annotation_block (location)(rect 888 312 944 328)) ) (pin (output) @@ -355,6 +375,7 @@ applicable agreement for further details. (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) + (annotation_block (location)(rect 888 296 944 312)) ) (pin (output) @@ -371,6 +392,7 @@ applicable agreement for further details. (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) + (annotation_block (location)(rect 888 280 944 296)) ) (pin (output) @@ -387,6 +409,7 @@ applicable agreement for further details. (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) + (annotation_block (location)(rect 888 264 944 280)) ) (pin (output) @@ -403,6 +426,7 @@ applicable agreement for further details. (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) + (annotation_block (location)(rect 888 248 944 264)) ) (pin (output) @@ -419,6 +443,7 @@ applicable agreement for further details. (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) + (annotation_block (location)(rect 888 232 944 248)) ) (pin (output) @@ -435,6 +460,7 @@ applicable agreement for further details. (line (pt 82 8)(pt 78 12)(line_width 1)) (line (pt 78 12)(pt 82 8)(line_width 1)) ) + (annotation_block (location)(rect 888 216 944 232)) ) (symbol (rect 600 176 696 496) @@ -627,7 +653,7 @@ applicable agreement for further details. ) ) (symbol - (rect 352 328 416 376) + (rect 352 360 416 408) (text "XOR" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst1" (rect 3 37 26 49)(font "Arial" )) (port @@ -661,7 +687,7 @@ applicable agreement for further details. ) ) (symbol - (rect 352 392 416 440) + (rect 352 424 416 472) (text "XOR" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst2" (rect 3 37 26 49)(font "Arial" )) (port @@ -695,7 +721,7 @@ applicable agreement for further details. ) ) (symbol - (rect 352 264 416 312) + (rect 352 296 416 344) (text "XOR" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst3" (rect 3 37 26 49)(font "Arial" )) (port @@ -729,7 +755,7 @@ applicable agreement for further details. ) ) (symbol - (rect 352 200 416 248) + (rect 352 232 416 280) (text "XOR" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst4" (rect 3 37 26 49)(font "Arial" )) (port @@ -763,7 +789,7 @@ applicable agreement for further details. ) ) (symbol - (rect 352 136 416 184) + (rect 352 168 416 216) (text "XOR" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst5" (rect 3 37 26 49)(font "Arial" )) (port @@ -797,7 +823,7 @@ applicable agreement for further details. ) ) (symbol - (rect 352 72 416 120) + (rect 352 104 416 152) (text "XOR" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst6" (rect 3 37 26 49)(font "Arial" )) (port @@ -831,7 +857,7 @@ applicable agreement for further details. ) ) (symbol - (rect 352 8 416 56) + (rect 352 40 416 88) (text "XOR" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst7" (rect 3 37 26 49)(font "Arial" )) (port @@ -865,7 +891,7 @@ applicable agreement for further details. ) ) (symbol - (rect 352 -56 416 -8) + (rect 352 -24 416 24) (text "XOR" (rect 1 0 21 10)(font "Arial" (font_size 6))) (text "inst8" (rect 3 37 26 49)(font "Arial" )) (port @@ -898,10 +924,6 @@ applicable agreement for further details. (arc (pt 8 36)(pt 8 12)(rect -21 7 14 42)(line_width 1)) ) ) -(connector - (pt 416 416) - (pt 448 416) -) (connector (pt 600 432) (pt 448 432) @@ -914,34 +936,6 @@ applicable agreement for further details. (pt 600 416) (pt 456 416) ) -(connector - (pt 416 352) - (pt 464 352) -) -(connector - (pt 416 288) - (pt 480 288) -) -(connector - (pt 416 224) - (pt 496 224) -) -(connector - (pt 416 160) - (pt 512 160) -) -(connector - (pt 416 96) - (pt 528 96) -) -(connector - (pt 416 32) - (pt 544 32) -) -(connector - (pt 416 -32) - (pt 560 -32) -) (connector (pt 464 352) (pt 464 400) @@ -1058,86 +1052,10 @@ applicable agreement for further details. (pt 696 336) (pt 712 336) ) -(connector - (pt 352 -40) - (pt 288 -40) -) -(connector - (pt 352 24) - (pt 288 24) -) -(connector - (pt 352 40) - (pt 320 40) -) -(connector - (pt 352 88) - (pt 288 88) -) -(connector - (pt 352 104) - (pt 320 104) -) -(connector - (pt 352 152) - (pt 288 152) -) -(connector - (pt 352 168) - (pt 320 168) -) -(connector - (pt 352 216) - (pt 288 216) -) -(connector - (pt 352 280) - (pt 288 280) -) -(connector - (pt 352 344) - (pt 288 344) -) -(connector - (pt 352 408) - (pt 288 408) -) -(connector - (pt 600 448) - (pt 288 448) -) (connector (pt 456 416) (pt 456 384) ) -(connector - (pt 456 384) - (pt 288 384) -) -(connector - (pt 472 320) - (pt 288 320) -) -(connector - (pt 488 256) - (pt 288 256) -) -(connector - (pt 504 192) - (pt 288 192) -) -(connector - (pt 520 128) - (pt 288 128) -) -(connector - (pt 536 64) - (pt 288 64) -) -(connector - (pt 552 0) - (pt 288 0) -) (connector (pt 472 384) (pt 472 320) @@ -1163,74 +1081,186 @@ applicable agreement for further details. (pt 552 0) ) (connector - (pt 352 -24) - (pt 320 -24) -) -(connector - (pt 320 504) - (pt 288 504) -) -(connector - (pt 352 232) - (pt 320 232) -) -(connector - (pt 352 296) - (pt 320 296) -) -(connector - (pt 352 360) - (pt 320 360) -) -(connector - (pt 352 424) - (pt 320 424) -) -(connector + (pt 440 464) (pt 600 464) - (pt 320 464) ) (connector - (pt 320 296) - (pt 320 360) + (pt 312 392) + (pt 352 392) ) (connector - (pt 320 232) - (pt 320 296) + (pt 312 328) + (pt 352 328) ) (connector - (pt 320 168) - (pt 320 232) + (pt 312 264) + (pt 352 264) ) (connector - (pt 320 -24) - (pt 320 40) + (pt 312 200) + (pt 352 200) ) (connector - (pt 320 40) - (pt 320 104) + (pt 312 136) + (pt 352 136) ) (connector - (pt 320 104) - (pt 320 168) + (pt 312 72) + (pt 352 72) ) (connector - (pt 320 360) - (pt 320 424) + (pt 312 8) + (pt 352 8) ) (connector - (pt 320 424) - (pt 320 464) + (pt 312 456) + (pt 352 456) ) (connector - (pt 320 464) - (pt 320 504) + (pt 312 -32) + (pt 560 -32) ) -(junction (pt 320 360)) -(junction (pt 320 424)) -(junction (pt 320 296)) -(junction (pt 320 232)) -(junction (pt 320 168)) -(junction (pt 320 104)) -(junction (pt 320 40)) -(junction (pt 320 464)) +(connector + (pt 416 0) + (pt 552 0) +) +(connector + (pt 312 32) + (pt 544 32) +) +(connector + (pt 312 96) + (pt 528 96) +) +(connector + (pt 312 160) + (pt 512 160) +) +(connector + (pt 312 224) + (pt 496 224) +) +(connector + (pt 312 288) + (pt 480 288) +) +(connector + (pt 416 320) + (pt 472 320) +) +(connector + (pt 312 352) + (pt 464 352) +) +(connector + (pt 416 384) + (pt 456 384) +) +(connector + (pt 312 416) + (pt 448 416) +) +(connector + (pt 416 448) + (pt 600 448) +) +(connector + (pt 416 128) + (pt 520 128) +) +(connector + (pt 416 64) + (pt 536 64) +) +(connector + (pt 416 192) + (pt 504 192) +) +(connector + (pt 416 256) + (pt 488 256) +) +(connector + (pt 352 -8) + (pt 344 -8) +) +(connector + (pt 352 56) + (pt 344 56) +) +(connector + (pt 344 -8) + (pt 344 56) +) +(connector + (pt 352 120) + (pt 344 120) +) +(connector + (pt 344 56) + (pt 344 120) +) +(connector + (pt 352 184) + (pt 344 184) +) +(connector + (pt 344 120) + (pt 344 184) +) +(connector + (pt 352 248) + (pt 344 248) +) +(connector + (pt 344 184) + (pt 344 248) +) +(connector + (pt 352 312) + (pt 344 312) +) +(connector + (pt 344 248) + (pt 344 312) +) +(connector + (pt 352 376) + (pt 344 376) +) +(connector + (pt 344 312) + (pt 344 376) +) +(connector + (pt 352 440) + (pt 344 440) +) +(connector + (pt 344 376) + (pt 344 440) +) +(connector + (pt 344 440) + (pt 344 512) +) +(connector + (pt 440 464) + (pt 440 512) +) +(connector + (pt 312 512) + (pt 344 512) +) +(connector + (pt 344 512) + (pt 440 512) +) +(junction (pt 344 56)) +(junction (pt 344 120)) +(junction (pt 344 184)) +(junction (pt 344 248)) +(junction (pt 344 312)) +(junction (pt 344 376)) +(junction (pt 344 440)) +(junction (pt 344 512)) diff --git a/adder_suber_8b/adder_suber_8b.qsf b/adder_suber_8b/adder_suber_8b.qsf index 2dbf0a7..5da2d50 100644 --- a/adder_suber_8b/adder_suber_8b.qsf +++ b/adder_suber_8b/adder_suber_8b.qsf @@ -77,4 +77,5 @@ set_location_assignment PIN_146 -to S4 set_location_assignment PIN_147 -to S5 set_location_assignment PIN_149 -to S6 set_location_assignment PIN_150 -to S7 -set_location_assignment PIN_151 -to CO \ No newline at end of file +set_location_assignment PIN_151 -to CO +set_global_assignment -name MISC_FILE "D:/projects/quartus/adder_suber_8b/adder_suber_8b.dpf" \ No newline at end of file