data/full_repos/permissive/492007370/YODA_MinMax/YODA_MinMax.srcs/sources_1/new/MinMax.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/492007370/YODA_MinMax/YODA_MinMax.srcs/sources_1/new/MinMax.v:45: 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 \'Max\'\nmodule Max(clk, sample, max, Reset);\n       ^~~\n                                                                                                              : ... Top module \'Min\'\nmodule Min(clk, sample, min, Reset);\n       ^~~\n%Error: Exiting due to 1 warning(s)\n'
module Max(clk, sample, max, Reset);

input clk;
input  [15:0] sample;
output reg [15:0] max;
input Reset;

initial begin
    max <= 0;
end

always@(posedge clk) begin
    if (Reset == 1)
        max <= 0;
    else if (max <= sample)
        max <= sample;

end

endmodule
module Max(clk, sample, max, Reset);


input clk;
input  [15:0] sample;
output reg [15:0] max;
input Reset;

initial begin
    max <= 0;
end

always@(posedge clk) begin
    if (Reset == 1)
        max <= 0;
    else if (max <= sample)
        max <= sample;

end

endmodule