Commit ad78a6cf authored by Ivo Júnior's avatar Ivo Júnior

Trabalho terminado.

parent 876ce3af
No preview for this file type
No preview for this file type
This diff is collapsed.
No preview for this file type
#include <stdio.h>
#include <stdlib.h>
#define BUF_SZ 64
#define BUF_SZ 160
int buf[BUF_SZ] = {
0,0,
14,14,14,14,14,14,14,
14,16,18,20,22,24,26, // 15
28,28,28,28,28,28,28,28, // 23
0,0,
-17,-17,-17,-17,-17,-17, // 31
-17,-17,-17,-17,-17,-17,-17,-17, // 39
-13,-9,-5,0,
0,0,0,0, // 47
0,0,0,0,
0,0,0,0,
0,0,0,0,
0,0,0,0
0,0,0,0, // 4
24,24,24,24,24,24,24,24, // 12
24,24,24,24,24,24,24,24,24,24,24,24, // 24
25,26,27,28,29,30,31,32, // 32
33,34,35,36,37,38,39,40, // 40
40,40,40,40, // 44
38,36,34,32,30,38,26,24, // 52 erro proposital = 38
22,20,18,16,14,12,10, 8, // 60
8,8,8,8, // 64
0,0,0,0, // 68
-50,-50,-50,-50,-50,-50,-50,-50, // 76
-50,-50,-50,-50,-50,-50,-50,-50, // 84
-45,-40,-35,-30, // 88
-30,-30,-30,-30,-30,-30,-30,-38, // 96 erro proposital = -38
-30,-30,-30,-30,-30,-30,-30,-30, // 104
-17,-17,-17,-17,-17,-17,-17,-17, // 112
-13,-9,-5,-3, // 116
-5,-5,-5,-5, // 120
-5,-5,-5,-5,-5,-5,-5,-5, // 128
-5,-5,-5,-5,-5,-5,-5,-5, // 136
-5,-5,-5,-5,-5,-5,-5,-5, // 144
-5,-5,-5,-5,-5,-5,-5,-5, // 152
-5,-5,-5,-5,-5,-5,-5,-5 // 160
};
......
No preview for this file type
0 0 0 0 0 0 0
0 0 -1 -2 0 0 0
0 0 -1 -2 -2 0 0
14 0 13 26 -4 0 3
14 0 13 26 22 28 12
14 3 10 20 48 28 16
14 7 6 12 68 28 18
14 9 4 8 80 28 19
14 11 2 4 88 28 20
14 13 0 0 92 28 20
14 15 -2 -4 92 28 19
16 15 0 0 88 28 19
18 15 2 4 88 32 20
20 17 2 4 92 36 22
22 18 3 6 96 40 23
24 18 5 10 102 44 26
26 19 6 12 112 48 28
28 21 6 12 124 52 31
28 23 4 8 136 56 33
28 25 2 4 144 56 34
28 26 1 2 148 56 34
28 27 0 0 150 56 34
28 28 -1 -2 150 56 34
28 29 -2 -4 148 56 33
28 30 -3 -6 144 56 32
0 31 -32 -64 138 56 21
0 29 -30 -60 74 0 2
-17 21 -39 -78 14 0 -10
-17 12 -30 -60 -64 -34 -26
-17 2 -20 -40 -124 -34 -33
-17 -8 -10 -20 -164 -34 -36
-17 -16 -2 -4 -184 -34 -37
-17 -22 4 8 -188 -34 -35
-17 -25 7 14 -180 -34 -33
-17 -27 9 18 -166 -34 -30
-17 -28 10 20 -148 -34 -27
-17 -28 10 20 -128 -34 -23
-17 -26 8 16 -108 -34 -21
-17 -24 6 12 -92 -34 -19
-17 -21 3 6 -80 -34 -18
-17 -18 0 0 -74 -34 -18
-13 -17 3 6 -74 -34 -17
-9 -16 6 12 -68 -26 -13
-5 -15 9 18 -56 -18 -9
0 -13 12 24 -38 -10 -4
0 -10 9 18 -14 0 0
0 -7 6 12 4 0 2
0 -4 3 6 16 0 3
0 -2 1 2 22 0 4
0 0 -1 -2 24 0 3
0 1 -2 -4 22 0 3
0 0 -1 -2 18 0 2
0 0 -1 -2 16 0 2
0 0 -1 -2 14 0 2
0 0 -1 -2 12 0 1
0 0 -1 -2 10 0 1
0 0 -1 -2 8 0 1
0 0 -1 -2 6 0 0
0 0 -1 -2 4 0 0
0 0 -1 -2 2 0 0
0 0 -1 -2 0 0 0
0 0 -1 -2 -2 0 0
0 0 -1 -2 -4 0 -1
0 0 -1 -2 -6 0 -1
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
0 0 0 0 0 0 0
24 0 24 816 0 0 25
24 6 18 612 96 624 41
24 16 8 272 168 624 33
24 21 3 102 200 624 28
24 23 1 34 212 624 27
24 23 1 34 216 624 27
24 22 2 68 220 624 28
24 24 0 0 228 624 26
24 25 -1 -34 228 624 25
24 24 0 0 224 624 26
24 23 1 34 224 624 27
24 22 2 68 228 624 28
24 23 1 34 236 624 27
24 23 1 34 240 624 28
24 23 1 34 244 624 28
24 24 0 0 248 624 27
24 23 1 34 248 624 28
24 23 1 34 252 624 28
24 24 0 0 256 624 27
24 23 1 34 256 624 28
25 23 2 68 260 624 29
26 24 2 68 268 650 30
27 24 3 102 276 676 32
28 25 3 102 288 702 34
29 26 3 102 300 728 35
30 27 3 102 312 754 36
31 29 2 68 324 780 36
32 31 1 34 332 806 36
33 32 1 34 336 832 37
34 33 1 34 340 858 38
35 34 1 34 344 884 39
36 34 2 68 348 910 41
37 35 2 68 356 936 42
38 36 2 68 364 962 43
39 37 2 68 372 988 44
40 39 1 34 380 1014 44
40 40 0 0 384 1040 44
40 40 0 0 384 1040 44
40 40 0 0 384 1040 44
40 40 0 0 384 1040 44
38 40 -2 -68 384 1040 42
36 39 -3 -102 376 988 39
34 37 -3 -102 364 936 37
32 36 -4 -136 352 884 34
30 34 -4 -136 336 832 32
38 32 6 204 320 780 40
26 34 -8 -272 344 988 33
24 34 -10 -340 312 676 20
22 30 -8 -272 272 624 19
20 26 -6 -204 240 572 19
18 22 -4 -136 216 520 18
16 20 -4 -136 200 468 16
14 19 -5 -170 184 416 13
12 17 -5 -170 164 364 11
10 14 -4 -136 144 312 10
8 11 -3 -102 128 260 8
8 10 -2 -68 116 208 8
8 9 -1 -34 108 208 8
8 8 0 0 104 208 9
8 7 1 34 104 208 10
0 6 -6 -204 108 208 3
0 4 -4 -136 84 0 -2
0 2 -2 -68 68 0 0
0 1 -1 -34 60 0 0
-50 0 -50 -1700 56 0 -52
-50 -13 -37 -1258 -144 -1300 -85
-50 -34 -16 -544 -292 -1300 -67
-50 -43 -7 -238 -356 -1300 -60
-50 -47 -3 -102 -384 -1300 -56
-50 -50 0 0 -396 -1300 -53
-50 -50 0 0 -396 -1300 -53
-50 -52 2 68 -396 -1300 -51
-50 -53 3 102 -388 -1300 -50
-50 -51 1 34 -376 -1300 -52
-50 -50 0 0 -372 -1300 -53
-50 -50 0 0 -372 -1300 -53
-50 -50 0 0 -372 -1300 -53
-50 -50 0 0 -372 -1300 -53
-50 -50 0 0 -372 -1300 -53
-50 -50 0 0 -372 -1300 -53
-45 -50 5 170 -372 -1300 -47
-40 -48 8 272 -352 -1170 -40
-35 -45 10 340 -320 -1040 -32
-30 -41 11 374 -280 -910 -26
-30 -36 6 204 -236 -780 -26
-30 -32 2 68 -212 -780 -29
-30 -30 0 0 -204 -780 -31
-30 -29 -1 -34 -204 -780 -32
-30 -28 -2 -68 -208 -780 -33
-30 -28 -2 -68 -216 -780 -34
-30 -28 -2 -68 -224 -780 -34
-38 -28 -10 -340 -232 -780 -43
-30 -31 1 34 -272 -988 -39
-30 -33 3 102 -268 -780 -30
-30 -32 2 68 -256 -780 -31
-30 -31 1 34 -248 -780 -32
-30 -30 0 0 -244 -780 -32
-30 -30 0 0 -244 -780 -32
-30 -30 0 0 -244 -780 -32
-30 -30 0 0 -244 -780 -32
-17 -30 13 442 -244 -780 -19
-17 -26 9 306 -192 -442 -11
-17 -21 4 136 -156 -442 -15
-17 -19 2 68 -140 -442 -17
-17 -18 1 34 -132 -442 -17
-17 -17 0 0 -128 -442 -18
-17 -16 -1 -34 -128 -442 -19
-17 -15 -2 -68 -132 -442 -21
-13 -15 2 68 -140 -442 -17
-9 -15 6 204 -132 -338 -9
-5 -13 8 272 -108 -234 -3
-3 -10 7 238 -76 -130 1
-5 -7 2 68 -48 -78 -2
-5 -5 0 0 -40 -130 -6
-5 -4 -1 -34 -40 -130 -7
-5 -4 -1 -34 -44 -130 -7
-5 -3 -2 -68 -48 -130 -8
-5 -3 -2 -68 -56 -130 -8
-5 -4 -1 -34 -64 -130 -8
-5 -5 0 0 -68 -130 -7
-5 -5 0 0 -68 -130 -7
-5 -4 -1 -34 -68 -130 -8
-5 -4 -1 -34 -72 -130 -8
-5 -4 -1 -34 -76 -130 -8
-5 -5 0 0 -80 -130 -7
-5 -5 0 0 -80 -130 -7
-5 -4 -1 -34 -80 -130 -8
-5 -4 -1 -34 -84 -130 -8
-5 -4 -1 -34 -88 -130 -8
-5 -5 0 0 -92 -130 -7
-5 -5 0 0 -92 -130 -7
-5 -4 -1 -34 -92 -130 -8
-5 -4 -1 -34 -96 -130 -9
-5 -4 -1 -34 -100 -130 -9
-5 -5 0 0 -104 -130 -8
-5 -6 1 34 -104 -130 -7
-5 -5 0 0 -100 -130 -8
-5 -5 0 0 -100 -130 -8
-5 -5 0 0 -100 -130 -8
-5 -5 0 0 -100 -130 -8
-5 -6 1 34 -100 -130 -7
-5 -5 0 0 -96 -130 -8
-5 -5 0 0 -96 -130 -8
-5 -5 0 0 -96 -130 -8
-5 -5 0 0 -96 -130 -8
-5 -6 1 34 -96 -130 -6
-5 -5 0 0 -92 -130 -7
-5 -4 -1 -34 -92 -130 -8
-5 -4 -1 -34 -96 -130 -9
-5 -4 -1 -34 -100 -130 -9
-5 -5 0 0 -104 -130 -8
-5 -6 1 34 -104 -130 -7
-5 -5 0 0 -100 -130 -8
-5 -5 0 0 -100 -130 -8
-5 -5 0 0 -100 -130 -8
No preview for this file type
This diff is collapsed.
......@@ -71,13 +71,12 @@ TITLE=$(echo $outTitle | sed -e 's:_:-:g')
outFile="res.${outSfx}"
echo $outFile
if [ "x$XRANGE" = "x" ] ; then
XRANGE="[0:64]" ## ELSE usa variavel do ambiente
XRANGE="[0:170]" ## ELSE usa variavel do ambiente
fi
if [ "x$YRANGE" = "x" ] ; then
YRANGE="[-50:50]" ## ELSE usa variavel do ambiente
YRANGE="[-100:100]" ## ELSE usa variavel do ambiente
fi
cat <<EOF0 | gnuplot
......
No preview for this file type
No preview for this file type
This diff is collapsed.
v 3
file . "tb_pid.vhd" "20151214175634.000" "20151216164556.669":
entity tb_pid at 8( 432) + 0 on 5104;
architecture tb of tb_pid at 15( 554) + 0 on 5105;
configuration cfg_tb at 78( 2216) + 0 on 5106;
file . "aux.vhd" "20151214175944.000" "20151216164556.026":
entity inv at 10( 422) + 0 on 5050;
architecture comport of inv at 18( 543) + 0 on 5051;
entity and2 at 27( 877) + 0 on 5052;
architecture and2 of and2 at 35( 1036) + 0 on 5053;
entity or2 at 44( 1351) + 0 on 5054;
architecture comport of or2 at 52( 1476) + 0 on 5055;
entity or3 at 61( 1830) + 0 on 5056;
architecture or3 of or3 at 69( 1995) + 0 on 5057;
entity xor2 at 78( 2312) + 0 on 5058;
architecture comport of xor2 at 85( 2405) + 0 on 5059;
entity xor3 at 95( 2765) + 0 on 5060;
architecture xor3 of xor3 at 103( 2935) + 0 on 5061;
entity mux2 at 113( 3248) + 0 on 5062;
architecture estrut of mux2 at 121( 3364) + 0 on 5063;
entity registern at 149( 4260) + 0 on 5064;
architecture functional of registern at 160( 4550) + 0 on 5065;
entity count32up at 182( 5164) + 0 on 5066;
architecture funcional of count32up at 191( 5399) + 0 on 5067;
entity count32dwn at 216( 6081) + 0 on 5068;
architecture funcional of count32dwn at 225( 6318) + 0 on 5069;
entity registrador32 at 250( 6994) + 0 on 5070;
architecture funcional of registrador32 at 258( 7156) + 0 on 5071;
entity registrador20 at 279( 7721) + 0 on 5072;
architecture funcional of registrador20 at 287( 7883) + 0 on 5073;
entity ffd at 308( 8437) + 0 on 5074;
architecture funcional of ffd at 315( 8557) + 0 on 5075;
entity ffdqq at 339( 9149) + 0 on 5076;
architecture funcional of ffdqq at 346( 9279) + 0 on 5077;
file . "packageWires.vhd" "20151214175634.000" "20151216164555.760":
package p_wires at 8( 269) + 0 on 5042 body;
package body p_wires at 76( 3101) + 0 on 5043;
file . "files.vhd" "20151214175634.000" "20151216164555.896":
entity read_data_file at 10( 457) + 0 on 5044;
architecture behavioral of read_data_file at 23( 772) + 0 on 5045;
entity write_int at 60( 1650) + 0 on 5046;
architecture behavioral of write_int at 72( 1915) + 0 on 5047;
entity write_int7 at 96( 2555) + 0 on 5048;
architecture behavioral of write_int7 at 113( 2958) + 0 on 5049;
file . "pid.vhd" "20151216184551.000" "20151216164556.215":
entity addbit at 8( 420) + 0 on 5078;
architecture estrutural of addbit at 17( 567) + 0 on 5079;
entity add2bit at 45( 1614) + 0 on 5080;
architecture estrutural of add2bit at 54( 1765) + 0 on 5081;
entity add4bit at 73( 2431) + 0 on 5082;
architecture estrutural of add4bit at 82( 2582) + 0 on 5083;
entity add8bit at 101( 3308) + 0 on 5084;
architecture estrutural of add8bit at 110( 3459) + 0 on 5085;
entity add16bit at 129( 4183) + 0 on 5086;
architecture estrutural of add16bit at 138( 4342) + 0 on 5087;
entity add32bit at 157( 5070) + 0 on 5088;
architecture estrutural of add32bit at 166( 5225) + 0 on 5089;
entity mult2x2 at 187( 6013) + 0 on 5090;
architecture mult2x2 of mult2x2 at 193( 6126) + 0 on 5091;
entity mult4x4 at 227( 7246) + 0 on 5092;
architecture mult4x4 of mult4x4 at 233( 7359) + 0 on 5093;
entity mult8x8 at 279( 9311) + 0 on 5094;
architecture mult8x8 of mult8x8 at 285( 9425) + 0 on 5095;
entity mult16x16 at 331( 11384) + 0 on 5096;
architecture mult16x16 of mult16x16 at 337( 11503) + 0 on 5097;
entity mult32x32 at 383( 13485) + 0 on 5098;
architecture mult32x32 of mult32x32 at 389( 13604) + 0 on 5099;
entity pid at 436( 15677) + 0 on 5100;
architecture functional of pid at 448( 15930) + 0 on 5101;
entity urubu at 544( 18939) + 0 on 5102;
architecture functional of urubu at 554( 19151) + 0 on 5103;
file . "tb_pid.vhd" "20151214175634.000" "20151217201532.944":
entity tb_pid at 8( 432) + 0 on 17081;
architecture tb of tb_pid at 15( 554) + 0 on 17082;
configuration cfg_tb at 78( 2216) + 0 on 17083;
file . "aux.vhd" "20151217214941.000" "20151217201532.389":
entity inv at 10( 422) + 0 on 17003;
architecture comport of inv at 18( 543) + 0 on 17004;
entity and2 at 27( 877) + 0 on 17005;
architecture and2 of and2 at 35( 1036) + 0 on 17006;
entity or2 at 44( 1351) + 0 on 17007;
architecture comport of or2 at 52( 1476) + 0 on 17008;
entity or3 at 61( 1830) + 0 on 17009;
architecture or3 of or3 at 69( 1995) + 0 on 17010;
entity xor2 at 78( 2312) + 0 on 17011;
architecture comport of xor2 at 85( 2405) + 0 on 17012;
entity xor3 at 95( 2765) + 0 on 17013;
architecture xor3 of xor3 at 103( 2935) + 0 on 17014;
entity mux2 at 113( 3248) + 0 on 17015;
architecture estrut of mux2 at 121( 3364) + 0 on 17016;
entity registern at 149( 4260) + 0 on 17017;
architecture functional of registern at 160( 4550) + 0 on 17018;
entity count32up at 182( 5164) + 0 on 17019;
architecture funcional of count32up at 191( 5399) + 0 on 17020;
entity count32dwn at 216( 6081) + 0 on 17021;
architecture funcional of count32dwn at 225( 6318) + 0 on 17022;
entity registrador32 at 250( 6994) + 0 on 17023;
architecture funcional of registrador32 at 258( 7156) + 0 on 17024;
entity registrador20 at 279( 7721) + 0 on 17025;
architecture funcional of registrador20 at 287( 7883) + 0 on 17026;
entity ffd at 308( 8437) + 0 on 17027;
architecture funcional of ffd at 315( 8557) + 0 on 17028;
entity ffdqq at 339( 9149) + 0 on 17029;
architecture funcional of ffdqq at 346( 9279) + 0 on 17030;
entity addbit at 371( 9890) + 0 on 17031;
architecture estrutural of addbit at 380( 10037) + 0 on 17032;
entity add2bit at 408( 11084) + 0 on 17033;
architecture estrutural of add2bit at 417( 11235) + 0 on 17034;
entity add4bit at 436( 11901) + 0 on 17035;
architecture estrutural of add4bit at 445( 12052) + 0 on 17036;
entity add8bit at 464( 12778) + 0 on 17037;
architecture estrutural of add8bit at 473( 12929) + 0 on 17038;
entity add16bit at 492( 13653) + 0 on 17039;
architecture estrutural of add16bit at 501( 13812) + 0 on 17040;
entity add32bit at 520( 14540) + 0 on 17041;
architecture estrutural of add32bit at 529( 14695) + 0 on 17042;
entity mult2x2 at 550( 15483) + 0 on 17043;
architecture mult2x2 of mult2x2 at 556( 15596) + 0 on 17044;
entity mult4x4 at 590( 16716) + 0 on 17045;
architecture mult4x4 of mult4x4 at 596( 16829) + 0 on 17046;
entity mult8x8 at 642( 18781) + 0 on 17047;
architecture mult8x8 of mult8x8 at 648( 18895) + 0 on 17048;
entity mult16x16 at 694( 20854) + 0 on 17049;
architecture mult16x16 of mult16x16 at 700( 20973) + 0 on 17050;
entity mult32x32 at 746( 22955) + 0 on 17051;
architecture mult32x32 of mult32x32 at 752( 23074) + 0 on 17052;
entity desloca1bit at 798( 25118) + 0 on 17053;
architecture desloca1bit of desloca1bit at 804( 25229) + 0 on 17054;
entity desloca2bit at 822( 25755) + 0 on 17055;
architecture desloca2bit of desloca2bit at 828( 25869) + 0 on 17056;
entity desloca3bit at 843( 26409) + 0 on 17057;
architecture desloca3bit of desloca3bit at 849( 26523) + 0 on 17058;
entity desloca4bit at 869( 27191) + 0 on 17059;
architecture desloca4bit of desloca4bit at 875( 27305) + 0 on 17060;
entity desloca5bit at 891( 27846) + 0 on 17061;
architecture desloca5bit of desloca5bit at 897( 27960) + 0 on 17062;
entity desloca6bit at 917( 28628) + 0 on 17063;
architecture desloca6bit of desloca6bit at 923( 28742) + 0 on 17064;
entity desloca7bit at 939( 29283) + 0 on 17065;
architecture desloca7bit of desloca7bit at 945( 29397) + 0 on 17066;
entity desloca8bit at 965( 30065) + 0 on 17067;
architecture desloca8bit of desloca8bit at 971( 30179) + 0 on 17068;
entity desloca9bit at 987( 30720) + 0 on 17069;
architecture desloca9bit of desloca9bit at 993( 30834) + 0 on 17070;
entity desloca10bit at 1013( 31503) + 0 on 17071;
architecture desloca10bit of desloca10bit at 1019( 31619) + 0 on 17072;
entity integral at 1035( 32162) + 0 on 17073;
architecture integral of integral at 1043( 32338) + 0 on 17074;
entity derivada at 1077( 33511) + 0 on 17075;
architecture derivada of derivada at 1085( 33685) + 0 on 17076;
file . "packageWires.vhd" "20151214175634.000" "20151217201532.230":
package p_wires at 8( 269) + 0 on 16995 body;
package body p_wires at 76( 3101) + 0 on 16996;
file . "files.vhd" "20151214175634.000" "20151217201532.311":
entity read_data_file at 10( 457) + 0 on 16997;
architecture behavioral of read_data_file at 23( 772) + 0 on 16998;
entity write_int at 60( 1650) + 0 on 16999;
architecture behavioral of write_int at 72( 1915) + 0 on 17000;
entity write_int7 at 96( 2555) + 0 on 17001;
architecture behavioral of write_int7 at 113( 2958) + 0 on 17002;
file . "pid.vhd" "20151217221530.000" "20151217201532.817":
entity pid at 9( 484) + 0 on 17077;
architecture functional of pid at 21( 737) + 0 on 17078;
entity urubu at 131( 4261) + 0 on 17079;
architecture functional of urubu at 141( 4473) + 0 on 17080;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment