B
blakaxe
Guest
wire [OUT_WIDTH-1:0] output;
wire [15:0] temp;
I want to assign temp to output
assign output = temp;
but depending on OUT_WIDTH, I want to either sign extend(if OUTWIDTH
What is the best way to do this?
Thanks
wire [15:0] temp;
I want to assign temp to output
assign output = temp;
but depending on OUT_WIDTH, I want to either sign extend(if OUTWIDTH
of output.16 bits) or round(if OUT_WIDTH < 16 bits) temp to match the bitwidth
What is the best way to do this?
Thanks