|
本帖最後由 tommywgt 於 2009-11-5 05:41 PM 編輯 * k' q Z$ @- x8 V) J
- ]3 c, L1 u! m
因為無法回覆, 所以開新文回答....
1 s1 w/ L W# V; l lABT={2'b00, DATA, 4'b0000};! P& B- q I1 k' K" q
! q! Z$ T( D9 M# UVerilog 常用的operator- p4 g& f, ?# d, v6 @
– Binary bit-wise operators: ~, &, |, ^, ~^, ^~6 J+ {, c; K& O7 J, X! A) R: K* v
– Unary reduction operators: &, ~&, |, ~|, ^, ~^, ^~% S+ C' |" N0 g1 @& ^8 A) j1 T) D
– Logical operators: !, &&, ||
& i% ~: s) `/ [/ V– 2’s complement operators: +, -, *, /, %
; Y2 Z/ A* Q. l3 y) l5 _– Relational operators: >, <, >=, <=, ==, !=, ===, !==
1 ^8 A+ ]) ^) L+ d7 J1 n( V/ A( e" B3 G– Logical shift operators: >>, <<
: j3 U& ?4 b2 i! a0 ?9 w9 w– Conditional operators: ? :
) p; X/ T, |, a0 M1 m: ? x– Duplication operators: {n{ <exp> <,<exp>> *}}
5 c3 U. q# e# @, |( y c7 n' G– Concatenation operators: {}" ~$ @; s* w o, m/ ?
給你參考一下 |
|