data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v
 line:53: before: "."
1: b'%Warning-MULTITOP: data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:403: Multiple top level modules\n                                                                                                      : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                                      : ... Top module \'fpga_top\'\nmodule fpga_top (\n       ^~~~~~~~\n                                                                                                      : ... Top module \'WF_random_5\'\n   module WF_random_5 (\n          ^~~~~~~~~~~\n                                                                                                      : ... Top module \'WF_bram256x16\'\n   module WF_bram256x16 (\n          ^~~~~~~~~~~~~\n                                                                                                      : ... Top module \'WF_switch_debounce\'\n   module WF_switch_debounce (\n          ^~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:224: Duplicate declaration of signal: \'scan_done\'\n                                                                                           : ... note: ANSI ports must have type declared with the I/O (IEEE 1800-2017 23.2.2.2)\n  wire scan_done = dotclk_done;\n       ^~~~~~~~~\n        data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:214: ... Location of original declaration\n   output scan_done,  \n          ^~~~~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:57: Signal definition not found, creating implicitly: \'clk\'\n           .clk(clk),\n                ^~~\n%Warning-IMPLICIT: data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:59: Signal definition not found, creating implicitly: \'ten_us\'\n           .timer_pulse(ten_us));\n                        ^~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:65: Signal definition not found, creating implicitly: \'two_ms\'\n           .timer_pulse(two_ms));\n                        ^~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:71: Signal definition not found, creating implicitly: \'one_second\'\n           .timer_pulse(one_second));\n                        ^~~~~~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:78: Signal definition not found, creating implicitly: \'scan_done\'\n     .scan_done(scan_done),\n                ^~~~~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:124: Signal definition not found, creating implicitly: \'center_pushed\'\n     assign center_pushed = joystick[3] && !joystick_d[3];\n            ^~~~~~~~~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:125: Signal definition not found, creating implicitly: \'north_pushed\'\n     assign north_pushed  = joystick[0] && !joystick_d[0];\n            ^~~~~~~~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:126: Signal definition not found, creating implicitly: \'south_pushed\'\n                                                                                                      : ... Suggested alternative: \'north_pushed\'\n     assign south_pushed  = joystick[2] && !joystick_d[2];\n            ^~~~~~~~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:127: Signal definition not found, creating implicitly: \'east_pushed\'\n                                                                                                      : ... Suggested alternative: \'north_pushed\'\n     assign east_pushed   = joystick[1] && !joystick_d[1];\n            ^~~~~~~~~~~\n%Warning-IMPLICIT: data/full_repos/permissive/179884651/examples/WF_RGB_dot_matrix_joystick_demo.v:128: Signal definition not found, creating implicitly: \'west_pushed\'\n                                                                                                      : ... Suggested alternative: \'east_pushed\'\n     assign west_pushed   = joystick[4] && !joystick_d[4];\n            ^~~~~~~~~~~\n%Error: Exiting due to 1 error(s), 11 warning(s)\n'
module WF_timer (
       input  wire clk,
       input  wire enable,
       output reg  timer_pulse
   );

   parameter [9:0] COUNT = 499;
   parameter       EVERY_CLK = 1'b0;

    reg [9:0] counter;

    always @ (posedge clk)
        if (enable)
          begin
            if (counter == COUNT)
              begin
                timer_pulse <= 1'b1;
                counter     <= 'b0;
              end
           else
             begin
              counter     <= counter + 'b1;
              if (EVERY_CLK)
               timer_pulse <= 1'b0;
             end

          end
        else
            timer_pulse <= 1'b0;

   endmodule
module WF_timer (
       input  wire clk,
       input  wire enable,
       output reg  timer_pulse
   );


   parameter [9:0] COUNT = 499;
   parameter       EVERY_CLK = 1'b0;

    reg [9:0] counter;

    always @ (posedge clk)
        if (enable)
          begin
            if (counter == COUNT)
              begin
                timer_pulse <= 1'b1;
                counter     <= 'b0;
              end
           else
             begin
              counter     <= counter + 'b1;
              if (EVERY_CLK)
               timer_pulse <= 1'b0;
             end

          end
        else
            timer_pulse <= 1'b0;

   endmodule