data/full_repos/permissive/163728837/src/floordist_rom.v
None: at end of input
1: b'%Error: data/full_repos/permissive/163728837/src/floordist_rom.v:14: Cannot find include file: floordist.rom\n`include "floordist.rom" \n         ^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/163728837/src,data/full_repos/permissive/163728837/floordist.rom\n             data/full_repos/permissive/163728837/src,data/full_repos/permissive/163728837/floordist.rom.v\n             data/full_repos/permissive/163728837/src,data/full_repos/permissive/163728837/floordist.rom.sv\n             floordist.rom\n             floordist.rom.v\n             floordist.rom.sv\n             obj_dir/floordist.rom\n             obj_dir/floordist.rom.v\n             obj_dir/floordist.rom.sv\n%Error: Exiting due to 1 error(s)\n'
module floordist_rom (
    input clk,
    input [8:0] addr,
    output [15:0] floordist
    );

reg [15:0] floor_dist [119:0];

reg [15:0] fd_d, fd_q;

assign floordist = fd_q;

initial begin
`include "floordist.rom"
end

always @(*) begin
    if (addr < 8'd120)
        fd_d = floor_dist[8'd119 - addr];
    else
        fd_d = floor_dist[addr - 8'd119];
end

always @(posedge clk) begin
    fd_q <= fd_d;
end

endmodule
module floordist_rom (
    input clk,
    input [8:0] addr,
    output [15:0] floordist
    );


reg [15:0] floor_dist [119:0];

reg [15:0] fd_d, fd_q;

assign floordist = fd_q;

initial begin
`include "floordist.rom"
end

always @(*) begin
    if (addr < 8'd120)
        fd_d = floor_dist[8'd119 - addr];
    else
        fd_d = floor_dist[addr - 8'd119];
end

always @(posedge clk) begin
    fd_q <= fd_d;
end

endmodule