22. Vectors - II

Question.1

How would you use the Verilog replication operator to sign-extend val (with val[3] representing the sign) into the 8-bit extended bus?

wire [3:0] val;
wire [7:0] extended;
// Which assigns `extended` correctly?
Need Help? Refer to the Quick Guide below

Select Answer