data/full_repos/permissive/161004496/top_git.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b"%Error: data/full_repos/permissive/161004496/top_git.v:54: Cannot find file containing module: 'rx_rs232'\nrx_rs232 rx_rs232_INST\n^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/161004496,data/full_repos/permissive/161004496/rx_rs232\n             data/full_repos/permissive/161004496,data/full_repos/permissive/161004496/rx_rs232.v\n             data/full_repos/permissive/161004496,data/full_repos/permissive/161004496/rx_rs232.sv\n             rx_rs232\n             rx_rs232.v\n             rx_rs232.sv\n             obj_dir/rx_rs232\n             obj_dir/rx_rs232.v\n             obj_dir/rx_rs232.sv\n%Error: data/full_repos/permissive/161004496/top_git.v:62: Cannot find file containing module: 'tx_rs232'\ntx_rs232 tx_rs232_INST\n^~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module top
(
	input				clk_s	,
	input 				rstn_s	,
	input				iDATA	,
	output	reg [ 7:0]	oDATA	,
	output	reg			oDONE	,
	output				oTXDATA	
);

wire 			clk143M	;
wire			rxDONE	;
wire	[ 7:0]	rxDATA	;


 always@(*)
begin
	if(!rstn_s)
		begin
			oDATA	=	8'd0	;
			oDONE	=	1'b0	;
		end
	else if(rxDONE)
		begin
			oDATA	=	rxDATA	;
			oDONE	=	rxDONE	;
		end
	else
		oDONE	=	1'b0	;
end 

rx_rs232	rx_rs232_INST
(
	.clk_s			(clk_s	),		
	.rstn_s			(rstn_s	),
	.iDATA			(iDATA	),
	.oDATA			(rxDATA	),
	.oDONE			(rxDONE	)
);
tx_rs232	tx_rs232_INST
(
	.clk_s			(clk_s	),
	.rstn_s			(rstn_s	),
	.iSEND			(rxDONE	),
	.iDATA			(rxDATA	),
	.oDATA			(oTXDATA),
	.oFINISH		()	
);

endmodule
module top
(
	input				clk_s	,
	input 				rstn_s	,
	input				iDATA	,
	output	reg [ 7:0]	oDATA	,
	output	reg			oDONE	,
	output				oTXDATA	
);


wire 			clk143M	;
wire			rxDONE	;
wire	[ 7:0]	rxDATA	;


 always@(*)
begin
	if(!rstn_s)
		begin
			oDATA	=	8'd0	;
			oDONE	=	1'b0	;
		end
	else if(rxDONE)
		begin
			oDATA	=	rxDATA	;
			oDONE	=	rxDONE	;
		end
	else
		oDONE	=	1'b0	;
end 

rx_rs232	rx_rs232_INST
(
	.clk_s			(clk_s	),		
	.rstn_s			(rstn_s	),
	.iDATA			(iDATA	),
	.oDATA			(rxDATA	),
	.oDONE			(rxDONE	)
);
tx_rs232	tx_rs232_INST
(
	.clk_s			(clk_s	),
	.rstn_s			(rstn_s	),
	.iSEND			(rxDONE	),
	.iDATA			(rxDATA	),
	.oDATA			(oTXDATA),
	.oFINISH		()	
);

endmodule