data/full_repos/permissive/167489907/DE0 Stuff/BCDEncoder.v
 line:30: before: "/"
1: b'%Error: Cannot find file containing module: Stuff,data/full_repos/permissive/167489907\n        ... Looked in:\n             data/full_repos/permissive/167489907/DE0/Stuff,data/full_repos/permissive/167489907\n             data/full_repos/permissive/167489907/DE0/Stuff,data/full_repos/permissive/167489907.v\n             data/full_repos/permissive/167489907/DE0/Stuff,data/full_repos/permissive/167489907.sv\n             Stuff,data/full_repos/permissive/167489907\n             Stuff,data/full_repos/permissive/167489907.v\n             Stuff,data/full_repos/permissive/167489907.sv\n             obj_dir/Stuff,data/full_repos/permissive/167489907\n             obj_dir/Stuff,data/full_repos/permissive/167489907.v\n             obj_dir/Stuff,data/full_repos/permissive/167489907.sv\n%Error: Cannot find file containing module: data/full_repos/permissive/167489907/DE0\n%Error: Cannot find file containing module: Stuff/BCDEncoder.v\n%Error: Exiting due to 3 error(s)\n'
module BCDEncoder(bin, bcd);

input [11:0] bin;
output reg[15:0] bcd;
reg [11:0] i;   
     

always @(bin)
   begin
     bcd = 16'b0;
       for (i = 12'd0; i < 12'd12; i = i+12'd1)
         begin
           bcd = {bcd[14:0],bin[11-i]};
                  

             if(i < 6'd11 && bcd[3:0] > 4) 
                bcd[3:0] = bcd[3:0] + 4'd3;
             if(i < 6'd11 && bcd[7:4] > 4)
                bcd[7:4] = bcd[7:4] + 4'd3;
             if(i < 6'd11 && bcd[11:8] > 4)
                bcd[11:8] = bcd[11:8] + 4'd3; 
				 if(i < 6'd11 && bcd[15:12] > 4)
					 bcd[15:12] = bcd[15:12] + 4'd3;
         end
     end     
                
endmodule
module BCDEncoder(bin, bcd);


input [11:0] bin;
output reg[15:0] bcd;
reg [11:0] i;   
     

always @(bin)
   begin
     bcd = 16'b0;
       for (i = 12'd0; i < 12'd12; i = i+12'd1)
         begin
           bcd = {bcd[14:0],bin[11-i]};
                  

             if(i < 6'd11 && bcd[3:0] > 4) 
                bcd[3:0] = bcd[3:0] + 4'd3;
             if(i < 6'd11 && bcd[7:4] > 4)
                bcd[7:4] = bcd[7:4] + 4'd3;
             if(i < 6'd11 && bcd[11:8] > 4)
                bcd[11:8] = bcd[11:8] + 4'd3; 
				 if(i < 6'd11 && bcd[15:12] > 4)
					 bcd[15:12] = bcd[15:12] + 4'd3;
         end
     end     
                
endmodule