data/full_repos/permissive/174642777/Experiments/Lab X3/Lab 08 CONV_BIN_BCD/CONV_BIN_BCD.v
 line:34 column:24: Illegal character "'"
1: b'%Error: Cannot find file containing module: X3/Lab\n        ... Looked in:\n             data/full_repos/permissive/174642777/Experiments/Lab/X3/Lab\n             data/full_repos/permissive/174642777/Experiments/Lab/X3/Lab.v\n             data/full_repos/permissive/174642777/Experiments/Lab/X3/Lab.sv\n             X3/Lab\n             X3/Lab.v\n             X3/Lab.sv\n             obj_dir/X3/Lab\n             obj_dir/X3/Lab.v\n             obj_dir/X3/Lab.sv\n%Error: Cannot find file containing module: 08\n%Error: Cannot find file containing module: CONV_BIN_BCD,data/full_repos/permissive/174642777\n%Error: Cannot find file containing module: data/full_repos/permissive/174642777/Experiments/Lab\n%Error: Cannot find file containing module: CONV_BIN_BCD/CONV_BIN_BCD.v\n%Error: Exiting due to 5 error(s)\n'
module CONV_BIN_BCD(input wire[3:0] b, output wire[4:0] p);
  
  reg[3:0] rb;
  reg[4:0] rp;
  
  always@(*) begin
    rb = b;
    
    if(rb < 10) begin
      rp[3:0] = rb;
      rp[4] = 0;
    end
    else begin
      rp[3:0] = rb - 4'b 1010;
      rp[4] = 1;
    end
  end
  
  assign p = rp;

endmodule
module CONV_BIN_BCD(input wire[3:0] b, output wire[4:0] p);

  
  reg[3:0] rb;
  reg[4:0] rp;
  
  always@(*) begin
    rb = b;
    
    if(rb < 10) begin
      rp[3:0] = rb;
      rp[4] = 0;
    end
    else begin
      rp[3:0] = rb - 4'b 1010;
      rp[4] = 1;
    end
  end
  
  assign p = rp;

endmodule