data/full_repos/permissive/499944578/rtl/src/fragment_interpolator/calcBary.v
1: b"%Error: data/full_repos/permissive/499944578/rtl/src/fragment_interpolator/calcBary.v:49: Define or directive not defined: '`round_min'\n                .roundingMode(`round_min),\n                              ^~~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/src/fragment_interpolator/calcBary.v:110: Define or directive not defined: '`round_min'\n    addRecFN #(8,24) fpsub1 (.control(1'b0), .subOp(1'b1), .a(y2), .b(y3), .roundingMode(`round_min), .out(y2SUBy3), .exceptionFlags());\n                                                                                         ^~~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/src/fragment_interpolator/calcBary.v:111: Define or directive not defined: '`round_min'\n    addRecFN #(8,24) fpsub2 (.control(1'b0), .subOp(1'b1), .a(y3), .b(y1), .roundingMode(`round_min), .out(y3SUBy1), .exceptionFlags());\n                                                                                         ^~~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/src/fragment_interpolator/calcBary.v:112: Define or directive not defined: '`round_min'\n    addRecFN #(8,24) fpsub3 (.control(1'b0), .subOp(1'b1), .a(y1), .b(y2), .roundingMode(`round_min), .out(y1SUBy2), .exceptionFlags());\n                                                                                         ^~~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/src/fragment_interpolator/calcBary.v:115: Define or directive not defined: '`round_min'\n    mulRecFN #(8,24) fpmul1 (.control(1'b0), .a(y2SUBy3), .b(x1), .roundingMode(`round_min), .out(y2SUBy3MULx1), .exceptionFlags());\n                                                                                ^~~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/src/fragment_interpolator/calcBary.v:116: Define or directive not defined: '`round_min'\n    mulRecFN #(8,24) fpmul2 (.control(1'b0), .a(y3SUBy1), .b(x2), .roundingMode(`round_min), .out(y3SUBy1MULx2), .exceptionFlags());\n                                                                                ^~~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/src/fragment_interpolator/calcBary.v:117: Define or directive not defined: '`round_min'\n    mulRecFN #(8,24) fpmul3 (.control(1'b0), .a(y1SUBy2), .b(x3), .roundingMode(`round_min), .out(y1SUBy2MULx3), .exceptionFlags());\n                                                                                ^~~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/src/fragment_interpolator/calcBary.v:120: Define or directive not defined: '`round_min'\n    addRecFN #(8,24) fpadd1 (.control(1'b0), .subOp(1'b0), .a(y2SUBy3MULx1), .b(y3SUBy1MULx2), .roundingMode(`round_min), .out(ADD1), .exceptionFlags());\n                                                                                                             ^~~~~~~~~~\n%Error: data/full_repos/permissive/499944578/rtl/src/fragment_interpolator/calcBary.v:121: Define or directive not defined: '`round_min'\n    addRecFN #(8,24) fpadd2 (.control(1'b0), .subOp(1'b0), .a(ADD1), .b(y1SUBy2MULx3), .roundingMode(`round_min), .out(TwoArecFN), .exceptionFlags());\n                                                                                                     ^~~~~~~~~~\n%Error: Exiting due to 9 error(s)\n"
module calcArea(
    input wire clk,
    input wire enable,
    input wire resetn,
    input wire [65:0] P1,
    input wire [65:0] P2,
    input wire [65:0] P3,
    output wire [32:0] TwoArecFN
);
    

    wire [32:0] x1 = P1[65:33]; 
    wire [32:0] x2 = P2[65:33];
    wire [32:0] x3 = P3[65:33];
    wire [32:0] y1 = P1[32:0];
    wire [32:0] y2 = P2[32:0];
    wire [32:0] y3 = P3[32:0];


    
    wire [32:0] y2SUBy3;
    wire [32:0] y3SUBy1; 
    wire [32:0] y1SUBy2;
    addRecFN #(8,24) fpsub1 (.control(1'b0), .subOp(1'b1), .a(y2), .b(y3), .roundingMode(`round_min), .out(y2SUBy3), .exceptionFlags());
    addRecFN #(8,24) fpsub2 (.control(1'b0), .subOp(1'b1), .a(y3), .b(y1), .roundingMode(`round_min), .out(y3SUBy1), .exceptionFlags());
    addRecFN #(8,24) fpsub3 (.control(1'b0), .subOp(1'b1), .a(y1), .b(y2), .roundingMode(`round_min), .out(y1SUBy2), .exceptionFlags());

    wire [32:0] y2SUBy3MULx1, y3SUBy1MULx2, y1SUBy2MULx3;
    mulRecFN #(8,24) fpmul1 (.control(1'b0), .a(y2SUBy3), .b(x1), .roundingMode(`round_min), .out(y2SUBy3MULx1), .exceptionFlags());
    mulRecFN #(8,24) fpmul2 (.control(1'b0), .a(y3SUBy1), .b(x2), .roundingMode(`round_min), .out(y3SUBy1MULx2), .exceptionFlags());
    mulRecFN #(8,24) fpmul3 (.control(1'b0), .a(y1SUBy2), .b(x3), .roundingMode(`round_min), .out(y1SUBy2MULx3), .exceptionFlags());

    wire [32:0] ADD1, ADD2;
    addRecFN #(8,24) fpadd1 (.control(1'b0), .subOp(1'b0), .a(y2SUBy3MULx1), .b(y3SUBy1MULx2), .roundingMode(`round_min), .out(ADD1), .exceptionFlags());
    addRecFN #(8,24) fpadd2 (.control(1'b0), .subOp(1'b0), .a(ADD1), .b(y1SUBy2MULx3), .roundingMode(`round_min), .out(TwoArecFN), .exceptionFlags());

