基于事件驅(qū)動的串口通訊控件
消息幀數(shù)據(jù)格式:
1 0 A B X X
其中 10 為消息標識,
AB表示文本長度,L=A*100+B
XX為配位字符,任意
控制幀數(shù)據(jù)格式
0 1 A B M N
其中 01為控制標識,
AB為請求標識
MN為附加標識
11表示請求對方接收文件,M表示描述字串中文件名子串的長度
N表示描述字串中文件大小子串的長度
10通知對方放棄傳輸
00通知文件傳輸完畢
01請求對方發(fā)送數(shù)據(jù), MN為10請求發(fā)送下一個
MN為00請求重發(fā)
數(shù)據(jù)幀數(shù)據(jù)格式
0 0 A B M N
其中 00 為數(shù)據(jù)標識,
AB表示數(shù)據(jù)長度,L=A*100+B
MN為校驗,M*100+N=A+B
標簽:
100
幀
數(shù)據(jù)格式
10
上傳時間:
2015-10-06
上傳用戶:拔絲土豆
考察例1 4 - 8中的1 4個點。A中的最近點對為(b,h),其距離約為0 . 3 1 6。B中最近點對為
(f, j),其距離為0 . 3,因此= 0 . 3。當考察
是否存在第三類點時,除d, g, i, l, m 以外
的點均被淘汰,因為它們距分割線x= 1的
距離≥ 。RA ={d, i, m},RB= {g, l},由
于d 和m 的比較區(qū)中沒有點,只需考察i
即可。i 的比較區(qū)中僅含點l。計算i 和l
的距離,發(fā)現(xiàn)它小于,因此(i, l) 是最近
標簽:
上傳時間:
2013-12-03
上傳用戶:66666
Verilog HDL: Magnitude
For a vector (a,b), the magnitude representation is the following:
A common approach to implementing these arithmetic functions is to use the Coordinate Rotation Digital Computer (CORDIC) algorithm. The CORDIC algorithm calculates the trigonometric functions of sine, cosine, magnitude, and phase using an iterative process. It is made up of a series of micro-rotations of the vector by a set of predetermined constants, which are powers of two. Using binary arithmetic, this algorithm essentially replaces multipliers with shift and add operations. In a Stratix™ device, it is possible to calculate some of these arithmetic functions directly, without having to implement the CORDIC algorithm.
標簽:
representation
Magnitude
the
magnitude
上傳時間:
2013-12-24
上傳用戶:金宜