data/full_repos/permissive/133863909/Implementation of a Barcode Reader/source.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Error: Cannot find file containing module: of\n        ... Looked in:\n             data/full_repos/permissive/133863909/Implementation/of\n             data/full_repos/permissive/133863909/Implementation/of.v\n             data/full_repos/permissive/133863909/Implementation/of.sv\n             of\n             of.v\n             of.sv\n             obj_dir/of\n             obj_dir/of.v\n             obj_dir/of.sv\n%Error: Cannot find file containing module: a\n%Error: Cannot find file containing module: Barcode\n%Error: Cannot find file containing module: Reader,data/full_repos/permissive/133863909\n%Error: Cannot find file containing module: data/full_repos/permissive/133863909/Implementation\n%Error: Cannot find file containing module: Reader/source.v\n%Error: Exiting due to 6 error(s)\n'
module Barcode(B, Y, Clk, Rst);
	input Clk, Rst, B;
	output reg [1:0] Y;
	
	reg [2:0] S; 
	reg [2:0] N;
		
	always @(posedge Clk) begin
		if(Rst == 1)
			S = 3'b000;
		else
			S = N;
		Y[0] = S[0] & S[1];
		Y[1] = S[0] & S[2];
		N[0] = B | (~S[0] & ~S[1] & S[2]);
		N[1] = (S[0] & ~S[2]) | (S[0] & ~S[1] & ~B) | (S[1] & ~S[2] & B) | (~S[0] & S[1] & S[2] & ~B);
		N[2] = (S[0] & ~S[2] & B) | (~S[0] & S[1] & ~B) | (~S[1] & S[2] & ~B);
	end


endmodule
module Barcode(B, Y, Clk, Rst);

	input Clk, Rst, B;
	output reg [1:0] Y;
	
	reg [2:0] S; 
	reg [2:0] N;
		
	always @(posedge Clk) begin
		if(Rst == 1)
			S = 3'b000;
		else
			S = N;
		Y[0] = S[0] & S[1];
		Y[1] = S[0] & S[2];
		N[0] = B | (~S[0] & ~S[1] & S[2]);
		N[1] = (S[0] & ~S[2]) | (S[0] & ~S[1] & ~B) | (S[1] & ~S[2] & B) | (~S[0] & S[1] & S[2] & ~B);
		N[2] = (S[0] & ~S[2] & B) | (~S[0] & S[1] & ~B) | (~S[1] & S[2] & ~B);
	end


endmodule