data/full_repos/permissive/461069000/spi/src/spi_clock_generator.v
1: b"%Error: data/full_repos/permissive/461069000/spi/src/spi_clock_generator.v:12: Cannot find file containing module: 'prescaler'\n    prescaler prescaler_0(\n    ^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/461069000/spi/src,data/full_repos/permissive/461069000/prescaler\n             data/full_repos/permissive/461069000/spi/src,data/full_repos/permissive/461069000/prescaler.v\n             data/full_repos/permissive/461069000/spi/src,data/full_repos/permissive/461069000/prescaler.sv\n             prescaler\n             prescaler.v\n             prescaler.sv\n             obj_dir/prescaler\n             obj_dir/prescaler.v\n             obj_dir/prescaler.sv\n%Error: Exiting due to 1 error(s)\n"
module spi_clock_generator(
    input clk,
    input [2:0] prescaler_in,
    input spi_mode,
    output wire clk_out);

    localparam  SPI_MASTER = 1'b0;

    wire enable = spi_mode == SPI_MASTER;

    prescaler prescaler_0(
        .clk_in(clk),
        .enable(enable),
        .scale_sel(prescaler_in),
        .clk_out(clk_out)
    );

endmodule
module spi_clock_generator(
    input clk,
    input [2:0] prescaler_in,
    input spi_mode,
    output wire clk_out);


    localparam  SPI_MASTER = 1'b0;

    wire enable = spi_mode == SPI_MASTER;

    prescaler prescaler_0(
        .clk_in(clk),
        .enable(enable),
        .scale_sel(prescaler_in),
        .clk_out(clk_out)
    );

endmodule