SignExtend.v 169 Bytes
module SignExtend(signedinput, signedoutput);
input[15:0] signedinput;
output[31:0] signedoutput;

assign signedoutput = {{16{signedinput[15]}},signedinput};

endmodule