data/full_repos/permissive/159902111/SCPU_experiment/EXT.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/26dcd9c1-cbfc-45ce-a18f-1833cdf6890c.xml
module EXT(
  input  [15:0] Imm16_i,
  input  [1:0]  EXTOp,
  
  output [31:0] Imm32_o
  );
  reg [31:0] Imm32;
  always@(*)
  begin
    case(EXTOp)
      2'b00:
        Imm32 = {16'b0, Imm16_i[15:0]};
      2'b01:
        Imm32 = {{16{Imm16_i[15]}}, Imm16_i[15:0]};
      default:
        Imm32 = 32'h0;
    endcase
  end
  assign Imm32_o = Imm32;
endmodule
module EXT(
  input  [15:0] Imm16_i,
  input  [1:0]  EXTOp,
  
  output [31:0] Imm32_o
  );

  reg [31:0] Imm32;
  always@(*)
  begin
    case(EXTOp)
      2'b00:
        Imm32 = {16'b0, Imm16_i[15:0]};
      2'b01:
        Imm32 = {{16{Imm16_i[15]}}, Imm16_i[15:0]};
      default:
        Imm32 = 32'h0;
    endcase
  end
  assign Imm32_o = Imm32;
endmodule