data/full_repos/permissive/435914753/Display_kbd/vga_controller.v
1: b'%Warning-WIDTH: data/full_repos/permissive/435914753/Display_kbd/vga_controller.v:21: Value too large for 2 bit number: 4\nassign clkdiv5 = (cnt==2\'d4);\n                       ^~~~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-MULTITOP: data/full_repos/permissive/435914753/Display_kbd/vga_controller.v:284: Multiple top level modules\n                                                                                        : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                                                                                        : ... Top module \'oneFifthMegaHertz\'\nmodule oneFifthMegaHertz (reset, clk, enable, clkdiv5);\n       ^~~~~~~~~~~~~~~~~\n                                                                                        : ... Top module \'top\'\nmodule top (reset, clk, r, g, b, hsync, vsync, ps2clk, ps2data, left, right);\n       ^~~\n%Error: data/full_repos/permissive/435914753/Display_kbd/vga_controller.v:307: Cannot find file containing module: \'kbd_protocol\'\nkbd_protocol kbd (reset, clk, ps2clk, ps2data, scan, scanPrev, scanPrev2);\n^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/435914753/Display_kbd,data/full_repos/permissive/435914753/kbd_protocol\n             data/full_repos/permissive/435914753/Display_kbd,data/full_repos/permissive/435914753/kbd_protocol.v\n             data/full_repos/permissive/435914753/Display_kbd,data/full_repos/permissive/435914753/kbd_protocol.sv\n             kbd_protocol\n             kbd_protocol.v\n             kbd_protocol.sv\n             obj_dir/kbd_protocol\n             obj_dir/kbd_protocol.v\n             obj_dir/kbd_protocol.sv\n%Error: data/full_repos/permissive/435914753/Display_kbd/vga_controller.v:308: Cannot find file containing module: \'scan_2_bin\'\nscan_2_bin s2b0 (scan, bin);\n^~~~~~~~~~\n%Error: data/full_repos/permissive/435914753/Display_kbd/vga_controller.v:309: Cannot find file containing module: \'bin2bcd\'\nbin2bcd b2b0(bin, bcd);\n^~~~~~~\n%Error: data/full_repos/permissive/435914753/Display_kbd/vga_controller.v:310: Cannot find file containing module: \'bcd_2_7seg\'\nbcd_2_7seg b27s0(bcd, left);\n^~~~~~~~~~\n%Error: data/full_repos/permissive/435914753/Display_kbd/vga_controller.v:311: Cannot find file containing module: \'bcd_2_7seg\'\nbcd_2_7seg b27s1(4\'b1111, right);\n^~~~~~~~~~\n%Error: data/full_repos/permissive/435914753/Display_kbd/vga_controller.v:313: Cannot find file containing module: \'numORcolour\'\nnumORcolour noc0 (clk, bin, reds, greens, blues);\n^~~~~~~~~~~\n%Warning-WIDTH: data/full_repos/permissive/435914753/Display_kbd/vga_controller.v:21: Operator EQ expects 3 bits on the RHS, but RHS\'s CONST \'2\'h0\' generates 2 bits.\n                                                                                    : ... In instance oneFifthMegaHertz\nassign clkdiv5 = (cnt==2\'d4);\n                     ^~\n%Error: Exiting due to 6 error(s), 3 warning(s)\n'
module oneFourthMegaHertz (reset, clk, enable, clkdiv4);
input reset, clk, enable;
output clkdiv4;
reg [1:0] cnt;

assign clkdiv4 = (cnt==2'd3);
always @(posedge reset or posedge clk)
  if (reset) cnt <= 0;
   else if (enable) 
          if (clkdiv4) cnt <= 0;
            else cnt <= cnt + 1;
endmodule
module oneFourthMegaHertz (reset, clk, enable, clkdiv4);

input reset, clk, enable;
output clkdiv4;
reg [1:0] cnt;

assign clkdiv4 = (cnt==2'd3);
always @(posedge reset or posedge clk)
  if (reset) cnt <= 0;
   else if (enable) 
          if (clkdiv4) cnt <= 0;
            else cnt <= cnt + 1;
endmodule