What is `+:` and `-:`?
问题 I\'ve recently saw this operator in a verilog/systemverilog code. logic [15:0] down_vect; logic [0:15] up_vect; down_vect[lsb_base_expr +: width_expr] up_vect [msb_base_expr +: width_expr] down_vect[msb_base_expr -: width_expr] up_vect [lsb_base_expr -: width_expr] I\'ve rarely seen this so, I\'d like to ask What is this, When and How do you use it? 回答1: That particular syntax is called an indexed part select . It's very useful when you need to select a fixed number of bits from a variable