data/full_repos/permissive/490299936/verilog/uart_top.v
1: b"%Error: data/full_repos/permissive/490299936/verilog/uart_top.v:52: Cannot find file containing module: 'pll'\npll pll_i\n^~~\n        ... Looked in:\n             data/full_repos/permissive/490299936/verilog,data/full_repos/permissive/490299936/pll\n             data/full_repos/permissive/490299936/verilog,data/full_repos/permissive/490299936/pll.v\n             data/full_repos/permissive/490299936/verilog,data/full_repos/permissive/490299936/pll.sv\n             pll\n             pll.v\n             pll.sv\n             obj_dir/pll\n             obj_dir/pll.v\n             obj_dir/pll.sv\n%Error: data/full_repos/permissive/490299936/verilog/uart_top.v:75: Cannot find file containing module: 'speed_config'\nspeed_config speed_rx(\n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/490299936/verilog/uart_top.v:81: Cannot find file containing module: 'uart_rx'\nuart_rx rx_i(\n^~~~~~~\n%Error: data/full_repos/permissive/490299936/verilog/uart_top.v:91: Cannot find file containing module: 'speed_config'\nspeed_config speed_tx(\n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/490299936/verilog/uart_top.v:105: Cannot find file containing module: 'uart_tx'\nuart_tx tx_i(\n^~~~~~~\n%Error: data/full_repos/permissive/490299936/verilog/uart_top.v:119: Cannot find file containing module: 'adxl345_top'\nadxl345_top adxl345_top_i(\n^~~~~~~~~~~\n%Error: data/full_repos/permissive/490299936/verilog/uart_top.v:129: Cannot find file containing module: 'hmc5883l_top'\nhmc5883l_top hmc5883l_top_i(\n^~~~~~~~~~~~\n%Error: data/full_repos/permissive/490299936/verilog/uart_top.v:139: Cannot find file containing module: 'stablize'\nstablize stablize_i(\n^~~~~~~~\n%Error: data/full_repos/permissive/490299936/verilog/uart_top.v:153: Cannot find file containing module: 'mac'\nmac mac_i(\n^~~\n%Error: Exiting due to 9 error(s)\n"
module uart_top(
	input ext_clk_50m,
	input ext_rst_n,
	input uart_rx,
	input [7:0] keyboard,
	output uart_tx,
	output [7:0] led,
	output adxl345_iic_scl,
	inout adxl345_iic_sda,
	output adxl345_int1,
	output adxl345_int2,
	output hmc5883l_vcc,
	output hmc5883l_iic_scl,
	output hmc5883l_iic_sda,
	output [7:0] key_pressed,
	output key_down,
	output key_up
    );
assign hmc5883l_vcc = 1'b1;
assign adxl345_int1 = 1'b0;
assign adxl345_int2 = 1'b0;
assign led[5:0] = 6'b11_1111;
assign led[6] = uart_rx;
assign led[7] = uart_tx;

wire sys_rst_n;
wire clk_25m;
wire clk_50m;
wire clk_100m;
wire clk_200m;

pll pll_i
(
.CLK_IN1(ext_clk_50m),

.CLK_OUT1(clk_25m),
.CLK_OUT2(clk_50m),
.CLK_OUT3(clk_100m),
.CLK_OUT4(clk_200m),

.RESET(~ext_rst_n),
.LOCKED(sys_rst_n)
);


wire bps_start1,bps_start2;

wire clk_bps1,clk_bps2;

wire[7:0] rx_data;

wire rx_int;


speed_config speed_rx(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.bps_start(bps_start1),
	.clk_bps(clk_bps1)
);
uart_rx rx_i(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.uart_rx(uart_rx),
	.rx_data(rx_data),
	.rx_int(rx_int),
	.clk_bps(clk_bps1),
	.bps_start(bps_start1)
);

speed_config speed_tx(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.bps_start(bps_start2),
	.clk_bps(clk_bps2)
);

wire[15:0] x_axis;
wire[15:0] y_axis;
wire[15:0] z_axis;
wire[15:0] x_axis_2;
wire[15:0] y_axis_2;
wire[15:0] z_axis_2;

uart_tx tx_i(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.rx_data(rx_data),
	.rx_int(rx_int),
	.x_axis(x_axis),
	.y_axis(y_axis),
	.z_axis(z_axis),
	.uart_tx(uart_tx),
	.clk_bps(clk_bps2),
	.bps_start(bps_start2)
);


