data/full_repos/permissive/475928601/Encoder and Decoder/Encoder/Encoder.v
1: b'%Error: Cannot find file containing module: and\n        ... Looked in:\n             data/full_repos/permissive/475928601/Encoder/and\n             data/full_repos/permissive/475928601/Encoder/and.v\n             data/full_repos/permissive/475928601/Encoder/and.sv\n             and\n             and.v\n             and.sv\n             obj_dir/and\n             obj_dir/and.v\n             obj_dir/and.sv\n%Error: Cannot find file containing module: Decoder/Encoder,data/full_repos/permissive/475928601\n%Error: Cannot find file containing module: data/full_repos/permissive/475928601/Encoder\n%Error: Cannot find file containing module: Decoder/Encoder/Encoder.v\n%Error: Exiting due to 4 error(s)\n'
module Encoder(
  input [7:0] Data_in,
  output reg [2:0] Data_out
);  

  always @(Data_in) begin
    case (Data_in)
      8'b00000001: Data_out <= 3'b000;
      8'b00000010: Data_out <= 3'b001;
      8'b00000100: Data_out <= 3'b010;
      8'b00001000: Data_out <= 3'b011;
      8'b00010000: Data_out <= 3'b100;
      8'b00100000: Data_out <= 3'b101;
      8'b01000000: Data_out <= 3'b110;
      8'b10000000: Data_out <= 3'b111;
      default: begin end
    endcase
  end
endmodule
module Encoder(
  input [7:0] Data_in,
  output reg [2:0] Data_out
);
  

  always @(Data_in) begin
    case (Data_in)
      8'b00000001: Data_out <= 3'b000;
      8'b00000010: Data_out <= 3'b001;
      8'b00000100: Data_out <= 3'b010;
      8'b00001000: Data_out <= 3'b011;
      8'b00010000: Data_out <= 3'b100;
      8'b00100000: Data_out <= 3'b101;
      8'b01000000: Data_out <= 3'b110;
      8'b10000000: Data_out <= 3'b111;
      default: begin end
    endcase
  end
endmodule