data/full_repos/permissive/214491501/Oscilloscope_project/uart_control.v
[Errno 2] No such file or directory: 'preprocess.output'
data/verilator_xmls/43064e19-e4b7-4b88-8681-88d7b6086dc0.xml
module uart_control(clk,gather_set,bps_start,rd_uart_signal,flag);


input clk;
input[1:0] gather_set;
input bps_start;
input flag;

output reg rd_uart_signal = 1'b1;



always @(posedge clk) begin
	if(gather_set == 2'b01 || gather_set == 2'b10) begin
		if(bps_start == 0 && flag == 0)
			rd_uart_signal <= 0;
				else if(bps_start == 1 && flag == 0)
			rd_uart_signal <= 1;
		else if(flag == 1)
			rd_uart_signal <= 1;
		end
	end
	
endmodule
module uart_control(clk,gather_set,bps_start,rd_uart_signal,flag);



input clk;
input[1:0] gather_set;
input bps_start;
input flag;

output reg rd_uart_signal = 1'b1;



always @(posedge clk) begin
	if(gather_set == 2'b01 || gather_set == 2'b10) begin
		if(bps_start == 0 && flag == 0)
			rd_uart_signal <= 0;
				else if(bps_start == 1 && flag == 0)
			rd_uart_signal <= 1;
		else if(flag == 1)
			rd_uart_signal <= 1;
		end
	end
	
endmodule