-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewOutput
More file actions
196 lines (192 loc) · 6.64 KB
/
Copy pathnewOutput
File metadata and controls
196 lines (192 loc) · 6.64 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
sdelaney@Ubuntu:~/CE4518$ iverilog -o cordic_sim cordic4.v testbench.v
sdelaney@Ubuntu:~/CE4518$ vvp cordic_sim
===== Clean CORDIC Test =====
=== CORDIC Start ===
Input angle (fixed) = -102944
iter=0 | A=-51471 | x=39849 | y=-39849
iter=1 | A=-81856 | x=19924 | y=-59773
iter=2 | A=-97911 | x=4980 | y=-64754
iter=3 | A=-106059 | x=-3115 | y=-65376
iter=4 | A=-101969 | x=971 | y=-65571
iter=5 | A=-104014 | x=-1079 | y=-65601
iter=6 | A=-102991 | x=-53 | y=-65618
iter=7 | A=-102479 | x=460 | y=-65619
iter=8 | A=-102735 | x=203 | y=-65620
iter=9 | A=-102863 | x=74 | y=-65620
iter=10 | A=-102927 | x=9 | y=-65620
iter=11 | A=-102959 | x=-24 | y=-65620
iter=12 | A=-102943 | x=-7 | y=-65621
iter=13 | A=-102951 | x=-16 | y=-65620
iter=14 | A=-102947 | x=-11 | y=-65621
iter=15 | A=-102945 | x=-8 | y=-65622
=== CORDIC Done ===
Final Cos = -8, Sin = -65622
-pi/2 (-1.5708) => cos: -8, sin: -65622
=== CORDIC Start ===
Input angle (fixed) = -51471
iter=0 | A=-51471 | x=39849 | y=-39849
iter=1 | A=-21086 | x=59774 | y=-19925
iter=2 | A=-37141 | x=54792 | y=-34868
iter=3 | A=-45289 | x=50433 | y=-41717
iter=4 | A=-49379 | x=47825 | y=-44869
iter=5 | A=-51424 | x=46422 | y=-46363
iter=6 | A=-52447 | x=45697 | y=-47088
iter=7 | A=-51935 | x=46065 | y=-46731
iter=8 | A=-51679 | x=46248 | y=-46552
iter=9 | A=-51551 | x=46339 | y=-46462
iter=10 | A=-51487 | x=46385 | y=-46417
iter=11 | A=-51455 | x=46408 | y=-46395
iter=12 | A=-51471 | x=46396 | y=-46406
iter=13 | A=-51463 | x=46402 | y=-46401
iter=14 | A=-51467 | x=46399 | y=-46403
iter=15 | A=-51469 | x=46397 | y=-46404
=== CORDIC Done ===
Final Cos = 46397, Sin = -46404
-pi/4 (-0.7854) => cos: 46397, sin: -46404
=== CORDIC Start ===
Input angle (fixed) = -25736
iter=0 | A=-51471 | x=39849 | y=-39849
iter=1 | A=-21086 | x=59774 | y=-19925
iter=2 | A=-37141 | x=54792 | y=-34868
iter=3 | A=-28993 | x=59151 | y=-28019
iter=4 | A=-24903 | x=60903 | y=-24323
iter=5 | A=-26948 | x=60142 | y=-26226
iter=6 | A=-25925 | x=60552 | y=-25287
iter=7 | A=-25413 | x=60750 | y=-24814
iter=8 | A=-25669 | x=60653 | y=-25051
iter=9 | A=-25797 | x=60604 | y=-25169
iter=10 | A=-25733 | x=60629 | y=-25110
iter=11 | A=-25765 | x=60616 | y=-25139
iter=12 | A=-25749 | x=60623 | y=-25125
iter=13 | A=-25741 | x=60627 | y=-25118
iter=14 | A=-25737 | x=60629 | y=-25115
iter=15 | A=-25735 | x=60630 | y=-25114
=== CORDIC Done ===
Final Cos = 60630, Sin = -25114
-pi/8 (-0.3927) => cos: 60630, sin: -25114
=== CORDIC Start ===
Input angle (fixed) = 0
iter=0 | A=51471 | x=39849 | y=39849
iter=1 | A=21086 | x=59773 | y=19925
iter=2 | A=5031 | x=64754 | y=4982
iter=3 | A=-3117 | x=65376 | y=-3112
iter=4 | A=973 | x=65571 | y=974
iter=5 | A=-1072 | x=65601 | y=-1075
iter=6 | A=-49 | x=65618 | y=-50
iter=7 | A=463 | x=65619 | y=462
iter=8 | A=207 | x=65620 | y=206
iter=9 | A=79 | x=65620 | y=78
iter=10 | A=15 | x=65620 | y=14
iter=11 | A=-17 | x=65620 | y=-18
iter=12 | A=-1 | x=65621 | y=-2
iter=13 | A=7 | x=65622 | y=6
iter=14 | A=3 | x=65622 | y=2
iter=15 | A=1 | x=65622 | y=0
=== CORDIC Done ===
Final Cos = 65622, Sin = 0
0 (0.0000) => cos: 65622, sin: 0
=== CORDIC Start ===
Input angle (fixed) = 25736
iter=0 | A=51471 | x=39849 | y=39849
iter=1 | A=21086 | x=59773 | y=19925
iter=2 | A=37141 | x=54792 | y=34868
iter=3 | A=28993 | x=59150 | y=28019
iter=4 | A=24903 | x=60901 | y=24323
iter=5 | A=26948 | x=60141 | y=26226
iter=6 | A=25925 | x=60550 | y=25287
iter=7 | A=25413 | x=60747 | y=24814
iter=8 | A=25669 | x=60651 | y=25051
iter=9 | A=25797 | x=60603 | y=25169
iter=10 | A=25733 | x=60627 | y=25110
iter=11 | A=25765 | x=60615 | y=25139
iter=12 | A=25749 | x=60621 | y=25125
iter=13 | A=25741 | x=60624 | y=25118
iter=14 | A=25737 | x=60625 | y=25115
iter=15 | A=25735 | x=60625 | y=25114
=== CORDIC Done ===
Final Cos = 60625, Sin = 25114
pi/8 (0.3927) => cos: 60625, sin: 25114
=== CORDIC Start ===
Input angle (fixed) = 43690
iter=0 | A=51471 | x=39849 | y=39849
iter=1 | A=21086 | x=59773 | y=19925
iter=2 | A=37141 | x=54792 | y=34868
iter=3 | A=45289 | x=50434 | y=41717
iter=4 | A=41199 | x=53041 | y=38565
iter=5 | A=43244 | x=51836 | y=40222
iter=6 | A=44267 | x=51208 | y=41031
iter=7 | A=43755 | x=51528 | y=40631
iter=8 | A=43499 | x=51686 | y=40430
iter=9 | A=43627 | x=51608 | y=40530
iter=10 | A=43691 | x=51569 | y=40580
iter=11 | A=43659 | x=51588 | y=40555
iter=12 | A=43675 | x=51579 | y=40567
iter=13 | A=43683 | x=51575 | y=40573
iter=14 | A=43687 | x=51573 | y=40576
iter=15 | A=43689 | x=51572 | y=40577
=== CORDIC Done ===
Final Cos = 51572, Sin = 40577
pi/6 (0.5236) => cos: 51572, sin: 40577
=== CORDIC Start ===
Input angle (fixed) = 51471
iter=0 | A=51471 | x=39849 | y=39849
iter=1 | A=81856 | x=19925 | y=59773
iter=2 | A=65801 | x=34868 | y=54792
iter=3 | A=57653 | x=41717 | y=50434
iter=4 | A=53563 | x=44869 | y=47827
iter=5 | A=51518 | x=46363 | y=46425
iter=6 | A=50495 | x=47088 | y=45701
iter=7 | A=51007 | x=46731 | y=46068
iter=8 | A=51263 | x=46552 | y=46250
iter=9 | A=51391 | x=46462 | y=46340
iter=10 | A=51455 | x=46417 | y=46385
iter=11 | A=51487 | x=46395 | y=46407
iter=12 | A=51471 | x=46406 | y=46396
iter=13 | A=51479 | x=46401 | y=46401
iter=14 | A=51475 | x=46403 | y=46399
iter=15 | A=51473 | x=46404 | y=46398
=== CORDIC Done ===
Final Cos = 46404, Sin = 46398
pi/4 (0.7854) => cos: 46404, sin: 46398
=== CORDIC Start ===
Input angle (fixed) = 87381
iter=0 | A=51471 | x=39849 | y=39849
iter=1 | A=81856 | x=19925 | y=59773
iter=2 | A=97911 | x=4982 | y=64754
iter=3 | A=89763 | x=13076 | y=64132
iter=4 | A=85673 | x=17084 | y=63315
iter=5 | A=87718 | x=15106 | y=63848
iter=6 | A=86695 | x=16103 | y=63612
iter=7 | A=87207 | x=15607 | y=63737
iter=8 | A=87463 | x=15359 | y=63797
iter=9 | A=87335 | x=15483 | y=63768
iter=10 | A=87399 | x=15421 | y=63783
iter=11 | A=87367 | x=15452 | y=63776
iter=12 | A=87383 | x=15437 | y=63779
iter=13 | A=87375 | x=15444 | y=63778
iter=14 | A=87379 | x=15441 | y=63778
iter=15 | A=87381 | x=15440 | y=63778
=== CORDIC Done ===
Final Cos = 15440, Sin = 63778
pi/3 (1.0472) => cos: 15440, sin: 63778
=== CORDIC Start ===
Input angle (fixed) = 102944
iter=0 | A=51471 | x=39849 | y=39849
iter=1 | A=81856 | x=19925 | y=59773
iter=2 | A=97911 | x=4982 | y=64754
iter=3 | A=106059 | x=-3112 | y=65376
iter=4 | A=101969 | x=974 | y=65571
iter=5 | A=104014 | x=-1075 | y=65601
iter=6 | A=102991 | x=-50 | y=65618
iter=7 | A=102479 | x=462 | y=65619
iter=8 | A=102735 | x=206 | y=65620
iter=9 | A=102863 | x=78 | y=65620
iter=10 | A=102927 | x=14 | y=65620
iter=11 | A=102959 | x=-18 | y=65620
iter=12 | A=102943 | x=-2 | y=65621
iter=13 | A=102951 | x=-10 | y=65620
iter=14 | A=102947 | x=-6 | y=65621
iter=15 | A=102945 | x=-4 | y=65622
=== CORDIC Done ===
Final Cos = -4, Sin = 65622
pi/2 (1.5708) => cos: -4, sin: 65622