|
本帖最後由 tommywgt 於 2009-11-5 05:41 PM 編輯 , f9 }# V% }8 Z- D" X: e X
9 _1 d( ~4 N$ [0 Y' ^7 Q- A0 s( Z/ S
因為無法回覆, 所以開新文回答....
: V2 }$ v$ k) \ABT={2'b00, DATA, 4'b0000};/ d! Y( B( \! m$ w
* d( W9 |$ L$ X) d% x
Verilog 常用的operator8 e/ F3 i* M. J0 g9 D$ z
– Binary bit-wise operators: ~, &, |, ^, ~^, ^~' k* h2 ]. b( k9 [3 k
– Unary reduction operators: &, ~&, |, ~|, ^, ~^, ^~. h5 \4 F7 {. t j" M
– Logical operators: !, &&, ||& v+ j" D. e9 y3 i( d
– 2’s complement operators: +, -, *, /, %
/ D4 b1 X; U* c' A; Y: P– Relational operators: >, <, >=, <=, ==, !=, ===, !==
& w6 c5 P. w+ h' G– Logical shift operators: >>, <<5 K8 C# ?( v% A) f: h( y1 Q
– Conditional operators: ? :
. f/ x7 x9 K7 m% H% O. z: r– Duplication operators: {n{ <exp> <,<exp>> *}}; ^; S; }) c7 _& l4 n! P
– Concatenation operators: {}
. T7 Q: U6 q" p3 Q& R# z; D. L- C4 G給你參考一下 |
|