data/full_repos/permissive/155085421/top.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Error: data/full_repos/permissive/155085421/top.v:2: Cannot find include file: clock_generator.v\n`include "clock_generator.v" \n         ^~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/155085421,data/full_repos/permissive/155085421/clock_generator.v\n             data/full_repos/permissive/155085421,data/full_repos/permissive/155085421/clock_generator.v.v\n             data/full_repos/permissive/155085421,data/full_repos/permissive/155085421/clock_generator.v.sv\n             clock_generator.v\n             clock_generator.v.v\n             clock_generator.v.sv\n             obj_dir/clock_generator.v\n             obj_dir/clock_generator.v.v\n             obj_dir/clock_generator.v.sv\n%Error: data/full_repos/permissive/155085421/top.v:3: Cannot find include file: uart.v\n`include "uart.v" \n         ^~~~~~~~\n%Error: data/full_repos/permissive/155085421/top.v:4: Cannot find include file: uart_handler.v\n`include "uart_handler.v" \n         ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/155085421/top.v:5: Cannot find include file: led_selector.v\n`include "led_selector.v" \n         ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/155085421/top.v:6: Cannot find include file: memory.v\n`include "memory.v" \n         ^~~~~~~~~~\n%Error: data/full_repos/permissive/155085421/top.v:7: Cannot find include file: encoder_xx6812.v\n`include "encoder_xx6812.v" \n         ^~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 6 error(s)\n'
module top(
    input clock_12mhz,


    input uart_rx,
    input uart_rts,
    output uart_cts,
    input uart_dtr,

    output strip,

    output debug_rts,
    output debug_cts,
    output debug_dtr,


    output[7:0] led
    );



assign debug_rts = uart_rts;
assign debug_cts = uart_cts;
assign debug_dtr = uart_dtr;


assign clock_out = clock_12mhz;


wire clock_uart, bit_segment_clock, bit_clock, led_clock, framerate;


pll hf_clock(
    .clock_in(clock_12mhz),
    .clock_out(clock_72mhz)
    );

clock_generator clocks(
    .clock_12mhz(clock_12mhz),
    .clock_72mhz(clock_72mhz),
    .clock_uart(clock_uart),
    .uart_rx(rx),
    .bit_segment_clock(bit_segment_clock),
    .bit_clock(bit_clock),
    .led_clock(led_clock),
    .framerate(framerate)
    );


wire[7:0] uart_rx_data;

assign led[0] = uart_rts;
assign led[4:1] = write_address[3:0];
wire uart_rx_data_ready;

uart uart0(
    .reset(1'b0),
    .clock(clock_uart),
    .dtr(uart_dtr),
    .rts(uart_rts),
    .cts(uart_cts),
    .rx(uart_rx),
    .rx_data(uart_rx_data),
    .rx_data_ready(uart_rx_data_ready)
    );


wire perform_write;
wire[8:0] write_address;
wire[23:0] write_data;

uart_handler uart_state_machine(
    .clock_12mhz(clock_12mhz),
    .rx_data(uart_rx_data),
    .rx_data_ready(uart_rx_data_ready),
    .slave_select(uart_dtr),
    .perform_write(perform_write),
    .write_address(write_address),
    .write_data(write_data)
    );


wire encoder_finished;

wire[7:0] led_counter;

led_selector selector(
    .clock_12mhz(clock_12mhz),
    .bit_clock(bit_clock),
    .led_clock(led_clock),
    .framerate(framerate),
    .encoder_finished(encoder_finished),
    .led_counter_clock(led_counter_clock),
    .led_counter_reset(led_counter_reset),
    .led_counter(led_counter),
    .led_selected(perform_read)
    );


wire[23:0] strip0_data;
wire encoder_start;

memory ram0(
    .clock(clock_12mhz),
    .perform_read(perform_read),
    .read_address({1'b0, led_counter}),
    .read_data(strip0_data),
    .read_data_ready(encoder_start),
    .perform_write(perform_write),
    .write_address(write_address),
    .write_data(write_data)
    );


encoder_xx6812 strip0(
    .clock_3mhz(bit_segment_clock),
    .counter_reset(encoder_start),
    .parallel_data_in(strip0_data),
    .serial_data_out(strip),
    .done(encoder_finished)
    );

endmodule
module top(
    input clock_12mhz,


    input uart_rx,
    input uart_rts,
    output uart_cts,
    input uart_dtr,

    output strip,

    output debug_rts,
    output debug_cts,
    output debug_dtr,


    output[7:0] led
    );




assign debug_rts = uart_rts;
assign debug_cts = uart_cts;
assign debug_dtr = uart_dtr;


assign clock_out = clock_12mhz;


wire clock_uart, bit_segment_clock, bit_clock, led_clock, framerate;


pll hf_clock(
    .clock_in(clock_12mhz),
    .clock_out(clock_72mhz)
    );

clock_generator clocks(
    .clock_12mhz(clock_12mhz),
    .clock_72mhz(clock_72mhz),
    .clock_uart(clock_uart),
    .uart_rx(rx),
    .bit_segment_clock(bit_segment_clock),
    .bit_clock(bit_clock),
    .led_clock(led_clock),
    .framerate(framerate)
    );


wire[7:0] uart_rx_data;

assign led[0] = uart_rts;
assign led[4:1] = write_address[3:0];
wire uart_rx_data_ready;

uart uart0(
    .reset(1'b0),
    .clock(clock_uart),
    .dtr(uart_dtr),
    .rts(uart_rts),
    .cts(uart_cts),
    .rx(uart_rx),
    .rx_data(uart_rx_data),
    .rx_data_ready(uart_rx_data_ready)
    );


wire perform_write;
wire[8:0] write_address;
wire[23:0] write_data;

uart_handler uart_state_machine(
    .clock_12mhz(clock_12mhz),
    .rx_data(uart_rx_data),
    .rx_data_ready(uart_rx_data_ready),
    .slave_select(uart_dtr),
    .perform_write(perform_write),
    .write_address(write_address),
    .write_data(write_data)
    );


wire encoder_finished;

wire[7:0] led_counter;

led_selector selector(
    .clock_12mhz(clock_12mhz),
    .bit_clock(bit_clock),
    .led_clock(led_clock),
    .framerate(framerate),
    .encoder_finished(encoder_finished),
    .led_counter_clock(led_counter_clock),
    .led_counter_reset(led_counter_reset),
    .led_counter(led_counter),
    .led_selected(perform_read)
    );


wire[23:0] strip0_data;
wire encoder_start;

memory ram0(
    .clock(clock_12mhz),
    .perform_read(perform_read),
    .read_address({1'b0, led_counter}),
    .read_data(strip0_data),
    .read_data_ready(encoder_start),
    .perform_write(perform_write),
    .write_address(write_address),
    .write_data(write_data)
    );


encoder_xx6812 strip0(
    .clock_3mhz(bit_segment_clock),
    .counter_reset(encoder_start),
    .parallel_data_in(strip0_data),
    .serial_data_out(strip),
    .done(encoder_finished)
    );

endmodule