data/full_repos/permissive/108195533/signExtend.v
data/verilator_xmls/4eacd4f2-0d70-4a60-ab6a-6a0799720bb5.xml
module signExtend #(parameter DATA_WIDTH=16, parameter OFF_WIDTH=6)(offset, fixed);
input [OFF_WIDTH-1:0] offset;
output reg [DATA_WIDTH-1:0] fixed;

always @(*) begin
	fixed = {{(DATA_WIDTH-OFF_WIDTH){offset[OFF_WIDTH-1]}},offset[OFF_WIDTH-1:0]};
end

endmodule
module signExtend #(parameter DATA_WIDTH=16, parameter OFF_WIDTH=6)(offset, fixed);

input [OFF_WIDTH-1:0] offset;
output reg [DATA_WIDTH-1:0] fixed;

always @(*) begin
	fixed = {{(DATA_WIDTH-OFF_WIDTH){offset[OFF_WIDTH-1]}},offset[OFF_WIDTH-1:0]};
end

endmodule