endmodule
module calcArea(
    input wire clk,
    input wire enable,
    input wire resetn,
    input wire [65:0] P1,
    input wire [65:0] P2,
    input wire [65:0] P3,
    output wire [32:0] TwoArecFN
);

    

    wire [32:0] x1 = P1[65:33]; 
    wire [32:0] x2 = P2[65:33];
    wire [32:0] x3 = P3[65:33];
    wire [32:0] y1 = P1[32:0];
    wire [32:0] y2 = P2[32:0];
    wire [32:0] y3 = P3[32:0];


    
    wire [32:0] y2SUBy3;
    wire [32:0] y3SUBy1; 
    wire [32:0] y1SUBy2;
    addRecFN #(8,24) fpsub1 (.control(1'b0), .subOp(1'b1), .a(y2), .b(y3), .roundingMode(`round_min), .out(y2SUBy3), .exceptionFlags());
    addRecFN #(8,24) fpsub2 (.control(1'b0), .subOp(1'b1), .a(y3), .b(y1), .roundingMode(`round_min), .out(y3SUBy1), .exceptionFlags());
    addRecFN #(8,24) fpsub3 (.control(1'b0), .subOp(1'b1), .a(y1), .b(y2), .roundingMode(`round_min), .out(y1SUBy2), .exceptionFlags());

    wire [32:0] y2SUBy3MULx1, y3SUBy1MULx2, y1SUBy2MULx3;
    mulRecFN #(8,24) fpmul1 (.control(1'b0), .a(y2SUBy3), .b(x1), .roundingMode(`round_min), .out(y2SUBy3MULx1), .exceptionFlags());
    mulRecFN #(8,24) fpmul2 (.control(1'b0), .a(y3SUBy1), .b(x2), .roundingMode(`round_min), .out(y3SUBy1MULx2), .exceptionFlags());
    mulRecFN #(8,24) fpmul3 (.control(1'b0), .a(y1SUBy2), .b(x3), .roundingMode(`round_min), .out(y1SUBy2MULx3), .exceptionFlags());

    wire [32:0] ADD1, ADD2;
    addRecFN #(8,24) fpadd1 (.control(1'b0), .subOp(1'b0), .a(y2SUBy3MULx1), .b(y3SUBy1MULx2), .roundingMode(`round_min), .out(ADD1), .exceptionFlags());
    addRecFN #(8,24) fpadd2 (.control(1'b0), .subOp(1'b0), .a(ADD1), .b(y1SUBy2MULx3), .roundingMode(`round_min), .out(TwoArecFN), .exceptionFlags());

endmodule