data/full_repos/permissive/132176809/image.v
1: b'%Warning-WIDTH: data/full_repos/permissive/132176809/image.v:28: Operator ASSIGNW expects 12 bits on the Assign RHS, but Assign RHS\'s VARREF \'y_img\' generates 8 bits.\n                                                               : ... In instance image\nassign addr_rom = y_img;\n                ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/132176809/image.v:30: Cannot find file containing module: \'fontROM\'\nfontROM \n^~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/132176809,data/full_repos/permissive/132176809/fontROM\n             data/full_repos/permissive/132176809,data/full_repos/permissive/132176809/fontROM.v\n             data/full_repos/permissive/132176809,data/full_repos/permissive/132176809/fontROM.sv\n             fontROM\n             fontROM.v\n             fontROM.sv\n             obj_dir/fontROM\n             obj_dir/fontROM.v\n             obj_dir/fontROM.sv\n%Warning-LITENDIAN: data/full_repos/permissive/132176809/image.v:42: Little bit endian vector: MSB < LSB of bit range: 0:15\nwire [0:15] glyph_line;\n     ^\n%Error: Exiting due to 1 error(s), 2 warning(s)\n'
module image (
                input  wire clk,
                input  wire [7:0] x_img,
                input  wire [7:0] y_img,
                output reg  pixel
             );

wire [3:0] col_bit;
wire [11:0] addr_rom;

assign col_bit = x_img[3:0];
assign addr_rom = y_img;

fontROM 
#(
    .FONT_FILE("BRAM_16.list")
)
fontROM01
(
    .clk(clk),
    .write_en (0),
    .addr (addr_rom),
    .dout (glyph_line)
);

wire [0:15] glyph_line;


always @(posedge clk)
begin
        pixel = glyph_line[col_bit] ? 1 : 0;
end

endmodule
module image (
                input  wire clk,
                input  wire [7:0] x_img,
                input  wire [7:0] y_img,
                output reg  pixel
             );


wire [3:0] col_bit;
wire [11:0] addr_rom;

assign col_bit = x_img[3:0];
assign addr_rom = y_img;

fontROM 
#(
    .FONT_FILE("BRAM_16.list")
)
fontROM01
(
    .clk(clk),
    .write_en (0),
    .addr (addr_rom),
    .dout (glyph_line)
);

wire [0:15] glyph_line;


always @(posedge clk)
begin
        pixel = glyph_line[col_bit] ? 1 : 0;
end

endmodule