4 Remove first part no longer relevant after migration / merge edited Oct 13 '14 at 13:33 PeterJ 16.1k2020 gold badges4242 silver badges8484 bronze badges Answer also posted on StackOverflow. It is not similar to ==/===, if the left hand operand is signed then >>> performs sign extension. reg signed [9:0] b = 10'sb11_0101_0101; reg signed [9:0] a_signed; reg [9:0] a_unsigned; always_comb begin a_signed = b >>> 2; a_unsigned = b >> 2; end  Result: #a_signed 1111010101 #a_unsigned 0011010101  Example on EDA Playground. Answer also posted on StackOverflow. It is not similar to ==/===, if the left hand operand is signed then >>> performs sign extension. reg signed [9:0] b = 10'sb11_0101_0101; reg signed [9:0] a_signed; reg [9:0] a_unsigned; always_comb begin a_signed = b >>> 2; a_unsigned = b >> 2; end  Result: #a_signed 1111010101 #a_unsigned 0011010101  Example on EDA Playground. It is not similar to ==/===, if the left hand operand is signed then >>> performs sign extension. reg signed [9:0] b = 10'sb11_0101_0101; reg signed [9:0] a_signed; reg [9:0] a_unsigned; always_comb begin a_signed = b >>> 2; a_unsigned = b >> 2; end  Result: #a_signed 1111010101 #a_unsigned 0011010101  Example on EDA Playground. 3 s/operator/operand/ edited Oct 13 '14 at 9:00 pre_randomize 1,06066 silver badges1111 bronze badges Answer also posted on StackOverflow. It is not similar to ==/===, if the rightleft hand operatoroperand is signed then >>> performs sign extension. reg signed [9:0] b = 10'sb11_0101_0101; reg signed [9:0] a_signed; reg [9:0] a_unsigned; always_comb begin a_signed = b >>> 2; a_unsigned = b >> 2; end  Result: #a_signed 1111010101 #a_unsigned 0011010101  Example on EDA Playground. Answer also posted on StackOverflow. It is not similar to ==/===, if the right hand operator is signed then >>> performs sign extension. reg signed [9:0] b = 10'sb11_0101_0101; reg signed [9:0] a_signed; reg [9:0] a_unsigned; always_comb begin a_signed = b >>> 2; a_unsigned = b >> 2; end  Result: #a_signed 1111010101 #a_unsigned 0011010101  Example on EDA Playground. Answer also posted on StackOverflow. It is not similar to ==/===, if the left hand operand is signed then >>> performs sign extension. reg signed [9:0] b = 10'sb11_0101_0101; reg signed [9:0] a_signed; reg [9:0] a_unsigned; always_comb begin a_signed = b >>> 2; a_unsigned = b >> 2; end  Result: #a_signed 1111010101 #a_unsigned 0011010101  Example on EDA Playground. 2 Output updated edited Oct 11 '14 at 18:39 pre_randomize 1,06066 silver badges1111 bronze badges Answer also posted on StackOverflow. It is not similar to ==/===, if the right hand operator is signed then >>> performs sign extension. reg signed [9:0] b = 10'sb11_0101_0101; reg signed [9:0] a_signed; reg [9:0] a_unsigned; always_comb begin a_signed = b >>> 2; a_unsigned = b >> 2; end  Result: #a_signed 11101010101111010101 #a_unsigned 01101010100011010101  Example on EDA Playground. Answer also posted on StackOverflow. It is not similar to ==/===, if the right hand operator is signed then >>> performs sign extension. reg signed [9:0] b = 10'sb11_0101_0101; reg signed [9:0] a_signed; reg [9:0] a_unsigned; always_comb begin a_signed = b >>> 2; a_unsigned = b >> 2; end  Result: #a_signed 1110101010 #a_unsigned 0110101010  Example on EDA Playground. Answer also posted on StackOverflow. It is not similar to ==/===, if the right hand operator is signed then >>> performs sign extension. reg signed [9:0] b = 10'sb11_0101_0101; reg signed [9:0] a_signed; reg [9:0] a_unsigned; always_comb begin a_signed = b >>> 2; a_unsigned = b >> 2; end  Result: #a_signed 1111010101 #a_unsigned 0011010101  Example on EDA Playground. 1 answered Oct 11 '14 at 7:21 pre_randomize 1,06066 silver badges1111 bronze badges