|
本帖最後由 tommywgt 於 2009-11-5 05:41 PM 編輯
6 @- @4 z$ O6 h- G( T
5 b% K; \$ |1 q& c因為無法回覆, 所以開新文回答....
. D$ Z4 Z' v9 b z$ oABT={2'b00, DATA, 4'b0000};
( Q+ H& U& S& A0 R! P
/ _7 j# v7 C" a2 u) i5 CVerilog 常用的operator! Y6 S/ V2 m1 d8 H
– Binary bit-wise operators: ~, &, |, ^, ~^, ^~
- S' z, K2 A1 w6 I# }– Unary reduction operators: &, ~&, |, ~|, ^, ~^, ^~' z: l& {( D1 C1 l4 ?
– Logical operators: !, &&, ||
8 F: p9 i- C ^1 s3 K, n: r– 2’s complement operators: +, -, *, /, %
f3 S( ] \! `1 A; L– Relational operators: >, <, >=, <=, ==, !=, ===, !==
# ~; _+ @5 Z0 t) Z7 T4 P$ n# m, {– Logical shift operators: >>, <<
. @$ P: Z( d1 a' y& ?: u9 B% g– Conditional operators: ? :
' b6 Z6 Q' R h0 j. t– Duplication operators: {n{ <exp> <,<exp>> *}}- K7 M; `6 L: A; S7 [5 J
– Concatenation operators: {}# h0 P* _* G' |5 _
給你參考一下 |
|