|
本帖最後由 tommywgt 於 2009-11-5 05:41 PM 編輯 ! {- x& p1 r/ O: O
/ m) ]6 f; o4 X因為無法回覆, 所以開新文回答....
3 |9 R, N% E9 f3 UABT={2'b00, DATA, 4'b0000};
6 N1 b0 d! M" _. z1 U+ j' M
" N- U, i1 H( S# PVerilog 常用的operator
t# J4 |0 m7 D4 w2 b– Binary bit-wise operators: ~, &, |, ^, ~^, ^~+ D4 |! a5 Z6 b! S: q' n0 _* o
– Unary reduction operators: &, ~&, |, ~|, ^, ~^, ^~
6 x) w8 \! l) U$ @; K9 N% h– Logical operators: !, &&, ||0 ?8 Q3 D/ `* J. ^) o0 t6 J
– 2’s complement operators: +, -, *, /, %2 U! `) N& j% x, V4 Z4 C
– Relational operators: >, <, >=, <=, ==, !=, ===, !==
5 G1 Q" H: T$ {3 x! h# X, T; E– Logical shift operators: >>, <<% y# e5 A0 S3 q+ E0 D
– Conditional operators: ? :. v! K- Y2 C8 i* `# C9 ?& Y$ U
– Duplication operators: {n{ <exp> <,<exp>> *}}8 h; q% ~3 G8 {
– Concatenation operators: {}2 r5 d5 X3 @, ~/ A( ^) a) {
給你參考一下 |
|