data/full_repos/permissive/138443719/09-storage-wip/src/ff_latch.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/138443719/09-storage-wip/src/ff_latch.v:17: 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 \'dff_async_reset\'\nmodule dff_async_reset (data, clk, reset, q);\n       ^~~~~~~~~~~~~~~\n                                                                                        : ... Top module \'dlatch_reset\'\nmodule dlatch_reset (data, en, reset, q);\n       ^~~~~~~~~~~~\n                                                                                        : ... Top module \'tff_async_reset\'\nmodule tff_async_reset (data, clk, reset, q);\n       ^~~~~~~~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module tff_async_reset (data, clk, reset, q);

        input data, clk, reset ; 

        output q;

        reg q;

        always @ ( posedge clk or negedge reset)
            if (~reset) begin
                q <= 1'b0;
            end else if (data) begin
                q <= !q;
            end
endmodule
module tff_async_reset (data, clk, reset, q);


        input data, clk, reset ; 

        output q;

        reg q;

        always @ ( posedge clk or negedge reset)
            if (~reset) begin
                q <= 1'b0;
            end else if (data) begin
                q <= !q;
            end
endmodule