data/full_repos/permissive/109394014/examples/Bmp16ROM.v
1: b'%Warning-WIDTH: data/full_repos/permissive/109394014/examples/Bmp16ROM.v:45: Logical Operator IF expects 1 bit on the If, but If\'s VARREF \'BMPFILE\' generates 88 bits.\n                                                                           : ... In instance Bmp16ROM\n       if (BMPFILE) $readmemh(BMPFILE, bmps);\n       ^~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Error: Exiting due to 1 warning(s)\n'
module Bmp16ROM (
                input  wire clk,
                input  wire [11:0] add,    
                output reg  [3:0] pixel           
             );


   parameter BMPFILE = "pacman.list";


    parameter width = 16; 
    parameter height = 16;
	parameter nsprites = 16;



	reg  [3:0] bmps [nsprites*width*height-1:0];



    initial
    begin
       if (BMPFILE) $readmemh(BMPFILE, bmps);
    end
	


    always @(posedge clk)
    begin
		pixel <= bmps[add];
    end
endmodule
module Bmp16ROM (
                input  wire clk,
                input  wire [11:0] add,    
                output reg  [3:0] pixel           
             );



   parameter BMPFILE = "pacman.list";


    parameter width = 16; 
    parameter height = 16;
	parameter nsprites = 16;



	reg  [3:0] bmps [nsprites*width*height-1:0];



    initial
    begin
       if (BMPFILE) $readmemh(BMPFILE, bmps);
    end
	


    always @(posedge clk)
    begin
		pixel <= bmps[add];
    end
endmodule