data/full_repos/permissive/196851857/datapath/ext.v
data/verilator_xmls/d41f6992-ec09-4aba-97f1-55de20d133c3.xml
module ext #(parameter WIDTH = 16,BIGWIDTH = 32)(in, out, ExtType);
  input [WIDTH - 1:0]in;
  input ExtType;
  output [BIGWIDTH - 1:0]out;
  assign out = ExtType ? 
                  {{BIGWIDTH-WIDTH{in[WIDTH - 1]}},in} :
                    {{BIGWIDTH-WIDTH{1'b0}},in};
endmodule
module ext #(parameter WIDTH = 16,BIGWIDTH = 32)(in, out, ExtType);

  input [WIDTH - 1:0]in;
  input ExtType;
  output [BIGWIDTH - 1:0]out;
  assign out = ExtType ? 
                  {{BIGWIDTH-WIDTH{in[WIDTH - 1]}},in} :
                    {{BIGWIDTH-WIDTH{1'b0}},in};
endmodule