data/full_repos/permissive/482974019/CORDIC.srcs/sources_1/new/CalculateXYZ.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/482974019/CORDIC.srcs/sources_1/new/CalculateXYZ.v:32: 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 \'CalculateX\'\nmodule CalculateX #(parameter WLI = 8, WLF = 8)\n       ^~~~~~~~~~\n                                                                                                   : ... Top module \'CalculateY\'\nmodule CalculateY #(parameter WLI = 8, WLF = 8)\n       ^~~~~~~~~~\n                                                                                                   : ... Top module \'CalculateZ\'\nmodule CalculateZ #(parameter WLI = 8, WLF = 8)\n       ^~~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module CalculateY #(parameter WLI = 8, WLF = 8)
    (input [(WLI+WLF)-1:0] in1, in2,
    input signed [1:0] di,
    input [3:0] i,
    output reg [(WLI+WLF)-1:0] out);
    
    always @(*) begin
        out = (di == 1) ? in1 + (in2>>i) : (di == -1) ? in1 - (in2>>i) : 0;
    end
endmodule
module CalculateY #(parameter WLI = 8, WLF = 8)
    (input [(WLI+WLF)-1:0] in1, in2,
    input signed [1:0] di,
    input [3:0] i,
    output reg [(WLI+WLF)-1:0] out);

    
    always @(*) begin
        out = (di == 1) ? in1 + (in2>>i) : (di == -1) ? in1 - (in2>>i) : 0;
    end
endmodule