data/full_repos/permissive/131358616/design/perceptron/uart.v
1: b"%Error: data/full_repos/permissive/131358616/design/perceptron/uart.v:38: Cannot find file containing module: 'uart_rx'\nuart_rx #(\n^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/131358616/design/perceptron,data/full_repos/permissive/131358616/uart_rx\n             data/full_repos/permissive/131358616/design/perceptron,data/full_repos/permissive/131358616/uart_rx.v\n             data/full_repos/permissive/131358616/design/perceptron,data/full_repos/permissive/131358616/uart_rx.sv\n             uart_rx\n             uart_rx.v\n             uart_rx.sv\n             obj_dir/uart_rx\n             obj_dir/uart_rx.v\n             obj_dir/uart_rx.sv\n%Error: data/full_repos/permissive/131358616/design/perceptron/uart.v:53: Cannot find file containing module: 'uart_tx'\nuart_tx #(\n^~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module uart (
    input wire rst_n,
    input wire clk,
	

    input wire rx,
	output wire tx,
 

    input wire clear,
	input wire start_transmit,
    output wire tx_busy,
	output wire rx_busy,
    output wire error,
    output wire new_value,


	input wire [7:0] data_to_send,
    output wire [7:0] recvd_data
);

parameter  clock_frequency        = 12000000;
parameter  baud_rate              = 9600;

localparam clock_cycles_per_pulse = clock_frequency / baud_rate;


uart_rx #(
	.clock_frequency(clock_frequency),
	.baud_rate(baud_rate) 
) uart_rx(
	.rst_n(rst_n),
	.clk(clk),
	.rx(rx),
	.clear(clear),
	.data(recvd_data),
	.busy(rx_busy),
    .error(error),
    .new_value(new_value)
);
	

uart_tx #(
	.clock_frequency(clock_frequency),
	.baud_rate(baud_rate) 
) uart_tx(
	.rst_n(rst_n),
	.clk(clk),
	.start(start_transmit),
	.data(data_to_send),
	.tx(tx),
	.busy(tx_busy)
);

endmodule
module uart (
    input wire rst_n,
    input wire clk,
	

    input wire rx,
	output wire tx,
 

    input wire clear,
	input wire start_transmit,
    output wire tx_busy,
	output wire rx_busy,
    output wire error,
    output wire new_value,


	input wire [7:0] data_to_send,
    output wire [7:0] recvd_data
);


parameter  clock_frequency        = 12000000;
parameter  baud_rate              = 9600;

localparam clock_cycles_per_pulse = clock_frequency / baud_rate;


uart_rx #(
	.clock_frequency(clock_frequency),
	.baud_rate(baud_rate) 
) uart_rx(
	.rst_n(rst_n),
	.clk(clk),
	.rx(rx),
	.clear(clear),
	.data(recvd_data),
	.busy(rx_busy),
    .error(error),
    .new_value(new_value)
);
	

uart_tx #(
	.clock_frequency(clock_frequency),
	.baud_rate(baud_rate) 
) uart_tx(
	.rst_n(rst_n),
	.clk(clk),
	.start(start_transmit),
	.data(data_to_send),
	.tx(tx),
	.busy(tx_busy)
);

endmodule