What is the difference between >>
and >>>
in verilog/system verilog? I know that ==
tests for only 1 and 0, while ===
tests for 1, 0, X, Z. So how is that similar to the shift operator?
Electronic – Difference between >> and >>> in verilog
data-operatorsystem-verilogverilog
Related Topic
- Difference between blocking and nonblocking assignment Verilog
- Electronic – the difference between scalar array and vector array
- Electronic – the difference Verilog race condition, X’s propagation and Metastability
- Electronic – Simulation performance of bitwise operators and binary arithmetic Operators
- Electronic – System verilog synthesis in Vivado
Best Answer
It is not similar to
==
/===
, if the left hand operand is signed then>>>
performs sign extension.Result:
Example on EDA Playground.