adxl345_top adxl345_top_i(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.adxl345_iic_scl(adxl345_iic_scl),
	.adxl345_iic_sda(adxl345_iic_sda),
	.x_axis(x_axis),
	.y_axis(y_axis),
	.z_axis(z_axis)
);

hmc5883l_top hmc5883l_top_i(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.hmc5883l_iic_scl(hmc5883l_iic_scl),
	.hmc5883l_iic_sda(hmc5883l_iic_sda),
	.x_axis(x_axis_2),
	.y_axis(y_axis_2),
	.z_axis(z_axis_2)
);

stablize stablize_i(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.button(keyboard),
	.pressed(pressed),
	.key_pos(key_up),
	.key_neg(key_down)
);

wire layer_en;
wire [7:0] layer_input_x;
wire [7:0] layer_input_w;
wire [4:0] layer_output_y;

mac mac_i(
	.layer_clk(clk_100m),
	.rst_n(sys_rst_n),
	.data_en(layer_en),


	.x(layer_input_x),
	.w(layer_input_w),
	.y(layer_output_y)
);

endmodule
module uart_top(
	input ext_clk_50m,
	input ext_rst_n,
	input uart_rx,
	input [7:0] keyboard,
	output uart_tx,
	output [7:0] led,
	output adxl345_iic_scl,
	inout adxl345_iic_sda,
	output adxl345_int1,
	output adxl345_int2,
	output hmc5883l_vcc,
	output hmc5883l_iic_scl,
	output hmc5883l_iic_sda,
	output [7:0] key_pressed,
	output key_down,
	output key_up
    );

assign hmc5883l_vcc = 1'b1;
assign adxl345_int1 = 1'b0;
assign adxl345_int2 = 1'b0;
assign led[5:0] = 6'b11_1111;
assign led[6] = uart_rx;
assign led[7] = uart_tx;

wire sys_rst_n;
wire clk_25m;
wire clk_50m;
wire clk_100m;
wire clk_200m;

pll pll_i
(
.CLK_IN1(ext_clk_50m),

.CLK_OUT1(clk_25m),
.CLK_OUT2(clk_50m),
.CLK_OUT3(clk_100m),
.CLK_OUT4(clk_200m),

.RESET(~ext_rst_n),
.LOCKED(sys_rst_n)
);


wire bps_start1,bps_start2;

wire clk_bps1,clk_bps2;

wire[7:0] rx_data;

wire rx_int;


speed_config speed_rx(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.bps_start(bps_start1),
	.clk_bps(clk_bps1)
);
uart_rx rx_i(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.uart_rx(uart_rx),
	.rx_data(rx_data),
	.rx_int(rx_int),
	.clk_bps(clk_bps1),
	.bps_start(bps_start1)
);

speed_config speed_tx(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.bps_start(bps_start2),
	.clk_bps(clk_bps2)
);

wire[15:0] x_axis;
wire[15:0] y_axis;
wire[15:0] z_axis;
wire[15:0] x_axis_2;
wire[15:0] y_axis_2;
wire[15:0] z_axis_2;

uart_tx tx_i(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.rx_data(rx_data),
	.rx_int(rx_int),
	.x_axis(x_axis),
	.y_axis(y_axis),
	.z_axis(z_axis),
	.uart_tx(uart_tx),
	.clk_bps(clk_bps2),
	.bps_start(bps_start2)
);


adxl345_top adxl345_top_i(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.adxl345_iic_scl(adxl345_iic_scl),
	.adxl345_iic_sda(adxl345_iic_sda),
	.x_axis(x_axis),
	.y_axis(y_axis),
	.z_axis(z_axis)
);

hmc5883l_top hmc5883l_top_i(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.hmc5883l_iic_scl(hmc5883l_iic_scl),
	.hmc5883l_iic_sda(hmc5883l_iic_sda),
	.x_axis(x_axis_2),
	.y_axis(y_axis_2),
	.z_axis(z_axis_2)
);

stablize stablize_i(
	.clk(clk_100m),
	.rst_n(sys_rst_n),
	.button(keyboard),
	.pressed(pressed),
	.key_pos(key_up),
	.key_neg(key_down)
);

wire layer_en;
wire [7:0] layer_input_x;
wire [7:0] layer_input_w;
wire [4:0] layer_output_y;

mac mac_i(
	.layer_clk(clk_100m),
	.rst_n(sys_rst_n),
	.data_en(layer_en),


	.x(layer_input_x),
	.w(layer_input_w),
	.y(layer_output_y)
);

endmodule