반응형
각 bit 별로 작동하는 연산자입니다.
a = 3‘b101 b = 3‘b110 c = 3‘b01X d = 3‘bz
Character
|
Operation performed
|
Example
|
Type
|
~
|
Invert each bit
|
~a = 3’b010, ~d = ‘1bx
|
Binary
|
&
|
And each bit
|
b & c = 3’b010
|
Binary
|
|
|
Or each bit
|
a | b = 3’b111
|
Binary
|
^
|
Xor each bit
|
a ^ b = 3’b011
|
Binary
|
^~ ~^
|
Xnor each bit
|
a ^~ b = 3’b100
|
Binary
|
&= |= ^=
|
Bitwise assignment
|
a ^= b (a=a^b)
|
Binary
|
728x90
반응형
'Language > Verilog & SV' 카테고리의 다른 글
[Verilog & SV] 산술연산자(Arithmetic Operators) (0) | 2025.04.09 |
---|---|
[Verilog & SV] 관계 연산자(Relational Operators) (0) | 2025.04.09 |
[Verilog] Case, Synopsys full case, Synopsys parallel case (0) | 2025.04.08 |
[Verilog & SV] Function vs Task (0) | 2025.04.07 |
[System Verilog] Event? (0) | 2025.04.04 |